Supported Providers
- Cloud APIs
- Cloud Infrastructure
- Local Models
| Provider | Environment Variable | Notes |
|---|---|---|
| Anthropic (Claude) | ANTHROPIC_API_KEY | Recommended. Deepest integration: built-in web search, extended thinking, prompt caching. Includes Claude Fable 5 (1M context, Opus-tier reasoning). |
| OpenAI | OPENAI_API_KEY | GPT-4o, o1, o3, and all current OpenAI models. |
| Google Gemini | GEMINI_API_KEY | Gemini 1.5 Pro, Flash, and Gemini 2.x models. |
| OpenRouter | OPENROUTER_API_KEY | 200+ models from multiple providers via a single key. |
| Groq | GROQ_API_KEY | High-throughput inference for Llama, Mixtral, and others. |
| xAI (Grok) | XAI_API_KEY | Grok-2 and Grok-3 models. |
| Mistral | MISTRAL_API_KEY | Mistral Large, Small, and Codestral. |
| GitHub Copilot | GH_TOKEN | OAuth-based — sign in via browser with gsd config. |
gsd config — keys are stored in ~/.gsd/agent/auth.json and apply to all projects automatically.Listing Available Models
List all models GSD can find with your current credentials:Overriding the Model for a Session
Pass--model when starting GSD to use a specific model for that session, ignoring whatever is set in preferences:
Switching Models In-Session
Change the active model without restarting the session:models.json file reloads each time you open the picker — no restart needed.
You can also switch directly:
Claude Fable 5
Claude Fable 5 is an Opus-tier Anthropic model that ships across the Anthropic API, Anthropic on Vertex AI, Amazon Bedrock, and OpenRouter. Pi treats it the same asclaude-opus-4-8: it advertises a 1M-token context window, 128K max output, image and text input, and adaptive thinking with the xhigh effort level enabled by default.
Use it when you want maximum reasoning quality on planning, debugging, or long-context refactors and you’re willing to spend Opus-tier dollars (or, on a Claude Pro / Max / Team / Enterprise subscription, route through Claude Code for subscription-covered usage).
Once your Anthropic credentials are configured, Claude Fable 5 appears in the model picker by ID:
PREFERENCES.md:
claude-fable-5 is also exposed on the heavy routing tier with subscription-covered pricing and the context-1m-2025-08-07 beta enabled automatically.
Using Claude Subscriptions via Claude Code
If you have a Claude Pro, Max, Team, or Enterprise subscription, authenticate through Anthropic’s official Claude Code CLI instead of an API key:Adding Custom or Unlisted Models
Define custom models, local endpoints, and OpenAI-compatible proxies in~/.gsd/agent/models.json:
apiKey value is the name of the environment variable GSD should read (not the literal key). GSD resolves it automatically at runtime.
Per-Phase Model Routing
Assign different providers or models to different phases of the auto-mode pipeline inPREFERENCES.md:
Verifying Your Setup
After configuring a provider, verify everything is working:
If a model doesn’t appear, check that:
- The environment variable is exported in the current shell
~/.gsd/agent/models.jsonis valid JSON (cat ~/.gsd/agent/models.json | python3 -m json.tool)- The local inference server is running (for Ollama, LM Studio, etc.)
