Install Claude Code
Welcome to AI-assisted development with Claude Code! This guide will get you up and running in minutes.
Prerequisites
Before installing Claude Code, ensure you have:
- macOS or Linux (Windows support via WSL)
- Node.js 18+ installed (download)
- A Claude.ai account with Claude Code access
Installation Steps
1. Install Claude Code CLI
bash
npm install -g @anthropic-ai/claude-codeOr if you prefer using Homebrew (macOS):
bash
brew tap anthropic/tap
brew install claude-code2. Verify Installation
bash
claude --versionYou should see the Claude Code version information.
Quick Setup for This Project
If you're using the AI Coding Guidelines framework:
bash
# Clone the repository
git clone https://github.com/agronod/ai-coding-guidelines.git
cd ai-coding-guidelines
# Set up environment (for developer-tools-mcp)
export GITHUB_TOKEN=your_github_token
# Run the quick setup script
chmod +x ./scripts/quick-setup.sh
./scripts/quick-setup.shStart Your First Session
bash
# Simple start
claude
# Or with the opinionated guidelines (after setup)
clNext Steps
- Your First Project - Build something in 5 minutes
- Chat Modes - Learn interaction modes and features
- Steering Techniques - Master prompting and control methods
Troubleshooting
Common Issues
"Command not found" after installation
- Add npm global bin to your PATH
- Or restart your terminal session
Authentication fails
- Ensure you have Claude Code access on your account
- Try
claudefollowed by/logoutthenclaudeagain
MCP servers not loading
- Check
claude mcp list - Verify environment variables are set