Docs · Coding agents

Claude Code

Use Whiskers from Claude Code.

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 and choose Claude Code there. You get this command with everything filled in, key included, so there's nothing to answer.

  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.

    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.

    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.