Docs · Coding agents

# Claude Code

Use Whiskers from Claude Code.

There are two ways to set up Claude Code:

-   Automatic (setup script) Recommended One command writes Claude Code's config and saves your key.
-   Manual (edit the configuration yourself) Copy each file into place and put your key in your environment.

## Automatic (setup script)

Recommended

The setup script does the manual steps for you: it checks your key, writes Claude Code's config, keeping what's already in the file, and saves the key in your environment. Run it again to pick up new models, change the key, or undo the setup.

Linux, macOS, WSL 

```
curl -fsSL https://whiskers.nyuu.dev/setup.sh | sh -s -- --agents claude-code
```

Windows PowerShell 

```
& ([scriptblock]::Create((irm https://whiskers.nyuu.dev/setup.ps1))) -Agents claude-code
```

Faster still: create a key on the [Keys page](https://whiskers.nyuu.dev/keys) and choose Claude Code there. You get this command with everything filled in, key included, so there's nothing to answer.

## Manual (edit the configuration yourself)

1.  1
    
    ### Put your API key in an environment variable
    
    Add this to your shell profile (~/.zshrc, ~/.bashrc), with your key from the Keys page.
    
    ~/.zshrc 
    
    ```
    export WHISKERS_API_KEY=sk-...
    ```
    
2.  2
    
    ### Start it
    
    Claude Code reaches Whiskers through Anthropic's variables. Run these in the shell where you start it, or add them to your shell profile. Every model alias points at the model you pick unless you choose another under More models, since Claude Code also asks for one for background work. While they're set, they take the place of a claude.ai login.
    
    Model 
    
    More models
    
    Each of these is a setting Claude Code already has, shown by its own name. Leave one as it is and it keeps its default.
    
    `ANTHROPIC_DEFAULT_OPUS_MODEL` The opus alias, in /model and wherever Claude Code asks for it. 
    
    `ANTHROPIC_DEFAULT_SONNET_MODEL` The sonnet alias, in /model and wherever Claude Code asks for it. 
    
    `ANTHROPIC_DEFAULT_HAIKU_MODEL` The haiku alias, which Claude Code also uses for background work. 
    
    `ANTHROPIC_DEFAULT_FABLE_MODEL` The fable alias, in /model and wherever Claude Code asks for it. 
    
    `CLAUDE_CODE_SUBAGENT_MODEL` Subagents and agent team members that don't name a model. 
    
    `CLAUDE_CODE_AUTO_MODE_MODEL` The classifier that checks each action in auto mode. 
    
    shell 
    
    ```
    export ANTHROPIC_BASE_URL=https://whiskers.nyuu.dev
    export ANTHROPIC_AUTH_TOKEN="$WHISKERS_API_KEY"
    export ANTHROPIC_MODEL=deepseek-v4.1-flash
    export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4.1-flash
    export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4.1-flash
    export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4.1-flash
    export ANTHROPIC_DEFAULT_FABLE_MODEL=deepseek-v4.1-flash
    export CLAUDE_CODE_MAX_CONTEXT_TOKENS=1000000
    claude
    ```
    

The config lists today's models. When new ones appear on Models and pricing, copy it again.
