What the desktop app does, one part at a time.

The vault, the gateway that keeps a request alive, and the tools around them. Every screenshot uses demo keys marked FAKE.

One request that doesn’t die.

An agent used to die when Groq answered 429, or when a balance hit zero mid-session. The gateway on your computer, 127.0.0.1:8790, holds the request and walks the fallback chain. The agent only has an ik- key. It never receives the provider key. See it step by step.

  1. The call uses ik-.Not sk-, not gsk_. Those stay in the vault file.
  2. The file is useless on its own.~/.infinitykeys/vault.enc is AES-256-GCM. The data key is a Keychain item on macOS and a 0600 key file on Windows and Linux. It is not bound to the app. Anything running as you can read it, unless you turn on the passphrase.
  3. 402, 429, and a dead provider stay in the same request.The empty key is parked. The next one answers. A bad request still tries the chain, then returns the last provider’s error if every key fails.

One request, walked down the chain

Three keys fail in a row here. The agent still gets one normal answer.

Your computer401402429200:8790ik-Revoked key401 → marked InvalidOut of credits402 → parked 10 minRate-limited429 → cools 60 sWorking key200 → the answerGateway on your computer127.0.0.1:8790,holds the request openYour agentone ik- key, nevera provider keysame request, answeredik-Your agentone ik- key:8790Gateway onyour computer401Revoked key401 → Invalid402Out of credits402 → parked 10 min429Rate-limited429 → cools 60 s200Working key200 → the answerSame request, answered.The agent never saw an error.
  1. The agent sends one request to 127.0.0.1:8790 with its ik- key.
  2. The gateway swaps in the first key in your chain. A 401 or 403 marks that key Invalid.
  3. Out of credits (402, or a quota message) parks the key for 10 minutes.
  4. A 429 cools the key for 60 seconds, or as long as the provider’s Retry-After asks, up to an hour.
  5. The next working key answers. The agent gets a normal 200 and never sees the failures.

A request a provider can’t take (400, 404, 405, 422) also moves to the next key, with no cooldown. A server error or no answer cools the key for 15 seconds.

InfinityKeys desktop vault, with demo keys and two that need a swap. No real API keys.

Health, the keys I need to swap, and a lock, in the same window. Swap opens the provider’s key page and watches the clipboard only while that box is open.

Taken apart: what sits on disk, and what opens it

The keys, the encrypted file and the key that opens it are three different things in three places.

data keyvault.encsk-gsk_AIzask-antYour provider keysdecrypted in memory,only while unlockedvault.encAES-256-GCM, in~/.infinitykeys/Keychain or key fileholds the data keyA copied vault.encwon’t open withoutthe data keyPasscode or Touch IDdata keyvault.encsk-gsk_AIzaantYour keysdecrypted only whilethe app is unlockedvault.encAES-256-GCMData keyin Keychain or alocal key fileA copied vault.encwon’t open onits own
  1. Your provider keys live in one file, ~/.infinitykeys/vault.enc, encrypted with AES-256-GCM.
  2. The data key that opens it lives in your local keystore (macOS Keychain or 0600 key file), kept apart from the file.
  3. A copy of vault.enc on its own does not open.
  4. A passcode (or Touch ID on a Mac) locks the window. Keys are decrypted in memory only while it’s unlocked.

The Keychain item or key file isn’t bound to InfinityKeys, so anything running as you could read it. Turn on the passphrase to close that gap.

Agent Monitor ready to review a secret-free snapshot. Demo keys are marked FAKE.

I don’t hand an agent the vault so it can write a status report.

Monitor sends health, the chain, usage, and reminders. No secret. It can go through the universal key, or through Claude Code, Codex, Hermes, or Grok if that CLI is already signed in on your computer. I check that the login file exists. I don’t read the token.

A status report without opening the vault

Agent Monitor hands a model a snapshot of the vault’s state, never the vault.

Your computervaultreportsnapshotCLIgatewaymodelVaultkey values stay hereSnapshot, no secretshealth · chain · activity ·spend · reminders · unique keysSigned-in CLIClaude Code, Codex,Hermes or Grokor the gatewaywith your universal keyThe modelwrites the reportreport → Agent MonitorvaultVaultkey values stay heresnapshotSnapshothealth, chain, spend,reminders. No secrets.CLISigned-in CLIor the gateway withyour universal keymodelThe modelwrites the reportreportAgent Monitorshows the report
  1. InfinityKeys builds a snapshot: health, the fallback chain, recent gateway activity, spend, reminders and unique-key status. No key values.
  2. It goes to an agent CLI already signed in on this computer (Claude Code, Codex, Hermes or Grok), or through the gateway with your universal key.
  3. The model reads the snapshot and writes a status report.
  4. The report shows in Agent Monitor. Nothing was given the vault.

For a CLI, InfinityKeys only checks that its login file exists. It doesn’t read the token.

The MCP server stays up when the window is closed.

get_secret asks on your computer. No answer in 60 seconds is a no. Writes — a new key, an import, a chain change — ask too, unless you set the mode to on.

Agents and MCP: ask-every-time approval for raw secrets, and one-command setup for Claude Code, Cursor, and Hermes. The universal key is not shown.
get_secret · Ask every time

Every secret read stops at your computer first

An agent can ask for a raw key through MCP. You decide, on your computer, each time.

Your computervaultget_secret?DenyAllowMCPagentAny MCP clientClaude Code, Cursor,Hermes…MCP serverruns with thewindow closedYou decide, on your computerno answer in 60 s = DenyVaultreturns that onesecret, onceAllow → that one secretDeny or 60 s → refusedagentAny MCP clientasks for get_secretMCPMCP serverruns with thewindow closedAllow?DenyAllowYou decideDeny, or no answerin 60 s, refuses itvaultVaultreturns thatone secretAllow → that one secret,to that agent, once.
  1. The agent calls get_secret through the MCP server, which keeps running when the window is closed.
  2. InfinityKeys shows Allow / Deny on your computer.
  3. Allow returns that one secret to that agent.
  4. Deny, or no answer within 60 seconds, refuses it.

Writes (a new key, an import, a chain change) ask the same way, unless you set writes to on.

Built-in Tailscale

Your local vault, reachable across your tailnet.

Turn on opt-in Network & Tailscale access to bind the gateway to your 100.64.0.0/10 Tailscale address and MagicDNS name—so VMs, a Raspberry Pi, or another machine can share your failover chain without copying a single provider key off your computer.

Set up Tailscale, step by step
Remote Gateway

Separate network & agent keys

Point remote devices at http://<tailscale-ip>:8790/v1 using a dedicated network access key or a budgeted unique key. The universal key is always refused remotely, and browser origins are blocked.

Phone Dashboard

QR-paired mobile control on :8790/ui

Open http://<tailscale-ip>:8790/ui on your phone (Add to Home Screen ready) to check key health, inspect gateway logs, toggle chain entries, or paste new keys. Raw secrets stay masked.

One gateway for every machine on your tailnet

Other devices borrow your computer’s fallback chain. No provider key leaves it.

Your computerVM:8790Pibrowserik-VM or another machinenetwork access keyGateway on your computerits Tailscale IP andMagicDNS nameRaspberry Pia unique key,with a budgetYour phone:8790/ui, QR-paired,secrets maskedBrowser pagesrefusedUniversal key, remotelyrefused: local onlytailnet · 100.64.0.0/10:8790Gateway onyour computer, on itsTailscale addressVMVM or othermachine: networkaccess keyPiRaspberry Pia unique key,with a budgetYour phone:8790/ui, QR-paired,secrets maskedbrowserBrowser pagesrefusedik-Universal key,remotely: refusedtailnet · 100.64.0.0/10
  1. Network & Tailscale access stays off until you turn it on. Then the gateway also answers on your computer’s Tailscale address and MagicDNS name.
  2. A VM, a Raspberry Pi or another machine calls http://<tailscale-ip>:8790/v1 with the network access key or a unique key.
  3. Your phone opens :8790/ui, paired by QR code. Raw secrets stay masked.
  4. The universal key only works on the host itself, and requests from browser pages are refused.

Free providers, with the doubtful ones labelled.

Eighty-one were in the list when I last shipped it. Free tiers move. Some entries are small resellers, and the app marks those unverified before a prompt goes through them. Insert only fills the add-key form. Nothing is saved until you say so.

Free providers directory, with a signup link and an Insert button for each provider.

From the free list to a saved key

The directory fills in the provider. The key, and the save, are yours.

Your computerfree listAdd keyvaultFree-provider listsignup link + Inserton every entryUnverifiedsmall resellers, markedInsert fills the formprovider and settings onlySave is yourspaste the key, press Savefree listFree-provider listsignup link + Insert;resellers markedAdd keyInsert fillsthe form: providerand settings onlyvaultSave is yourspaste the key,press Save
  1. Browse the free-provider list. Small resellers are marked unverified before a prompt goes through them.
  2. The signup link opens the provider’s own site, where you make a key.
  3. Insert fills the add-key form with that provider’s settings.
  4. Paste the key and press Save. Nothing is stored before you do.

Next: what protects the keys.

The five defense-in-depth layers around your vault and its documented threat boundaries.