Custom Models and Endpoints
Add a model that is not in CloudCLI's built-in list, and point an agent at a different API endpoint.
CloudCLI shows a built-in list of models for each agent. When your provider offers a model that is not in that list, or you want an agent to use a different API endpoint, you can add it yourself. This works the same way in CloudCLI Cloud and in the self-hosted app.
CloudCLI does not sell or host models. Every agent uses your own subscription or API key.
Add a model that is not in the list
- Start a new chat and open the model picker.
- Click Add model. This opens Manage models. Typing
/modelsin the chat opens the same window. - Choose the agent: Claude, Codex, Cursor or OpenCode.
- Under Add a custom model, fill in a Model name (the label you want to see in the picker) and the Model ID.
- Click Add model.
The Model ID is sent to the agent exactly as you typed it, so use the identifier that agent's own CLI accepts. It cannot contain spaces.
To hide the built-in models for an agent and make your first model the default, turn on Use only my models.
Use a different endpoint with Claude Code
Claude Code reads its endpoint and credentials from environment variables, and CloudCLI passes them through. Set them in the env block of ~/.claude/settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://your-endpoint.example",
"ANTHROPIC_AUTH_TOKEN": "your-token"
}
}Use this for a gateway, a proxy, or another provider that offers an Anthropic-compatible API. Then add the model IDs that endpoint serves under Manage models, as described above.
In CloudCLI Cloud, edit the file inside your environment (from the terminal or the file explorer). In the self-hosted app it is the file on the machine that runs CloudCLI UI. Start a new chat session for the change to apply.
Codex, Cursor and OpenCode
These agents keep provider settings in their own configuration, not in CloudCLI:
- Codex reads
~/.codex/config.toml. - OpenCode reads its config in
~/.config/opencodeand works with the providers you set up there. - Cursor CLI uses the models of your Cursor account.
Configure the provider the way that agent's documentation describes, then add the model ID under Manage models if it does not show up in the picker.
Limits
CloudCLI passes the model ID and the settings to the agent's CLI as they are. Whether a third-party model or endpoint works depends on that CLI and on the provider, so try it on a small task first.