Documentation / User guides
API keys and models
Add an API key for each model provider you want to use, and find your way around the model menu.
How keys work
Kismet runs models on your own provider account, so each provider needs its own API key. Keys are stored encrypted on your machine, under ~/.kismet/, and are never sent to Kismet. A key belongs to a provider, not to a model: one Anthropic key covers every Anthropic model in the menu.
Providers
Each provider has a section in the model menu. The table lists the models in each section, the environment variable Kismet reads, and where to create a key.
| Anthropic | Opus 5.5, Fable 5.1, Sonnet 5.5, Haiku 5.5. Variable: ANTHROPIC_API_KEY. Key: platform.claude.com/settings/keys |
|---|---|
| OpenAI | GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna. Variable: OPENAI_API_KEY. Key: platform.openai.com/api-keys |
| Gemini 4 Argon, Gemini 3.8 Flash. Variable: GEMINI_API_KEY. Key: aistudio.google.com/apikey | |
| DeepSeek | DeepSeek V4 Pro, DeepSeek V4.1 Flash. Variable: DEEPSEEK_API_KEY. Key: platform.deepseek.com/api_keys |
| Z.ai | GLM-5.3, GLM-5.3 Flash. Variable: ZAI_API_KEY. Key: z.ai/manage-apikey/apikey-list |
| Moonshot | Kimi K3.1 Pro. Variable: MOONSHOT_API_KEY. Key: platform.kimi.ai/console/api-keys |
| MiniMax | MiniMax M3, MiniMax M3.1 Flash. Variable: MINIMAX_API_KEY. Key: platform.minimax.io/user-center/basic-information/interface-key |
Add a key
The quickest way in is from the model menu. Saving a key takes effect immediately; you do not need to restart Unreal Editor.
- 1.
Open the model menu.
In the Kismet panel, click the model button at the bottom of the composer.
- 2.
Click Add key on the provider's section.
A provider without a key shows Add key on its section header. Clicking it opens the API keys window with that provider's field focused.
- 3.
Paste the key and click Save.
Use Get a key next to the field if you do not have one yet. The provider's status changes from not set to configured.
- 4.
Pick a model from that section and send a message.
The API keys window
The API keys window lists every provider with its status (configured or not set), a Get a key link, a password field, and Save and Clear buttons. Besides Add key, you can open it from:
| Model menu | The API keys row at the bottom of the menu. |
|---|---|
| More menu | The API keys item in the panel's … menu. |
| /keys | Type /keys in the chat. The window opens on the selected model's provider. |
| New chat | If the selected model's provider has no key, the new-chat screen says so and shows an Add key button. |
| Sending a message | If you send a message without a key, Kismet opens the window on that provider. |
Use an environment variable
If you already keep keys in your shell environment, Kismet reads them at startup and they override any key saved in the API keys window. Unreal Editor only sees variables that were set before it launched.
- 1.
macOS — launch the editor from a Terminal that exports the key
Starting the editor from the Dock or the Epic Games Launcher does not pass your shell variables on, so run the editor binary directly.
export ANTHROPIC_API_KEY=sk-ant-... "/Users/Shared/Epic Games/UE_5.8/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/UnrealEditor" - 2.
Windows — set the variable, then restart the Epic Games Launcher and Unreal Editor
setx ANTHROPIC_API_KEY "sk-ant-..."
Other providers
OpenRouter (OPENROUTER_API_KEY, key at openrouter.ai/settings/keys), local models through Ollama or LM Studio (no key needed), and custom Anthropic- or OpenAI-compatible endpoints are available through the /provider chat command. They do not have a section in the model menu.
- 1.
List providers and whether each has a key
/provider - 2.
Pick a provider, optionally with a model and base URL
The general form is /provider <id> [model] [base-url]. For example, to use a local Ollama model:
/provider ollama qwen3.8:27b
Troubleshooting
- Invalid API key
- Paste the key again in the API keys window and click Save. If the error persists, check whether the provider's environment variable is set to an old key; it overrides the saved one.
- A model says there is no key, but I added one
- Keys are per provider. Check which section the model is listed in and add a key for that provider.
- An environment variable is not picked up
- Unreal Editor reads environment variables when it starts. Quit it and launch it again from a shell (or, on Windows, a session) that has the variable set.