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

# Claude Code

> Run Claude Code through nemonist with any model.

**1. Set the environment**

Add these lines to your shell profile (`~/.zshrc` or `~/.bashrc`), then open a new terminal:

```bash theme={null}
export NEMONIST_API_KEY="sk-nm-..."
export ANTHROPIC_BASE_URL="https://nemonist.com/api"
export ANTHROPIC_AUTH_TOKEN="$NEMONIST_API_KEY"
export ANTHROPIC_API_KEY=""  # must be empty
```

`ANTHROPIC_API_KEY` must be empty, or Claude Code sends that key instead of yours.

**2. Sign out of Anthropic**

If Claude Code is signed in to an Anthropic account, run `/logout` once so it uses your key.

**3. Start it**

Start it in your project with any model:

```bash theme={null}
claude --model anthropic/claude-sonnet-5.5
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.