Part 1 of the Claude Code series explains how to install the official version, log in and run the first working session in a test folder. It also sets out five operations you need to know so you don't break files, and how to review changes in VS Code.

Many people know Claude through a chat window: ask a question, read the answer, then copy it over to where they work. Claude Code removes that copying step. It reads files, edits files and runs commands right inside your project folder, so repetitive work can be handed over entirely instead of merely asking for advice. This series goes from installation to workflow automation, with each post a sequence of steps you can follow straight away. This is post 1.
Many people install it, type claude in some random place and ask a vague question. The result is bland, and they conclude the tool is overhyped. The fault lies elsewhere. Claude Code works in the folder you are standing in, so choose the wrong place to stand and every step after that goes off course.
This post goes from a blank machine to a first working session in the terminal, then moves over to VS Code. Each step has a screenshot spot.
You need a paid Claude account (Pro, Max, Team or Enterprise) or a Claude Console account, plus a terminal. On macOS, press Cmd+Space and type Terminal. On Windows, press Win+X and choose Windows PowerShell.
Claude Code also runs on the web and in the desktop app. The web version runs on a cloud virtual machine and usually needs a GitHub connection to pull source code, so beginners working on their own machine will hit fewer snags.
Claude Code accesses files in the folder you launch from and its subfolders. Do not launch from the Desktop or your home folder. Create a separate folder:
mkdir claude-lab
cd claude-lab
git init
The last line is optional. It lets you review every change with git diff, and you will need that at the end of this post.
Image 1a. The three commands in Windows PowerShell (illustrative image)
Image 1b. The three commands in a Linux terminal
macOS, Linux, WSL:
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
The installer shows no progress, so just leave the window open. When it finishes, open a new terminal, cd back into claude-lab and run claude --version. A version number means success.
If the terminal says the claude command is not found, the install folder is not yet in PATH. If the machine says irm is not recognised, you are in CMD rather than PowerShell. This post only uses the native install because it updates itself in the background; the new version takes effect the next time you run claude, and you need do nothing more.
Image 2a. Installation in Windows PowerShell (illustrative image)
Image 2b. The result of claude --version on Windows (illustrative image)
Image 2b. The result of claude --version on Linux
Type claude. On the first run, Claude Code asks you to choose a colour theme, then choose a login method: pick the first line if you use a Pro, Max, Team or Enterprise plan. The browser opens and you log in to your Claude account. You will not have to log in again next time; to switch accounts, type /login in the session.


The welcome screen shows the version, model and working folder. Check that the working folder displayed is indeed claude-lab.
Image 3a. First run: choosing an interface
Image 3b. Choosing a sign-in method
Image 3c. Welcome screen after signing in (illustrative image)
Type the following prompt and press Enter:
Tạo một trang index.html đơn giản có dòng chữ "Xin chào" và một nút đổi màu nền.
Depending on the version and plan type, Claude may ask for permission before creating a file, or it may go ahead and only block what it considers risky. If it asks, choose Yes. When it is done, open index.html in a browser, then run git add . so git records the new file. After that, make the next request:
Đổi nút thành màu xanh lá và thêm bộ đếm số lần bấm.
Now git diff will show exactly which lines have changed. If you skip the git add command, git diff returns nothing because the file is still untracked.
Image 4. Claude asks for permission before creating a file (illustrative image)
Image 5. The index.html page in a browser (illustrative image)
Esc: stops Claude while it is running, preserving the context so you can adjust direction.Esc twice or /rewind: returns to the previous state.Shift+Tab: switches permission mode./clear: clears the context when moving on to an unrelated task./exit or Ctrl+D twice: quits.You need VS Code 1.94.0 or later. Open Extensions (Ctrl+Shift+X, or Cmd+Shift+X on Mac), search for "Claude Code", and click Install. Open the claude-lab folder in VS Code, then click the Spark icon in the top-right corner of the editor (it only appears when a file is open) or the Claude Code line in the status bar at the bottom. Sign in through the browser as above.
In Manual mode, Claude shows a side-by-side comparison before modifying a file for you to approve. Highlight a section of code and press Alt+K (Option+K on Mac) to attach a reference to the prompt.
One easy stumbling block: the extension bundles its own CLI for the chat panel. To type claude in VS Code's integrated terminal, you still need step 2.
Image 6. The change comparison in VS Code (illustrative image)
Anthropic's own documentation admits it: in permission-asking mode, after about ten approvals people start clicking through instead of reading. A tool that asks for permission constantly does not make you safer; it only trains you to stop reading.
That is why git init in step 1 matters more than it appears. When attention runs out, git diff is the net that remains. The question for the next post: if Claude gets it right the first time, how do you know whether that was down to a good prompt or to luck?
Sources: Quickstart; Terminal guide; Claude Code in VS Code; How Claude Code works; Best practices; Claude Code on the cloud.
Comments
No comments yet. Be the first!
You need to sign in to comment.