← All articles

AI Tools / 2026.08.11 / 8 min read

Your First Time with Claude Code: Official Install, Permission Boundaries, and a First Task

Don't start from the network setup, the cheap subscription, or the 'won't get banned' pitch. Install the official way, and run one full loop — read, edit, verify, stop — inside a project you can throw away.

Your First Time with Claude Code: Official Install, Permission Boundaries, and a First Task — Kenton Blog

Your first task should be allowed to fail

The first time I open Claude Code, I don't hand it a real repo, client data and deploy access all at once. I'd rather prepare three small files and let it run one full loop first: read, edit, verify, stop.

Doing it this way answers the questions that actually matter right away: which install the commands came from, which directory is currently open, which files it's about to change, when a shell command will ask first, and what evidence proves the result is correct when the task ends.

As of this article's verification date, the official docs list the native install as the recommended path, while keeping Homebrew, WinGet and npm around. I didn't reinstall or make a paid call this round, so install requirements and permission rules follow the current official docs — I won't write an old video's environment requirements up as if they still hold today.

An account scheme doesn't solve permission boundaries. A high-privilege tool running smoothly just produces more consistent rework on a vague task.

It turns one prompt into real actions

A chat window mostly returns text.

Claude Code, inside a project, can:

  • Search files.
  • Understand code relationships.
  • Edit files.
  • Run the shell.
  • Read build and test results.
  • Work with Git, MCP, Hooks and other tools.

It's closer to a collaborator working in your terminal than a code Q&A box.

That means prompts turn into actions. A vaguely written task affects more than answer quality — it can change real files.

How to pick an official install path

Native install

Current official recommendation for macOS, Linux and WSL:

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell uses the official PowerShell install; Windows can also install via WinGet.

Installing from a remote script means you trust whatever the official domain returns right now. For high-security environments, download, check the source and signature, and then run it.

Homebrew

On macOS:

brew install --cask claude-code

The docs note that Homebrew's stable and latest channels update at different rhythms, and a Homebrew install needs a manual upgrade by default.

npm

The npm path is still offered:

npm install -g @anthropic-ai/claude-code

The current npm package needs Node.js 18 or higher. The official native install no longer asks you to first understand Claude Code as an ordinary JavaScript CLI.

Pick one install path — don't keep all three. When commands conflict, you might upgrade A while the terminal keeps running B.

After installing, do just three checks

claude --version
which claude
claude

On Windows, use the equivalent command to locate the executable.

You want to confirm:

  • The command is found.
  • The path belongs to the install you expected.
  • Browser auth signs into your own official account, or an enterprise provider you deliberately configured.

Don't mistake a third-party relay address for official auth. If you're on Bedrock, Vertex AI or another enterprise platform, be clear about which system the credentials belong to.

The first workspace has to be disposable

Make a small directory:

claude-first-task/
  index.html
  styles.css
  README.md

Don't put any of this in it:

  • Real API keys.
  • Client data.
  • Private documents.
  • A production database.
  • SSH private keys.
  • Browser cookies.
  • Symlinks to other projects.

Enter the directory before you launch:

cd claude-first-task
claude

Claude Code understands the project from the directory it launches in. Choosing the wrong directory is more dangerous than writing the wrong prompt.

Use Plan Mode first to see what it intends to do

Claude Code's official permission system separates reading, shell, and file edits. Plan Mode is right for a first look: it can read and analyze, but shouldn't edit source files directly.

You can set it from the command line:

claude --permission-mode plan

For the first task, have it answer:

  • Which files it found.
  • Where the problem might be.
  • What it plans to change.
  • How it plans to verify.

If it proposes reading directories outside the project, installing global dependencies, or changing system config, the task's scope isn't clear enough yet.

A runnable task has five parts

Goal

For example: no horizontal scroll at 390px width.

Scope

Read only index.html and styles.css; only styles.css may be edited.

Boundaries

No installing dependencies, no network, no Git, no deploy.

Acceptance

The body text, images and buttons all sit inside the viewport.

Stop condition

If the problem comes from another file, report first — don't widen the scope automatically.

Put together:

Find out why this sample page scrolls horizontally at 390px width.
Read only index.html and styles.css; only styles.css may be edited.
Don't install dependencies, don't go online, don't run Git or deploy.
When done, say which rule you changed and how to tell the horizontal scroll is gone.
If you must edit another file, stop first and explain why.

That's easier to accept than "help me optimize my site," and easier to catch when it oversteps.

Permissions aren't opened all at once

The official permission settings support allow, ask and deny, evaluated in the order deny, ask, allow.

A way to think about it:

Reading project files: low-risk by default, but sensitive files should be denied.

Editing the workspace: the first time it happens, look at the file and the purpose.

Shell commands: approve by category — don't allow all Bash forever just because one command was safe.

Extra directories: add them only when the task genuinely needs them.

Skipping permission prompts: only for a truly isolated container or VM.

The docs are explicit that bypassPermissions skips a large number of prompts. Don't use it on your main computer and real repos just to save a few confirmations.

Which files should be explicitly excluded

At least:

  • .env.
  • credentials.
  • auth.
  • The SSH directory.
  • Cloud service config.
  • Database exports.
  • Browser profiles.
  • Private notes.
  • Production logs.

Putting a file in .gitignore doesn't mean Claude Code can't read it. Git ignore and agent permissions are two different boundaries.

Use the official settings and permissions.deny to define sensitive paths, and verify the deny actually works with a test file that holds no sensitive data.

What to leave behind, before and after an edit

Before

  • The current directory.
  • The allowed files.
  • The original page or test result.
  • The forbidden actions.
  • A copy you can roll back to.

After

  • The files actually changed.
  • The reason for each change.
  • Acceptance results that map to the goal.
  • The external actions that weren't taken.
  • The questions still unconfirmed.

"Claude Code said it's done" isn't evidence. A file diff, a build result, a page screenshot or test output is.

The first task shouldn't include Git or deploy

Split the task into three rounds:

  1. Edit local files.
  2. Accept the local result.
  3. Decide separately whether to commit, push or deploy.

Correct local changes don't mean the commit message is right; a successful commit doesn't mean a production deploy succeeded.

Every external action should get explicit authorization for the current task, and be read back from the remote repo or the production URL.

How to work through common install problems

Command not found

Check whether the install path is on PATH, and that no old npm version or shell alias is shadowing it.

Permission error

The current recommended native install lives under your home directory. Don't immediately reach for sudo and escalate the problem to the system level.

Login won't open

Check whether the network can reach the official auth page, whether the system browser is blocking it, and whether your account plan includes Claude Code.

Inconsistent Windows shell

PowerShell, CMD, Git Bash and WSL have different command syntax. Confirm which shell your prompt belongs to first; don't mix install commands.

Multiple versions installed

Use the command path to locate the current executable, then upgrade or uninstall by the matching install method.

Cost and account boundaries

Claude Code's available paths and costs may come from:

  • Claude Pro, Max, Team or Enterprise.
  • The Anthropic Console.
  • Bedrock, Vertex AI or another officially supported platform.

The exact scope and price change — check the official plan page on the day you use it.

Don't buy accounts of unknown origin, shared auth files, or services that promise "never banned." They introduce account-ownership, data, payment and recovery risks all at once.

For a first task, this is enough

  • Installed from an official source.
  • The command path is clear.
  • Launched in the right test directory.
  • Plan Mode can explain the edit plan.
  • File edits only happen within the allowed scope.
  • Sensitive paths are denied.
  • Acceptance maps to the goal.
  • No unauthorized Git, network or deploy actions.
  • You know how to uninstall your current install method.

When the first task ends, you should be able to explain why it changed those files, which piece of evidence proves the goal is met, and which actions never got authorization. Get that far, and then let it into a bigger repo.

SOURCE AND VERIFICATION

Sources and limits

The reference pages only supplied the topic; none of the fixed-IP, payment-routing, account-farming or 'never banned' narratives are reused. Install and permission details follow Anthropic's official docs.

Verification: Checked against the current Claude Code official install, Quickstart and Permissions docs; no reinstall or paid calls were made this round.

ONE PRACTICAL NEXT STEP

Tell me what your first task will be

Write down the goal, the files it may touch, and the one thing it must not do — then send it over. A task with a clear boundary is far easier to judge than 'help me improve my site,' and I'm happy to pressure-test yours before you hand it to a tool with real permissions.

Message me
Read more articles ↗

KENTON / BUY & CONSULT

Subscriptions & software.

ChatGPT subscriptions · Zhike software
Buy directly, or talk it through first.

Opens the relevant platform, where you can view products and order or ask questions.