# Claude Code **⚡ One-Click Configuration Recommended** We highly recommend using our new one-click configuration tool to save you the hassle of manually editing configuration files and setting environment variables. Simply run the following command in your terminal to automatically set up both **Claude Code** and **Codex**: ```bash npx -y easyrouter-config ``` Once completed, you can start using them immediately. To set up manually, please follow the traditional guide below. ## Install Claude Code ```bash npm install -g @anthropic-ai/claude-code claude --version ``` ## Configure Coding Plan Create `~/.claude/settings.json`: ```json { "env": { "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY", "ANTHROPIC_BASE_URL": "https://easyrouter.io/codingplan/anthropic", "ANTHROPIC_MODEL": "dola-seed-2.0-pro" } } ``` Also set `~/.claude.json`: ```json { "hasCompletedOnboarding": true } ``` Create `%USERPROFILE%\.claude\settings.json`: ```json { "env": { "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY", "ANTHROPIC_BASE_URL": "https://easyrouter.io/codingplan/anthropic", "ANTHROPIC_MODEL": "dola-seed-2.0-pro" } } ``` Also set `%USERPROFILE%\.claude.json`: ```json { "hasCompletedOnboarding": true } ``` `hasCompletedOnboarding` must be a top-level field; otherwise startup will fail with `Unable to connect to Anthropic services`. ## Use Claude Code ```bash cd /your/project claude ``` Run `/status` to verify your model, Base URL, and API Key configuration. ### Common Commands | Command | Description | |---------|-------------| | `/status` | Check model, API Key, Base URL | | `/init` | Generate `CLAUDE.md` in project root | | `/clear` | Clear conversation history | | `/plan` | Enter planning mode (no code changes) | | `/model ` | Switch model |