Skip to main content
OpenCode can load organization config from:
The config defines one provider, compose-market, backed by @ai-sdk/openai-compatible. The remote config supplies the provider and model map. Credentials stay in OpenCode’s local /connect flow.

Provider config shape

The remote config uses this shape:
The public endpoint does not include an apiKey field. Use OpenCode’s /connect flow for the compose-market provider so OpenCode stores the credential locally, outside the remote config.

Models

OpenCode model keys are public catalog IDs. Examples:
OpenCode accepts a smaller model metadata schema than /external/v1/models. The remote config only includes fields OpenCode can validate; the full external catalog remains available at /external/v1/models.

Debug

If OpenCode starts but a model call fails, check the response headers:
They show which catalog row the request reached.