Quickstart
Install
Section titled “Install”You need macOS, Python 3.11 or newer, and zsh or bash. The python3 that comes with macOS is 3.9, which is too old; brew install pipx installs pipx together with a current Python (then run pipx ensurepath and open a new terminal).
pipx install keyfit# or, with Homebrew:brew install getkeyfit/keyfit/keyfitFor the latest unreleased code, install from source:
git clone https://github.com/getkeyfit/keyfit.gitpipx install ./keyfit # or run it without installing: ./keyfit/bin/keyfit … (uses the python3 on PATH, 3.11 or newer)The shims run Keyfit with the Python that ran keyfit setup, and from a checkout they also run that checkout. If you move Keyfit to another Python, virtualenv or folder, run keyfit setup again.
Quickstart
Section titled “Quickstart”1. Install the shims. This puts a shim in front of each of the thirteen tools and adds one line to your shell startup file:
keyfit setup --rcThe first time, it also asks whether to install claude-swap and codex-multi-auth, which switch between your Claude logins and your ChatGPT logins in Codex. Enter skips them.
2. Register a project. Open a new terminal, then go to a repository of one of your clients (a repository, not your home folder: everything under the folder you register belongs to that project):
cd ~/code/acme-apikeyfit init # registers the repository, then offers the accounts it finds on this MacThe project is named after the folder (acme-api). Folder names such as api or web repeat across clients, so when a project of that name exists already in another folder, init stops and asks for a name of its own: keyfit init --name globex-api. To add the folder to that project instead, with the same accounts, name it: keyfit init --name api.
keyfit init asks about one account at a time, and Enter skips any of them. Skipped accounts are simply not checked; keyfit status lists what is still unmapped. Already using direnv? keyfit init also imports use aws PROFILE ACCOUNT_ID and export LINEAR_API_KEY=$VARIABLE lines from the repository’s .envrc. It reads the file as text and never runs it. Without a terminal, or with --yes, init asks nothing: it registers the repository and imports from .envrc only.
3. Use your tools as usual.
claude # starts with this project's accounts, checkedkeyfit init ends with keyfit status:
acme-api ✔ aws acme-dev → …4321 SSO token valid 6h 41m · refreshes automatically · account confirmed ✔ linear acme workspace confirmed ✔ github octocat login confirmed ✔ vercel octocat → acme login and team confirmed ✔ supabase Acme token, organization and linked project abcdefghijklmnopqrst confirmed ✔ cloudflare acme → Acme bound at ~/code/acme-api · profile and account confirmed ✔ convex Acme login, team and deployment happy-animal-123 (acme-web) confirmed ✔ google me@acme.com ✔ gcloud acme → acme-prod me@acme.com · account and project confirmed ✔ firebase acme-prod me@acme.com, bound at ~/code/acme-api · account and project confirmed ✔ claude Acme Acme (team) confirmed ✔ codex ChatGPT pro subscription login, no API key ✔ opencode default anthropic, openai signed in · confirmed by OpenCode ✔ copilot octocat login confirmed ✔ gemini me@acme.com Google sign-in in ~/.config/keyfit/gemini/acme · confirmed by Google ✔ google-mcp gmail_acme, gcal_acme confirmed by GoogleIf something seems off, run keyfit doctor. It checks the installation and prints the fix under every ✘. See also the troubleshooting guide.
Setup options
Section titled “Setup options”- Without
--rc,keyfit setupchanges nothing outside~/.config/keyfitand prints the line for you to add yourself. - The shell comes from
$SHELL; choose it with--shell zsh|bash. - zsh: the line goes into
~/.zshrc, or$ZDOTDIR/.zshrcwhenZDOTDIRis set. - bash: the line goes into the login profile macOS terminals read. That is the first of
~/.bash_profile,~/.bash_loginand~/.profilethat exists. It also goes into~/.bashrcwhen that profile sources it. - Another file:
--rc PATH. - Keep the line last in the file, so nothing added to PATH later in that file comes before the shims.
- claude-swap and codex-multi-auth: in a terminal, the first
keyfit setup(also the first after--remove) offers each one whose agent is installed and which isn’t installed yet. A yes runsuv tool install claude-swap(orpipx install claude-swap) ornpm install -g codex-multi-auth; without uv, pipx or npm, it prints how to get them. Runningkeyfit setupagain asks nothing.