Set up a model API key
Houdini Agent needs a model to work. Enter an API key for a built-in provider, or add any OpenAI- or Anthropic-compatible endpoint. If you'd rather not use a key, sign in with a subscription instead; see Sign in with a ChatGPT, Claude or Google account.
Open the model settings
Any of these works:
- Press
Ctrl+,to open Settings and choose Models & providers on the left. - Click the model name in the composer and choose Manage providers… at the bottom of the list.
- Open the account menu at the bottom left of the sidebar and choose Models & providers.
Add a key for a built-in provider
- In Built-in providers, find the provider and click API Key on the right.
- Paste the key in the dialog (the eye icon shows or hides it) and click Save.
- If it isn't the current provider yet, click Use.
- Click the arrow to the left of the provider name to expand its models, then click a model to switch to it.
The key is stored only on this computer and is only used to call that provider's API.
Provide a key through an environment variable
You can also put the key in a user environment variable. When the variable is set, the app uses it first.
| Provider | Environment variable |
|---|---|
| Duojie | DUOJIE_API_KEY |
| OpenRouter | OPENROUTER_API_KEY |
| OpenAI | OPENAI_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
For example, in PowerShell:
[Environment]::SetEnvironmentVariable('DEEPSEEK_API_KEY', 'sk-xxx', 'User')
Restart Houdini Agent for it to take effect.
Add a custom provider
Any OpenAI- or Anthropic-compatible endpoint, such as a local model server or another relay, can be added:
- Under Custom providers, click Add provider.
- Enter a Name and choose the API format: OpenAI or Anthropic. It must match the protocol the endpoint actually speaks.
- Fill in the Base URL and API Key.
- Under Models, enter the model name and its Context size, and turn on Vision if the model can read images. Click Add model for more models.
- Click Save, then click Use in the list.
To change or remove it, click Edit on that provider; Delete is at the bottom of the editor.
The model must support function calling, or the agent can't work in the scene. Choosing the wrong API format for a custom provider also stops the model from calling tools.
Refresh the model list
Model lists for the built-in providers update automatically from each provider from time to time. To update now, click Refresh models next to the Built-in providers heading. Without a network connection or a key, the built-in list is used.
If something goes wrong
- The API returns errors, no models are listed, or the model talks but never acts: see Fix model errors or a model that won't use tools.
- To compare what each provider offers: see Supported providers and switching models.