> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

Claude Code is an agentic coding tool launched by Anthropic that runs in your terminal. It can understand your codebase and help you code faster by performing routine tasks.

This site provides an Anthropic SDK-compatible LLM API service. You can easily use a variety of large language models in Claude Code to complete tasks. Please refer to the guide below to complete the integration process.

1. Install Claude Code

Run the following command in your terminal to install Claude Code.

⚠️ Before installing Claude Code, please make sure your local environment has Node.js 18 or higher installed.

```bash theme={null}
npm install -g @anthropic-ai/claude-code
```

2. Start a terminal session

```bash theme={null}
{
  export ANTHROPIC_BASE_URL="https://api.myrouter.ai/anthropic"
  export ANTHROPIC_AUTH_TOKEN="<API Key>"
  # Set a model supported by this platform
  export ANTHROPIC_MODEL="claude-opus-4-1-20250805"
  export ANTHROPIC_SMALL_FAST_MODEL="claude-sonnet-4-20250514"
}
```

Next, navigate to your project directory and start Claude Code.

```bash theme={null}
cd <your-project-directory>
claude .
```
