OpenCode
OpenCode has Standard Compute built in as a provider.
1. Install and open OpenCode
curl -fsSL https://opencode.ai/install | bash
Then run opencode inside your project.
2. Connect your API key
Run /connect, choose Standard Compute, and paste your API key from the dashboard.
3. Select the model
Choose Standard Compute when the model picker opens. That's it.
You can change which models smart routing uses at any time on the Models page.
Manual configuration
If Standard Compute doesn't appear in /connect, update OpenCode or add the provider yourself:
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"model": "standardcompute/standardcompute",
"provider": {
"standardcompute": {
"npm": "@ai-sdk/openai-compatible",
"name": "standardcompute",
"options": {
"baseURL": "https://api.stdcmpt.com/v1",
"apiKey": "{env:STANDARDCOMPUTE_API_KEY}"
},
"models": {
"standardcompute": { "name": "standardcompute" }
}
}
}
}
Then set the key in your shell:
export STANDARDCOMPUTE_API_KEY=YOUR_API_KEY
The agent config generator produces this file for OpenCode V1 and V2.