How to Set Up Claude Code
How to set up Claude Code is a practitioner's guide to getting 📝Claude Code running and configured for real work — not just installed, but set up with the memory, permissions, and workflow patterns that make it productive from day one. This guide reflects how someone running a 📝Brian Bot actually configures the tool.
Installation
curl -fsSL https://claude.ai/install.sh | bashThis is 📝Anthropic's recommended native install for macOS, Linux, and WSL; Windows, Homebrew, WinGet, and Linux package-manager installs are on the setup page. Claude Code is also published as a global npm package (npm install -g @anthropic-ai/claude-code), which requires Node.js 22 or later. Claude Code requires a Claude Pro, Max, Ultra, Team, Enterprise, or Console account (the free claude.ai plan does not include it), or a third-party provider such as Amazon Bedrock. Run claude in your terminal to start. First launch opens a browser to log in; if you've set the ANTHROPIC_API_KEY environment variable and approve it when asked, Claude Code skips the login prompt.
The First File: CLAUDE.md
Before writing any code, create your project's 📝CLAUDE.md file. This is the single highest-leverage action in any Claude Code setup. See: 📝CLAUDE.md as Infrastructure and 📝How to Write a CLAUDE.md File.
# Project: [Your Project Name]
## Architecture
- [Framework, language, key dependencies]
- [File structure overview]
## Development Rules
- [Branching strategy]
- [Testing requirements]
- [Deployment rules — e.g., "never push to main without asking"]
## Conventions
- [Code style, naming, patterns you follow]Claude Code reads CLAUDE.md files from ~/.claude/CLAUDE.md (global), the project root (./CLAUDE.md or ./.claude/CLAUDE.md), and subdirectories, which load when Claude works with files in them. Start with a project-level file. Add a global file when you notice patterns repeating across projects.
Permission Configuration
Claude Code asks permission before running commands. For trusted operations, pre-approve them in ~/.claude/settings.json:
{
"permissions": {
"allow": [
"Read", "Edit", "Write", "Glob", "Grep",
"Bash(git status)", "Bash(git diff)",
"Bash(npm test)", "Bash(npm run build)"
]
}
}Start conservative. Add permissions as you build trust. This mirrors 📝Collaborative Augmentation: the system earns expanded authority through demonstrated competence.
Connect Your Knowledge System
If you use a knowledge platform like 📝MythOS, connect it via 📝MCP:
claude mcp add --transport http mythos \
--scope user \
https://mythos.one/api/mcp \
--header "Accept: application/json, text/event-stream" \
--header "x-mythos-key: YOUR_API_KEY" \
--header "x-mythos-username: YOUR_USERNAME"This gives Claude Code access to your knowledge library across every project. See: 📝MythOS MCP and 📝How to Set Up MythOS with Claude Code.
Key Workflows
Plan Mode
For non-trivial tasks, use plan mode — Claude Code reads the codebase, proposes an approach, and waits for approval before writing code:
- Enter plan mode: press
Shift+Tabuntil the status bar shows⏸ plan mode on, or prefix your prompt with/plan - Type your task description
- Claude proposes an approach
- Review and approve (or redirect)
- Claude executes the plan
This is 📝agentic coding at its best: the agent plans, you verify, the agent builds.
Sub-Agents
For complex tasks, Claude Code spawns specialized sub-agents that work in parallel:
- Research agents explore the codebase while you continue the main conversation
- Background agents handle long-running tasks without blocking
- Each sub-agent gets its own context window, keeping the main conversation clean
Hooks
User-defined shell commands (or HTTP endpoints, MCP tool calls, prompts, or subagents) that run automatically at specific points in Claude Code's lifecycle, such as before or after tool calls and on notifications. Use hooks for custom automation — running linters after edits, posting to Slack after commits, or triggering builds after file changes. See: 📝Claude Code Hooks and Skills.
The Practitioner Setup
After running Claude Code across multiple production applications, here's the configuration that works:
- Global CLAUDE.md — collaboration patterns, workflow principles, correction history (synced from 📝MythOS)
- Project CLAUDE.md — architecture decisions, deployment rules, branching strategy
- MCP connections — MythOS for knowledge, Playwright for browser automation, project-specific servers as needed
- Permission allow-list — pre-approve read/write/grep operations. Require approval for git push, deploy, and destructive operations
- Verification habit — always run tests, check logs, review diffs before accepting. See: 📝Building with Claude Code as a Non-Engineer
Every Claude Code setup guide I've read stops at installation. "Run npm install, type claude, you're done." That's like saying you've set up a workshop because you bought a hammer. The real setup is the CLAUDE.md file, the MCP connections, the permission model, and the verification habits. Those are the things that make Claude Code productive versus impressive-but-dangerous.
My setup evolved over a year of daily use. The CLAUDE.md syncs from MythOS so it's always current. The permissions are tuned to pre-approve the safe stuff and gate the risky stuff. The MCP connections give every session access to my full knowledge base. That's not a tool setup. That's 📝Augmentation Stack infrastructure.
