What you need#
- An account with a model provider (such as OpenAI, Anthropic, Google Gemini, DeepSeek, OpenRouter, SiliconFlow, or a local Ollama server).
- The
API Keyissued by your provider. - The provider's API endpoint address, commonly called the
Base URL.
Setup steps#
- Open Settings → Models & usage → Provider Management.
- Select an existing provider, or add a new provider.
- Enter the
Base URLandAPI Key, then save. - Add the models you want to use under that provider.
If you are unsure about API styles, model IDs, capability toggles, or which plan to pick, tap the persistent Let AI help configure it entry on the Provider Management page. Choose a management model from your currently enabled chat models, then ask directly—for example, "Check my current setup", "Help me compare providers, plans, and models", or "Fetch models for this provider"—or paste a model list for the AI to organize and write in. You stay in control: configuration changes require confirmation. When handing an API Key to the AI, prefer the Key button in the input bar: the key from your clipboard stays strictly on your device, and only a CUBEKEY placeholder appears in the conversation, so the raw key is never sent to the management model's provider. Entering the key manually on the Provider Details page is equally safe. If you have already pasted a plaintext key into the chat, the AI can still configure it for you, but because the key was sent in the conversation, you should rotate it in your provider's console as soon as possible.
Choose a protocol per model#
You can set the API protocol and endpoint path on each model's edit page under a provider; by default, models inherit the provider's setting. Different models under the same provider can individually use OpenAI Chat Completions, OpenAI Responses, Anthropic, or Gemini protocols—pick a combination your provider actually supports. Changing the protocol does not automatically give a model vision or tool-calling capabilities; always run a quick test after editing. Command Code already includes a provider preset and balance template, though you still need to supply your own valid credentials.
After setup#
Return to the Chat tab, switch to the model you just added in the model picker, and start chatting.
Header templates#
If a relay or gateway requires a specific User-Agent, origin identifier, or other custom request headers, open Header Templates on the Provider Details page. You can save the current provider's headers as a reusable template, then apply, merge, or replace them across other providers in one tap.
Refetching models#
When a provider updates its catalog, refetch its model list. The results clearly separate newly discovered models, existing models, and older models not returned this time. By default, older models are kept so manually added or temporarily hidden models are not removed by accident. If you are sure the provider has retired them, enable Remove models not found this time; you will be asked to confirm again before saving.