Cloud models
Connect hosted models with a ChatGPT plan or an API key.
On this page
Cloud models are models hosted by a provider such as OpenAI or Anthropic. In Model management, choose a provider and a model, connect a credential to register the model, then select it as the Butler model.
Supported providers
| Provider | Auth method |
|---|---|
| OpenAI | ChatGPT plan or API key |
| Anthropic | API key |
| API key | |
| xAI / Grok | API key |
| DeepSeek | API key |
| Upstage | API key |
| Motif | API key |
| Qwen Cloud | API key |
| Moonshot / Kimi | API key |
| Z.AI Coding Plan | API key |
| Z.AI API | API key |
| OpenCode Go | API key |
The model list for each provider comes from the model catalog included in Butler, and shows only the models that can run now. To use a model that is not in the list, or a server you run yourself, connect it as a Custom model.
Register a model
- In the sidebar, open Settings and select Models.
- In the Butler model section, click Manage models.
- Click Add model.
- Choose a Provider and a Model. For OpenAI, leave Auth method set to API key.
- In Saved credential, choose New credential and enter the API key. Credential name tells several keys apart, and you can leave it empty.
- Click Add. When registration finishes, you return to the Registered models list.
If you already saved a key for the same provider, choose that key in Saved credential. You do not need to enter the key again.
- In the sidebar, open Settings and select Models.
- In Butler model, click Manage models, then Add model.
- Leave Provider set to OpenAI and change Auth method to ChatGPT plan.
- Click Continue with ChatGPT. Sign in in your browser and allow plan use.
- Return to Butler and check Signed in and your account. Choose a Model in your plan, then click Add.
Choosing the auth method does not start sign-in or open a browser. Until you sign in, Add is disabled with the Sign in to ChatGPT first hint.
- While waiting, use Copy link or Open in browser to open the sign-in page.
- If sign-in times out or fails, click Start sign-in again.
- To connect another account, click Use another account.
ChatGPT plan uses the signed-in account’s plan. An API key uses OpenAI API authentication and billing. The ChatGPT model list shows models in your plan that Butler supports. Manage usage opens ChatGPT usage settings.
You can also pick a service and connect a model during first run. First run does not ask you to choose a model. It registers the everyday model set for each service.
Choose the default model
- In the Butler model section of Settings → Models, open the Model list.
- Choose the model to use. The change is saved right away.
- The list shows the provider, the model name and the context size. Once you register at least one model, the list shows only the models you registered.
- For Reasoning, choose one of the reasoning efforts the selected model supports. If you change models and the new model does not support the current reasoning effort, it changes to that model’s default.
- Context limit is the context budget Butler actually uses. Set it from 1,000 tokens up to the model’s maximum. When you change models, it is adjusted so that it does not exceed the new model’s maximum.
- The model menu in the composer shows the same list of models.
Manage registered models
The Registered models list in Model management shows each model’s auth method and masked key, as in API key · sk-...x.
- Edit — Change the auth method, the saved credential or the API base URL, then click Save.
- Delete — Click Delete in the confirmation dialog to remove the model from the list of selectable models.
API base URL
For the following providers, the API base URL field also appears, filled in with the default address. Change it only when you need an endpoint other than the default address. The address must be an http or https URL.
| Provider | Default address |
|---|---|
| xAI / Grok | https://api.x.ai/v1 |
| DeepSeek | https://api.deepseek.com |
| Upstage | https://api.upstage.ai/v1 |
| Motif | https://api-cbt.morphfactory.io/v1 |
| Qwen Cloud | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 |
| Moonshot / Kimi | https://api.moonshot.ai/v1 |
| Z.AI Coding Plan | https://api.z.ai/api/coding/paas/v4 |
| Z.AI API | https://api.z.ai/api/paas/v4 |
| OpenCode Go | https://opencode.ai/zen/go/v1 |
Manage API keys
Settings → Models → API keys lists your saved keys by provider. If you named a key, the name follows the provider, as in OpenAI / work. If no keys are saved, the No saved API keys. message appears.
Each key shows the following information.
- Masked key
- Number of models that use the key
- Storage location
The app never shows a whole key, only its first three characters and its last character. If models use the key, a model count such as 2 models appears. If none do, Not in use appears. The storage location appears as Stored only on this computer, Stored in Keychain, Stored in the system keyring or Stored in Credential Manager. See Where credentials are stored.
Replace a key
- In Settings → Models → API keys, click Replace for the key you want to change.
- Paste the key into the New key field.
- Click Save.
- When you save, Butler first checks the new key with the provider. Checking appears during the check.
- If the provider rejects the key, an error appears under the field and the saved key does not change.
- After a replacement, the key name and the models that use the key stay the same.
- To stop replacing the key, click Cancel.
Delete a key
- In Settings → Models → API keys, click Delete for the key you want to remove.
- Click Delete in the confirmation dialog.
- You cannot delete a key that the default model uses. The Delete button is disabled and the Change the default model first hint appears. Change the default model to another model, then delete the key.
- If you delete a key that other models use, those models are deleted with it. The confirmation dialog shows how many models will be deleted.
- A key that no model uses is deleted as soon as you click Delete in the confirmation dialog.
For example, for an OpenAI key that two models use, the Delete the OpenAI key? 2 models use it and will be removed. message appears.
Where credentials are stored
Credentials are stored in the data folder (~/.butler by default). If you changed the data folder with the BUTLER_DATA environment variable, the paths below are under that folder.
- API key list (provider, name, masked key):
~/.butler/auth/model-provider-credentials.json - API keys:
~/.butler/auth/credential-store.json - ChatGPT sign-in data:
~/.butler/auth/chatgpt.json - Registered model list:
~/.butler/butler.config.json
By default, Windows and Linux releases store API keys in a file on this computer. The file permissions are set so that only the owner can read and write it (0600). The app shows Stored only on this computer.
The macOS release stores API keys in the macOS Keychain, and the app shows Stored in Keychain. The first time it runs, it moves keys already saved in the file into the Keychain automatically.
On Windows and Linux too, running butler config set secrets.store system stores API keys in the system store, shown as Stored in Credential Manager or Stored in the system keyring. Keys already in the file move to the system store.
If you turned on Butler Vault and it opens without a password on this computer (for example with the Keychain), API keys are stored in the vault and the app shows Stored in Butler Vault. Turning the vault on moves keys you already saved into it. On a computer where only the master password opens the vault, API keys stay in the locations above.
If keys saved by an earlier version remain in model-provider-credentials.json, Butler Agent moves them to the storage location when it starts.
Butler renews the ChatGPT sign-in data automatically when it is close to expiring.