Skip to content

Cloud Providers

Lattis can route to remote providers alongside your local models. Connect a provider once and its models appear in GET /v1/models next to the local ones; pass a model id like claude-opus-4-8 or gpt-5.5 to use it.

Requests are translated between the OpenAI, Anthropic, and Responses formats as needed, so a client speaking either dialect can use any connected model.

Two ways to connect:

  • Claude Pro/Max OAuth — sign in with your Anthropic account.
  • Console API key — paste a key from the Anthropic Console.

Once connected, Claude models (e.g. claude-opus-4-8, claude-sonnet-4-6, claude-haiku-4-5) are routable. The daemon advertises each model’s real context window in GET /v1/models.

Two ways to connect:

  • ChatGPT subscription login — uses the Codex Responses backend, including the Codex Responses WebSocket transport.
  • API key — a standard OpenAI API key.

GPT-5 family and Codex models become routable (e.g. gpt-5.5, gpt-5.4-mini).

The GUI wraps these, but they’re scriptable via the Control API:

Terminal window
# Set (or clear) a provider API key
curl -X POST http://127.0.0.1:1234/control/remote/anthropic/key \
-H 'Content-Type: application/json' -d '{"key":"sk-ant-..."}'
# Begin an OAuth connection
curl -X POST http://127.0.0.1:1234/control/remote/openai/connect
# Toggle a provider's manual exposure switch
curl -X POST http://127.0.0.1:1234/control/remote/anthropic/enabled \
-H 'Content-Type: application/json' -d '{"enabled":true}'
# Disconnect
curl -X POST http://127.0.0.1:1234/control/remote/anthropic/disconnect

Cloud credentials are stored in remote_auth.json in the data directory, written with 0600 permissions on Unix. See Configuration & Storage.

Continue to Usage & Cost to see how spend on paid cloud models is tracked.