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.

If a provider's environment variable is set, for example ANTHROPIC_API_KEY, it overrides the key saved in Kismet.

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.

AnthropicOpus 5.5, Fable 5.1, Sonnet 5.5, Haiku 5.5. Variable: ANTHROPIC_API_KEY. Key: platform.claude.com/settings/keys
OpenAIGPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna. Variable: OPENAI_API_KEY. Key: platform.openai.com/api-keys
GoogleGemini 4 Argon, Gemini 3.8 Flash. Variable: GEMINI_API_KEY. Key: aistudio.google.com/apikey
DeepSeekDeepSeek V4 Pro, DeepSeek V4.1 Flash. Variable: DEEPSEEK_API_KEY. Key: platform.deepseek.com/api_keys
Z.aiGLM-5.3, GLM-5.3 Flash. Variable: ZAI_API_KEY. Key: z.ai/manage-apikey/apikey-list
MoonshotKimi K3.1 Pro. Variable: MOONSHOT_API_KEY. Key: platform.kimi.ai/console/api-keys
MiniMaxMiniMax M3, MiniMax M3.1 Flash. Variable: MINIMAX_API_KEY. Key: platform.minimax.io/user-center/basic-information/interface-key
DeepSeek, GLM, Kimi and MiniMax are open-weight models, but Kismet does not run them on your machine. It calls each vendor's hosted API, so you need that vendor's API key just like for Anthropic or OpenAI. To run a model locally, see Other providers below.

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. 1.

    Open the model menu.

    In the Kismet panel, click the model button at the bottom of the composer.

  2. 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. 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. 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 menuThe API keys row at the bottom of the menu.
More menuThe API keys item in the panel's … menu.
/keysType /keys in the chat. The window opens on the selected model's provider.
New chatIf the selected model's provider has no key, the new-chat screen says so and shows an Add key button.
Sending a messageIf 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. 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. 2.

    Windows — set the variable, then restart the Epic Games Launcher and Unreal Editor

    setx ANTHROPIC_API_KEY "sk-ant-..."

The model menu

Models are grouped in sections: Recent, Anthropic, OpenAI, Google, DeepSeek, Z.ai, Moonshot and MiniMax. Recent appears at the top once you have used two models. Within a provider's section, the strongest model is listed first and the fastest, cheapest one last.

ThinkingToggle at the top of the menu.
EffortLow, Medium or High, plus XHigh and Max on models that support them.
Fast modeToggle at the top of the menu.

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. 1.

    List providers and whether each has a key

    /provider
  2. 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.