API keys
Settings → API keys holds the keys for remote servers and cloud services. Each key has a name. Every form that needs a key picks one by that name: the remote server and OpenRouter forms in Settings → Inference, a job's model fields, Code sessions, and the image, video, music, upscaler, speech engine and search helper settings. Change a key here and every place that uses it gets the new value.
The local model Haruspex runs for you needs no key.
Add a key
Type a Name (for example "OpenRouter") and paste the Key value, then press Add key. A key without a name is saved as "Untitled". Then choose it in the form that needs it.
You can also add one without leaving a form: choose New key…, the last entry in any API key list, enter a name and the key, and press Save. The new key is added here and chosen in that form. Manage in Settings → API keys, under the list, opens this tab; it isn't shown inside a dialog such as a Code session's model.
Paste only the key. If the value has a space in it, a warning says so, because no provider's key contains one.
Rename a key
Edit the name in the key's row and click away. Forms that use the key show the new name; nothing else changes.
Change a key's value
The value field shows "Saved — type to replace" and never shows the key itself. Type or paste the new value and click away. Leaving the field empty keeps the old value.
See where a key is used
Under each key, a line lists what uses it, or says Not used: Settings sections (Image generation, Video generation, the upscalers, Music generation, Speech engine, the Search helper), saved servers (Inference for the server Settings → Inference uses, Server: and a name for the others, OpenRouter), and a count of jobs and Code sessions. A job or session counts when it chose the key, or chose none and runs on a saved server that has it. See the saved-servers page.
Delete a key
Press Delete and confirm. If something uses the key, the dialog lists it first: those stop working until another key is picked. Adding it again later makes a new key, so each form that used it must choose it again.
A key marked missing
If the secret store has lost a key, or refuses to give it to Haruspex, the row says so. Type the key again in that row. Until you do, requests that use it are refused.
Where keys are kept
Keys go in your system keychain (GNOME Keyring or KWallet on Linux, Keychain on macOS, Credential Manager on Windows). The settings file keeps only each key's name and id. Where no keychain works, Haruspex keeps keys in an encrypted file in its data folder, and the tab says so in one line. If even that can't be written, keys are kept only until Haruspex closes. See the search-and-network page for more on the secret store.
What it doesn't do
- Keys never leave this computer, except in the requests sent to the server that uses them. A Code session on another computer refers to a key by id and uses that computer's own keys.
- Keys are not synced between computers, and the Remote control API lists them by name only: it can't read or set a value.
- Some servers keep their own key instead: ComfyUI and Lemonade servers in Settings → Image generation, the Brave Search key in Settings → Search, and MCP server tokens in Settings → MCP servers.