Limits and turning it off
Limits
Section titled “Limits”-
macOS only, for now. Keys live in the macOS Keychain, and
keyfit setupstops on other systems. -
zsh and bash. In another shell, put
~/.config/keyfit/binfirst on PATH yourself (after~/.superset/binif you use Superset). -
Thirteen tools. Only
claude,codex,opencode,copilot,gemini,aws,gh,vercel,supabase,wrangler,convex,gcloudandfirebasego through Keyfit, when they are found through PATH (typed in a terminal, or run by an agent Keyfit started). These don’t go through Keyfit:- other commands (terraform, npm, git over SSH), including
vc, the Vercel CLI’s short name,npx supabase,npx wrangler,npx convex,npx firebase-tools,npx @google/gemini-cli,bqandgsutil(inside a Claude, Codex, OpenCode, Copilot CLI or Gemini CLI session they get the project’s token or account, but no checks of their own; outside one,npx wranglerandnpx firebase-toolsfollow only the CLI’s own folder binding,npx convexuses the CLI’s own login andbqandgsutilgcloud’s active configuration) - tools called by their full path
- apps that don’t start from your shell, such as IDE extensions and desktop apps
To run any other command with the project’s accounts:
keyfit run -- <command>. - other commands (terraform, npm, git over SSH), including
-
Online checks are cached for 30 minutes. If a key is revoked within that window, Keyfit notices when the cached result expires, or at once with
keyfit status, which also clears it. A new sign-in, key, token, login or link for any account is checked again right away. When a service cannot be reached, a success from the last 24 hours is accepted with a warning; a wrong account never is. -
Background sessions only where the project’s Claude login has a folder of its own. Claude Code runs its background sessions (
claude --bg, agent view,←and/background) under one supervisor per config folder, and Codex its sessions on one shared server. Each keeps the environment of the start that launched it, for every folder. So in a project whose Claude login is in~/.claude, or in a folder another project’s login uses too, Claude sessions start with background sessions off, andclaude --bg,agents,attachandrespawnare refused there and inside a session. Give the project a login of its own (keyfit add claude --new --name NAME, then sign in there) and they run there, with its accounts; a session agent view starts in another folder (a repository one level below, with@repo) gets them too, even when that folder belongs to another project.claude daemon runis refused in every project.codex,codex resumeandcodex forkrun without the shared server, andcodex agents,queue,remote-controlandapp-serverare refused, in a project and inside a session. Outside every project they run as before. -
One account of each kind per project: one AWS profile, one GitHub login, one Google account, and so on.
-
Each account has limits of its own, such as what is checked down to the person and which versions were verified. They are listed under each account in docs/accounts.md.
Turning it off
Section titled “Turning it off”- Skip Keyfit once:
KEYFIT_DISABLE=1 clauderuns that one command without checks, in your unchanged environment. Everything it starts inherits the variable, so an agent started this way runs its ownaws,gh,vercel,supabase,wrangler,convex,gcloudandfirebasewithout Keyfit too. - See what would run:
KEYFIT_DRY_RUN=1 clauderuns the checks in a registered project, then prints the command and the names of the environment variables that would change, and starts nothing. Commands that would run without checks are printed too, with the reason, and don’t start either:supabase,wrangler,convex,gcloudorfirebasein a project without an account of their kind, and, in any folder, OpenCode’s own commands (opencode serve,opencode mcp, …) and AWS profiles under[settings] shared_aws_profiles. Three things still run as usual: sign-in commands, every other command in a folder that isn’t registered, and anything run withKEYFIT_DISABLE=1. - Turn it off:
keyfit setup --removedeletes the shims and PATH files and takes Keyfit’s line out of your shell startup files. Open a new terminal afterwards. Your registry stays, sokeyfit setup --rcturns everything back on. - Delete its data too:
keyfit setup --remove --purgealso deletes~/.config/keyfit: the registry, the check cache, and the Claude, Vercel, OpenCode and Gemini CLI login folders Keyfit made (with the logins in them). It asks first (--yesskips the question). Keys Keyfit stored in the Keychain are kept; it lists their names so you can delete them in Keychain Access. - Uninstall: run
keyfit setup --removefirst, thenpipx uninstall keyfitorbrew uninstall keyfit. Done the other way round, the thirteen tools stop with a note that names the line to remove.