Skip to main content
A Workspace can run Sessions on any model it connects. There are three ways to add one, and each works in the app, with the CLI and over the HTTP API. List available providers returns every provider, whether it takes a sign-in, an API key or both, and the fields it needs.

In the app

Open Settings → Models. Choose a provider to sign in or enter its API key. For anything else choose Custom and enter the server’s Base URL, its API key (any value for a keyless server) and its model IDs. For a server on your own computer or a private network, see Use a model on your own machine.

With the CLI

reason call runs any API operation with JSON input from a file, so the key never appears on the command line. This connects a hosted OpenAI-compatible provider as a Custom endpoint:
reason tools describe configureProviderCredential prints the exact fields. Install and sign in as Reason CLI describes.

With the HTTP API

The same two calls take an API key from Settings > API with org:write (Authentication and scopes) and your Workspace id from GET /v3/self. This stores a provider API key:
For a Custom endpoint, use custom-endpoint as the provider and send the body object from the CLI example. To test without saving, POST the same body to .../provider-credentials/{providerId}/validate. References: Validate a provider API key, Configure a provider credential and, for a sign-in, Start provider sign-in.

Custom endpoint fields

Only the Base URL is required.

Use the model

A connected model appears in the model picker and in List models. A Custom endpoint’s models are named byok:custom-endpoint:<model id>, and its account’s source_id is custom-endpoint:<account_key>, with the account_key the save returned. To run a Session on exactly that connection, put that key in place of ACCOUNT_KEY:
Create a session documents these fields. To list, rename or remove connected accounts, see Provider accounts and Fast mode.

Rules that surprise people

  • A Custom connection has one context window. It applies to every model in that connection.
  • A model not named in CUSTOM_ENDPOINT_REASONING_MODELS gets no effort setting in the model picker. Raise CUSTOM_ENDPOINT_MAX_OUTPUT_TOKENS for reasoning models.
  • The endpoint must support tool calls. Agents cannot work without them.
  • Reason cloud calls only a public HTTPS address. A server on localhost, a LAN or a tailnet needs Your computer and explicit model IDs: see Use a model on your own machine.
  • Keys are encrypted and write-only. No call returns one; to change a connection, save it again.
  • Any member adds a key or replaces one they connected. Replacing a key someone else connected takes an owner or admin.