Once you've installed Claude Code, here's how to use it. The core is simple — run claude in your project folder and tell it what to do in plain language; it reads and edits files directly. Before changing anything, it always shows a diff and asks for approval.
🟢 Model references match the current lineup · model notice · Fable subscription
Fable 5 and 5.1 subscription (updated September 7, 2026): Claude Fable 5.1, released September 1, 2026, is the current Fable model and Fable 5 is now legacy. Plan terms are the same for both — Max and Team Premium plans include Fable at up to 50% of the weekly usage limit; Pro and Team Standard use usage credits (
New to it? See What is Claude Code? first to learn how it differs from a chatbot or autocomplete.
Getting started
- Open a terminal in your project folder and run
claude. On first run you'll log in via the browser (OAuth) once. - After the welcome screen you get an interactive prompt. Type your request in natural language.
# after cd into your project folder
claude
Claude can see the folder you launch in and its subfolders, so be mindful of where you run it.
Asking + referencing files
Just ask in plain language. To point at a specific file, type @ then the path (autocomplete supported); that file's content is injected into the conversation.
@src/pages/Home.tsx change the header text to 'Welcome'
Claude shows the change as a diff (preview) and asks for approval — you can accept, reject, or ask for revisions.
Handy commands & shortcuts
/— list available slash commands@path— add a specific file to context!— run a terminal command and feed the output to Claude?— show shortcuts /Tabautocomplete /↑historyEsc— stop the current action/rewindorEsctwice — roll back to a previous checkpoint (a snapshot is saved on every edit)/loginswitch accounts ·/mcpmanage MCP servers
Two modes
- Interactive (default): open a session with
claudeand go back and forth. Good for complex implementation. - One-shot:
claude -p "list every TODO left in src/api"runs once and returns a result. Good for scripts, CI, and quick lookups.
Using it in VS Code
Two ways:
- Official extension ("Claude Code for VS Code"): adds a sidebar panel and a diff view where you approve changes with a click. (Works in Cursor too, since it's a VS Code extension.)
- Built-in terminal: run
claudedirectly; file changes show up in your editor tabs immediately. MCP setup, the!command, and some slash commands are CLI-only.
Safety
By default Claude Code requires approval before writing files or running commands (Ask mode). You can configure permissions to block dangerous commands (force pushes, deletes). Every edit is saved as a checkpoint you can undo with /rewind.
Getting more out of it
Writing your project's structure, rules, and common commands into a CLAUDE.md makes every session faster and reduces mistakes. See the CLAUDE.md guide. To connect external tools, see the MCP connection guide.
Stuck during install or auth? See Claude Code troubleshooting.
To run it automatically in a team repo, set up the Claude Code GitHub integration with @claude mentions.
For a roundup of common commands, see the slash commands reference covering built-in and custom commands.
See also: Claude Code IDE Setup (VS Code & JetBrains)
Related: Claude vs Claude Code vs Cowork · Claude Code Pricing Explained
Related articles
- How to Use Claude: A Step-by-Step Guide for Beginners
- How to Use Claude Projects: Knowledge & Instructions to Cut Repetition
- Claude Artifacts: How to Create, Edit, Publish & Share (2026)
- Claude Code Installation Guide: native vs npm, Windows Included
- What Is Claude Code? A Beginner's Intro to the Terminal AI Agent