Docs · Coding agents

# Aider

Use Whiskers from Aider.

There are two ways to set up Aider:

-   Automatic (setup script) Recommended One command writes Aider'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 Aider'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 aider
```

Windows PowerShell 

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

Faster still: create a key on the [Keys page](https://whiskers.nyuu.dev/keys) and choose Aider 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
    
    ### Tell aider each model's limits
    
    Save as .aider.model.metadata.json in your home directory or the repository's root, so aider knows each model's context window.
    
    .aider.model.metadata.json 
    
    ```
    {
      "openai/deepseek-v4.1-flash": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/deepseek-v4.1-flash-abliterated": {
        "max_tokens": 128000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 128000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/deepseek-v4.1-flash-ultrafast": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/glm-5.3": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/glm-5.3-abliterated": {
        "max_tokens": 128000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 128000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/glm-5.3-flash": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/glm-5.3-flash-abliterated": {
        "max_tokens": 128000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 128000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/glm-5.3-flash-ultrafast": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/kimi-k3": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/kimi-k3.1-pro": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/kimi-k3.1-pro-abliterated": {
        "max_tokens": 128000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 128000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/qwen3.8-27b": {
        "max_tokens": 131000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/qwen3.8-flash": {
        "max_tokens": 131000,
        "max_input_tokens": 982000,
        "max_output_tokens": 131000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      },
      "openai/qwen3.8-omni-flash": {
        "max_tokens": 128000,
        "max_input_tokens": 1000000,
        "max_output_tokens": 128000,
        "input_cost_per_token": 0,
        "output_cost_per_token": 0,
        "litellm_provider": "openai",
        "mode": "chat"
      }
    }
    ```
    
3.  3
    
    ### Start it
    
    Aider reaches OpenAI-compatible APIs through the OpenAI variables. Name the model with the openai/ prefix:
    
    Model 
    
    More models
    
    Each of these is a setting Aider already has, shown by its own name. Leave one as it is and it keeps its default.
    
    `weak-model` Commit messages and summarizing the chat history. 
    
    `editor-model` Making the edits in architect mode. 
    
    shell 
    
    ```
    export OPENAI_API_BASE=https://whiskers.nyuu.dev/v1
    export OPENAI_API_KEY="$WHISKERS_API_KEY"
    aider --model openai/deepseek-v4.1-flash
    ```
    

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