Third-Party Integrations
OpenCode
Configure RouteMarket in OpenCode-style cross-platform terminal / IDE AI assistants.
OpenCode is a category of AI coding assistant primarily built around the terminal, also available as a desktop app and IDE extension, that supports connecting to model providers across multiple different protocol families.
The following is a general configuration structure reference. Exact UI text and field locations follow OpenCode's own official documentation — this page is not officially verified by RouteMarket.
Configuration structure
Tools in this category typically require configuring:
- Provider identifier: give this configuration a recognizable name, e.g.
routemarket. - Protocol format: choose the matching protocol based on the model you're calling (e.g. Anthropic protocol or OpenAI protocol).
- Endpoint URL: use
https://api.routemarket.ai/v1when using the OpenAI protocol, orhttps://api.routemarket.aiwhen using the Anthropic protocol (typically no/v1suffix needed). - Authentication: enter your RouteMarket API token.
- Model list: specify the model IDs and display names you want to use.

Verify
Once configured, run a simple request in OpenCode and confirm you get a normal model response. If you hit an authentication error, check whether the key is correct or expired, or see the FAQ.