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

# Claude Code

> 配置 Claude Code 终端工具使用 EzTokens

通过 EzTokens 驱动 Claude Code（终端版），即可使用 Claude 及更多模型。

## 1. 安装 Claude Code

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

## 2. 配置环境变量

```bash theme={null}
export ANTHROPIC_BASE_URL=https://api.eztokens.ai/v1
export ANTHROPIC_API_KEY=$EZTOKENS_API_KEY
```

## 3. 运行

```bash theme={null}
claude
```
