Skip to main content

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.
Models are populated for you automatically.
Don’t see AnyAPI in /connect? Your OpenCode version may predate the built-in provider. Use the manual OpenAI Compatible setup instead.
Browse all models at anyapi.ai/ai-models.

Troubleshooting

Update OpenCode to the latest version, or fall back to the manual OpenAI Compatible setup.
Re-run /connect, select AnyAPI, and re-enter your key. Confirm it’s active at dash.anyapi.ai.
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