Getting Started with Claude Code
What Is Claude Code and How It Differs from Claude.ai
Claude Code is an agentic coding tool that runs directly in your terminal and operates on your local files. Learn what makes it different from chat-based AI and when to reach for it.
Claude Code Is Not a Chat Interface
Claude.ai is a web-based conversation interface. You describe what you want, Claude responds with text, and you copy-paste what's useful. The gap between the AI's output and your working codebase is manual.
Claude Code eliminates that gap. It's an agentic coding tool that runs in your terminal, reads your local files directly, writes changes back to disk, runs shell commands, and executes tests — all within the context of your actual project. There's no copy-paste. Changes happen in your repository.
The Key Distinctions
| Dimension | Claude.ai | Claude Code |
|---|---|---|
| Where it runs | Browser | Your terminal |
| File access | None (you paste code) | Full read/write to local files |
| Commands | None | Executes shell commands, npm, git |
| Context | Conversation window | Your full codebase |
| Output | Text responses | Actual file edits |
| Iteration | You apply changes manually | Applied automatically, reviewable |
What "Agentic" Means in Practice
"Agentic" means Claude Code can take multi-step actions autonomously. When you ask it to add a feature, it doesn't just write one file — it can:
- Explore your codebase to understand the existing structure
- Read relevant files to understand conventions and patterns
- Write or modify multiple files
- Run tests to verify the change didn't break anything
- Report what it did and what it found
Each of these steps involves real tool use against your real filesystem. This is the fundamental capability that makes Claude Code qualitatively different from chat-based AI coding assistance.
Security Architecture: Localized by Design
Claude Code operates entirely within your local environment. It does not upload your code to a remote server for processing in the way a cloud IDE might. The model processes requests using your API key, but the file operations — reads, writes, executes — happen locally.
This makes Claude Code suitable for:
- Proprietary codebases you can't paste into a web interface
- Projects with sensitive data or credentials that shouldn't leave the local environment
- Enterprise environments with code confidentiality requirements
Claude Code also implements a permission system. Before running shell commands, it prompts for approval (unless you've configured auto-approve for specific commands). You can control exactly what level of autonomy you grant.
PowerShell and Windows Support
Claude Code runs in any terminal environment, including Windows PowerShell. The setup process on Windows installs Claude Code globally via npm and makes it available as a claude command in PowerShell, Command Prompt, or Windows Terminal.
This means the same workflow available to macOS and Linux developers — navigate to a project directory, invoke Claude Code, issue natural language instructions, and have changes applied to local files — works identically on Windows.
When to Use Claude Code vs. Claude.ai
Use Claude Code when:
- You want changes applied directly to your local codebase
- The task involves multiple files or requires understanding project structure
- You want to run tests or shell commands as part of the workflow
- You're working with a proprietary codebase
- You want agentic, multi-step task completion
Use Claude.ai when:
- You want to explore an idea without touching a codebase
- You need a document, explanation, or analysis
- You're working in a context where Claude Code isn't installed
- You want to paste a small code snippet and get focused feedback
The tools complement each other. Many developers use Claude.ai for planning and documentation, then switch to Claude Code for implementation.
Key Takeaways
- Claude Code runs in your terminal and operates directly on local files — no copy-paste required
- It's agentic: it can explore, read, write, run commands, and test across multiple steps
- Security is local by design — files don't upload to external servers
- It runs on Windows PowerShell, macOS Terminal, and Linux shells identically
- It complements Claude.ai rather than replacing it
---
Try It Yourself: Install Claude Code with npm install -g @anthropic-ai/claude-code, navigate to any project directory, and run claude. Type: "What does this project do? Give me a 3-sentence summary based on the files you can see." Observe how Claude Code reads your actual files rather than requiring you to paste them.