AnyAPI Plugin for OpenCode
OpenCode is an open-source AI coding CLI. AnyAPI is listed as a selectable provider inside OpenCode’s/connect flow — no base URL or model ID to type in by hand.
Get Your API Key
Go to API Keys in the AnyAPI Dashboard and create a new key.Installation
Inside OpenCode, run:1
Select AnyAPI
Choose AnyAPI from the provider list.
2
Paste your API key
Enter your AnyAPI key when prompted.
Don’t see AnyAPI in
/connect? Your OpenCode version may predate the built-in provider. Use the manual OpenAI Compatible setup instead.Recommended Models
Browse all models at anyapi.ai/ai-models.
Troubleshooting
AnyAPI not in the provider list
AnyAPI not in the provider list
Update OpenCode to the latest version, or fall back to the manual OpenAI Compatible setup.
Authentication failed
Authentication failed
Re-run
/connect, select AnyAPI, and re-enter your key. Confirm it’s active at dash.anyapi.ai.Model not found
Model not found
Use the full
vendor/model form (e.g. anthropic/claude-sonnet-4.6), not a bare model name.Next Steps
Manual OpenCode Setup
Configure AnyAPI as a custom OpenAI-compatible provider
All Integrations
Browse all supported tools
Support
- AnyAPI Dashboard: dash.anyapi.ai
- AnyAPI Discord: Discord community
- AnyAPI Email: support@anyapi.ai