Provider setup
Connect a model API with /setup, formats, images, and headers
Provider setup
Open the terminal UI and run the setup wizard:
superchargeThen type:
/setup/login opens the setup flow. supercharge login is the terminal entry point for provider configuration when an ACP editor reports missing authentication. /logout clears session-based auth only. Provider URL and key settings remain under /setup. See ACP authentication.
What you enter
- Pick a listed provider, or choose Custom and type a base URL.
- Choose the API format: Chat Completions, Messages, or Responses. A listed provider already picks the format that matches its API.
- Enter the API key when the provider requires one. A local server can run without a key. Mistral Auth and Nous open a browser instead of asking you to paste a key.
- Pick a model from the list the provider returns, or type an id that endpoint accepts.
Listed providers
/setup shows these rows, plus Custom. Each row stores its own base URL and key, so OpenCode Go and OpenCode Zen stay separate from ZenLLM, and Mistral Auth stays separate from a pasted Mistral key.
| Row | How you sign in | Format |
|---|---|---|
| Pollinations | Key optional on the free route | Chat Completions |
| OpenAI | API key | Chat Completions |
| Anthropic | API key | Messages |
| OpenRouter | API key | Chat Completions |
| DeepSeek | API key | Chat Completions |
| Google AI Studio | API key | Chat Completions |
| Groq | API key | Chat Completions |
| Z.AI / GLM | API key | Chat Completions |
| Kimi Coding | API key | Chat Completions |
| Moonshot (Kimi Anthropic) | API key | Messages |
| Qwen Cloud | API key | Chat Completions |
| Mistral Auth | Browser sign-in | Chat Completions |
| Mistral API Key | Pasted key | Chat Completions |
| Together AI | API key | Chat Completions |
| Fireworks AI | API key | Chat Completions |
| xAI (Grok) | API key | Chat Completions |
| Routing.run | API key | Chat Completions |
| ZenLLM | API key | Chat Completions |
| OpenCode Go | OpenCode subscription | Chat Completions |
| OpenCode Zen | OpenCode pay-as-you-go | Chat Completions |
| AgentRouter | API key | Responses |
| Nous Research | Browser sign-in | Chat Completions |
| Ollama (local) | Key optional. Default http://127.0.0.1:11434/v1 | Chat Completions |
| LM Studio | Key optional. Default http://127.0.0.1:1234/v1 | Chat Completions |
After Mistral Auth, /credits opens a balance popup for that account. It shows percent used and dollars spent while it loads.
ChatGPT (Codex) browser sign-in exists in the source and can still load a config that was saved earlier. It is hidden from the /setup picker while that Responses stream is unfinished. Use OpenAI with an API key for Chat Completions.
The base URL should look like https://api.example.com/v1. Do not append /chat/completions, /messages, or /responses. The CLI adds that path from the format you chose.
Saved config goes in ~/.supercharge/config.toml and is reused next launch. A global environment variable is not accepted as the provider API key. Put the key in /setup.
Formats
api_backend | Protocol | Auth the adapter sends |
|---|---|---|
chat_completions | OpenAI Chat Completions | Bearer token. This is the default when unset. |
responses | OpenAI Responses | Bearer token |
messages | Anthropic Messages | x-api-key plus the Anthropic version header |
Change the saved format later without re-entering the key:
/formatIf no valid setup exists yet, /format tells you to run /setup first. The endpoint must actually support the format you pick.
Switch models later
/model
/model your-model-id
/m your-model-id
/effort high/model with no argument fetches /models from the saved base URL and lists chat models. The second argument on a reasoning model is an effort level: low, medium, high, or xhigh. /effort changes effort on the current model only when that model advertises it.
From the shell, for one run:
supercharge -m your-model-id
supercharge -p "Summarize this repo" -m your-model-id
supercharge modelsCtrl+M in the scrollback opens the model picker. With the prompt focused, Ctrl+M toggles multiline input instead.
A persistent default:
[models]
default = "your-model-id"Request size
max_request_bytes caps one request to your provider. Set it on a model, or on the provider so models inherit it. When it is unset, chat and responses requests cap at 50 MiB and the Messages API caps at 30 MiB. The TOML key is max_request_bytes.
Extra headers and query params
[model.my-model]
model = "model-id"
base_url = "https://api.example.com/v1"
name = "Display name"
api_backend = "chat_completions"
api_key = "enter-this-through-setup"
temperature = 0.7
top_p = 0.95
max_completion_tokens = 8192
context_window = 128000
extra_headers = { "x-api-key" = "sk-..." }
query_params = { api-version = "2026-07-22" }extra_headers are sent as written on every request to that endpoint. Per-model values win over the same keys under [models].
Image and video providers
Chat setup does not configure images. Use a separate wizard:
/isetup
/imodels flux
/imagine a diagram of the request flow
/imagine-video a short pan across a deskAliases: /imagine-setup, /image-setup, /imagine-model, /image-model, /imodel. Image settings are [image_provider] in config.toml. /imagine needs /isetup first.