pi
Use Whiskers from pi.
There are two ways to set up pi:
Automatic (setup script)
RecommendedThe setup script does the manual steps for you: it checks your key, writes pi'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.
curl -fsSL https://whiskers.nyuu.dev/setup.sh | sh -s -- --agents pi
& ([scriptblock]::Create((irm https://whiskers.nyuu.dev/setup.ps1))) -Agents pi
Faster still: create a key on the Keys page and choose pi there. You get this command with everything filled in, key included, so there's nothing to answer.
- 1
Put your API key in an environment variable
Add this to your shell profile (~/.zshrc, ~/.bashrc), with your key from the Keys page.
~/.zshrcexport WHISKERS_API_KEY=sk-...
- 2
Add Whiskers as a provider
In ~/.pi/agent/models.json. If the file exists, add the provider to its providers.
~/.pi/agent/models.json{ "providers": { "whiskers": { "name": "Whiskers", "baseUrl": "https://whiskers.nyuu.dev/v1", "api": "openai-completions", "apiKey": "$WHISKERS_API_KEY", "compat": { "supportsDeveloperRole": true, "supportsReasoningEffort": true, "maxTokensField": "max_completion_tokens" }, "models": [ { "id": "deepseek-v4.1-flash", "name": "deepseek-v4.1-flash", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "deepseek-v4.1-flash-abliterated", "name": "deepseek-v4.1-flash-abliterated", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 128000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "deepseek-v4.1-flash-ultrafast", "name": "deepseek-v4.1-flash-ultrafast", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "glm-5.3", "name": "glm-5.3", "reasoning": true, "input": [ "text" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "glm-5.3-abliterated", "name": "glm-5.3-abliterated", "reasoning": true, "input": [ "text" ], "contextWindow": 1000000, "maxTokens": 128000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "glm-5.3-flash", "name": "glm-5.3-flash", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "glm-5.3-flash-abliterated", "name": "glm-5.3-flash-abliterated", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 128000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "glm-5.3-flash-ultrafast", "name": "glm-5.3-flash-ultrafast", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "kimi-k3", "name": "kimi-k3", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "kimi-k3.1-pro", "name": "kimi-k3.1-pro", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "kimi-k3.1-pro-abliterated", "name": "kimi-k3.1-pro-abliterated", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 128000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "qwen3.8-27b", "name": "qwen3.8-27b", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "qwen3.8-flash", "name": "qwen3.8-flash", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 982000, "maxTokens": 131000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } }, { "id": "qwen3.8-omni-flash", "name": "qwen3.8-omni-flash", "reasoning": true, "input": [ "text", "image" ], "contextWindow": 1000000, "maxTokens": 128000, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } } ] } } } - 3
Start it
Pick a model with /model inside pi, or start with one:
shellpi --provider whiskers --model deepseek-v4.1-flash
The config lists today's models. When new ones appear on Models and pricing, copy it again.