Description
Problem
The opencode agent config example in the docs uses providers (plural) and places apiKey/baseUrl at the provider top level. opencode 1.17.x actually expects provider (singular) with apiKey/baseURL inside options.
Three schema mismatches found during ECS Fargate deployment:
"providers" → opencode 1.17.x returns Unrecognized key: providers
"apiKey" / "baseUrl" at provider top level → silently ignored, API call fails with AI_APICallError: Missing API key
"agent": { "instructions": "string" } → returns Expected object, got string
Why It Matters
Anyone following the current docs to deploy opencode-go on openab will get:
Unrecognized key errors on startup
- Silent API key failures (no error, just fallback to free models)
- ACP Connection Lost with no debug output
Verified on: openab 0.9.0-beta.2-opencode, opencode 1.17.9, ECS Fargate Spot
Current Behavior (from live container)
// ❌ What the docs suggest
{
"providers": {
"opencode-go": {
"baseUrl": "...",
"apiKey": "..."
}
}
}
// Result: Unrecognized key: providers
// ❌ apiKey at top level
{
"provider": {
"opencode-go": {
"apiKey": "...",
"baseURL": "..."
}
}
}
// Result: AI_APICallError: Missing API key (silently ignored)
// ✅ Verified working (opencode debug config output)
{
"provider": {
"opencode-go": {
"options": {
"baseURL": "https://opencode.ai/zen/go/v1",
"apiKey": "..."
},
"models": {
"deepseek-v4-flash": {}
}
}
},
"model": "opencode-go/deepseek-v4-flash"
}
### Suggested Change
Prior Research
• Searched open issues/PRs: no existing reports found
• Code checked: opencode debug config on live container (openab 0.9.0 + opencode 1.17.9)
• External refs: opencode.ai/docs/config
Proposed Fix
Update the opencode config example in docs to use:
1. "provider" (singular)
2. "options": { "baseURL": "...", "apiKey": "..." } (nested)
3. "models": { "model-id": {} } sub-object
Description
Problem
The opencode agent config example in the docs uses
providers(plural) and placesapiKey/baseUrlat the provider top level. opencode 1.17.x actually expectsprovider(singular) withapiKey/baseURLinsideoptions.Three schema mismatches found during ECS Fargate deployment:
"providers"→ opencode 1.17.x returnsUnrecognized key: providers"apiKey"/"baseUrl"at provider top level → silently ignored, API call fails withAI_APICallError: Missing API key"agent": { "instructions": "string" }→ returnsExpected object, got stringWhy It Matters
Anyone following the current docs to deploy opencode-go on openab will get:
Unrecognized keyerrors on startupVerified on: openab 0.9.0-beta.2-opencode, opencode 1.17.9, ECS Fargate Spot
Current Behavior (from live container)