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.
Anthropic
Section titled “Anthropic”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.
OpenAI / Codex
Section titled “OpenAI / Codex”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).
Connecting from the API
Section titled “Connecting from the API”The GUI wraps these, but they’re scriptable via the Control API:
# Set (or clear) a provider API keycurl -X POST http://127.0.0.1:1234/control/remote/anthropic/key \ -H 'Content-Type: application/json' -d '{"key":"sk-ant-..."}'
# Begin an OAuth connectioncurl -X POST http://127.0.0.1:1234/control/remote/openai/connect
# Toggle a provider's manual exposure switchcurl -X POST http://127.0.0.1:1234/control/remote/anthropic/enabled \ -H 'Content-Type: application/json' -d '{"enabled":true}'
# Disconnectcurl -X POST http://127.0.0.1:1234/control/remote/anthropic/disconnectCredentials
Section titled “Credentials”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.