model_credential_id and nothing else.
Before you start
A token, and two connections to switch between — the whole point. Gobare is bring-your-own-key: the model bill is yours, the computer is ours. Nine connectors are built in (Anthropic, OpenAI, xAI, OpenRouter, MiniMax, DeepSeek, Qwen, Kimi, GLM) pluscustom, which takes any endpoint speaking Anthropic
Messages or OpenAI Chat Completions.
See what you have connected
credentials:write
scope. See model-credentials.md.
The switch
model_credential_id changed. The task, the tools, the instructions
and the way you collect results are untouched. The second connection takes an
entirely different path — different connector, different base URL, different
protocol adapter — and the agent in the workspace knows nothing about any of it.
Confirm they really differed
model_credential_id, not model. Two connections can run the same
model, and the model name alone proves nothing about which one was used.
Move the whole organization
Rather than naming an id on every call, set a different connection as the default in the Console. Sessions that name none follow it:You have it working when
GET /v1/model-credentialslists your connections and the response contains no key and no base URL- Both sessions reach
completedwith equivalent output - Their
agent.model_credential_idvalues differ - Nothing but that one field differed between the two requests
- An unconnected model name returns
400naming what is connected
What to know
A running session can be moved.PATCH /v1/sessions/{id} with
agent.model and agent.model_credential_id together switches the connection
in place — the workspace, the transcript and the tools all stay:
agent.model must match the connection. One connection runs one model;
moving between two models from the same vendor means two connections.
Capabilities are not normalised across providers. One may not accept
images; another has a smaller context window. Those differences reach your
agent’s behaviour unchanged. GET /v1/model-credentials tells you what is
connected, not what each one can do.