Skip to main content
By default, a workspace’s playground/chat uses the platform’s default model. Set a per-workspace OpenRouter API key to route that workspace’s chat through your own OpenRouter account, and (optionally) choose the model. This is configured on the workspace endpoints (POST /api/v1/mcp/workspaces and PATCH /api/v1/mcp/workspaces/{id}). The environment (sandbox/production) is always derived from the API key — sk_test_* keys operate on sandbox, sk_live_* on production.
Looking to disable server-side conversation storage and supply prior turns yourself? See the Stateless Chat guide.

Set the key on create

Update the key or model later

The dashboard exposes the same controls in the workspace’s AI Config card.

Field reference

openRouterApiKey is input-only. It is never echoed in create/get/update/list responses. To inspect the current configuration, read the llm status object (below). To remove a key, call DELETE /api/v1/mcp/workspaces/{id}/llm-key.

Platform fallback

When no openRouterApiKey is configured on a workspace, chat falls back to the platform’s default model — you don’t have to set a key to use chat at all.

The llm status object

Create, get, and update responses (and each list item) include an llm object describing the workspace’s BYO LLM state. The key itself is never present here.
RouteMCP currently supports OpenRouter only for bring-your-own LLM keys. Support for additional providers is in progress and coming soon.