Pi
Pi includes OpenCode providers for pay-as-you-go and Go. It picks the right API for each model, so every Console model works.
| Provider | Plan |
|---|---|
opencode | Pay-as-you-go |
opencode-go | Go |
Configure
Both providers read the key from OPENCODE_API_KEY. Create a personal API key.
export OPENCODE_API_KEY="oc_sk_..."
pi --model opencode/claude-sonnet-5-5
You can also run /login in Pi and select the provider. Pi stores the key in ~/.pi/agent/auth.json.
/login opencode
Go
Use the opencode-go provider with a key from a workspace with a Go subscription.
pi --model opencode-go/kimi-k3
Models
Select a model as <provider>/<model-id>, using IDs from the Console or
Go table. List the models Pi knows about with --list-models.
pi --list-models opencode-go
Set a default in ~/.pi/agent/settings.json, or press Ctrl+S in the /model picker.
{
"defaultProvider": "opencode-go",
"defaultModel": "kimi-k3"
}Run pi update --models when a new Console model doesn’t appear yet.
Console MCP
Pi v0.99.0 and later support MCP. Add the Console MCP server, then sign in from the browser.
pi mcp add opencode-console --url https://opencode.ai/console/mcp
pi mcp login opencode-console