🔑 Setting Up AI Model API Keys
AMBA pairs your local files and analytical execution engine with frontier cloud intelligence for strategic reasoning. To operate AMBA, you need an API key from at least one supported AI provider.
🔒 Where Your Keys Are Stored: OS Keychain Only
IMPORTANT
AMBA stores API keys only in your operating system's keychain:
- macOS: macOS Keychain.
- Windows: Windows Credential Manager.
- Linux: Secret Service over D-Bus (GNOME Keyring, KWallet 5.97 or later, or KeePassXC with Secret Service enabled).
There is no plaintext or database fallback. Keys are not logged and are sent only to the provider they belong to. After saving, AMBA reads the key back and shows success only if the keychain kept it. Pasted keys are trimmed; keys containing line breaks, invisible or non-ASCII characters are rejected.
Linux without a running keyring: saving fails with "No system keychain is available…", and Settings → System Diagnostics shows the keychain as unavailable. Install or enable GNOME Keyring or KWallet and restart AMBA (details).
TIP
macOS asks "AMBA wants to use your confidential information stored in … in your keychain"? AMBA keeps all its keys in one keychain entry and reads it at most once while it runs. Click Always Allow and macOS stops asking; signed updates keep that choice. Development builds you compile yourself ask again after each rebuild, because each build has a new signature. Keys saved by 0.5.11 or earlier move into that single entry the first time they are used, so you may be asked once per old key, one time only.
Which entry, and why "Allow" is not enough. The prompt names the entry AMBA – saved API keys and connections (account amba-vault-v1) — that single entry holds every AMBA key and connection. Entries created by older versions show as amba until the next time you save a key or sign in. Allow grants one access only, so macOS asks again at the next launch and when you save a key or sign in to Google; Always Allow grants it for good. While AMBA runs it does not touch the keychain again unless a key actually changes: Google Drive's hourly sign-in refresh stays in memory and is no longer written back.
WARNING
Updating from 0.5.9? Keys saved after updating to 0.5.9 were not kept. Enter them again in Settings → Models. Keys saved in 0.5.8 or earlier move to the keychain automatically on first launch.
📋 Supported Providers & Obtaining Keys
1. Anthropic Claude (Highly Recommended)
Best for: Executive synthesis, complex multi-track decomposition, and deep analytical reasoning.
- Visit the Anthropic Console.
- Sign in or create an account.
- Navigate to API Keys and click Create Key.
- Name your key
AMBA Desktopand copy the generated key string (starts withsk-ant-...).
2. OpenAI
Best for: High-speed general assistant workflows and structured document drafting.
- Visit the OpenAI Platform.
- Go to Settings > API Keys.
- Click Create new secret key, name it
AMBA Desktop, and copy the key (starts withsk-proj-...).
3. Google Gemini
Best for: Large-context ingestion and rapid exploratory analysis.
- Visit Google AI Studio.
- Click Get API key and generate a new key.
4. OpenRouter
Best for: Unified access to hundreds of frontier and open-weight models under a single account.
- Visit OpenRouter.
- Navigate to Keys and create a key (starts with
sk-or-...).
5. TypeSafe AI (Jev — System 1 Decision Engine)
Best for: Sub-second intent classification and automatic cognitive mode routing (Research, Plan, Agent).
- Visit TypeSafe AI.
- Obtain your API key for the Jev reasoning engine.
⚙️ Adding Keys in AMBA
- Launch AMBA on your computer.
- In the left navigation sidebar, click ⚙️ Settings > Model Settings.
- Follow the 3-step setup:
- Step 1: Primary Model: Select your main reasoning engine (e.g. Anthropic Claude 3.5 Sonnet or OpenAI GPT-4o) and enter your API key.
- Step 2: Fallback Strategy: Configure backup models to ensure continuous operation in case of rate limits or provider downtime.
- Step 3: Advanced & Experimental Routing: Enter your OpenRouter or TypeSafe AI (Jev) key to enable sub-second automatic cognitive mode routing.
- Click Save Key. The field then shows the key as saved in the keychain. If the keychain cannot keep it, an error explains why and nothing is saved.
