Six tenants, one lease

One identity.
Every lab.

Work, personal, client. Each profile holds its own Claude, Codex, Grok, Cursor, opencode and Muse login. Switch them all at once, or one lab at a time. A macOS menu bar app and a small CLI.

MIT · Apple silicon + Intel · Sparkle self-updates

Profile Pick a profile. See which labs it holds, and how.

One profile
Six labs
One switch

Work ~/.n2-agents/Work
Claude CodeCLAUDE_CONFIG_DIR~/.n2-agents/Work/claudeConnected
CodexCODEX_HOME~/.n2-agents/Work/codexConnected
GrokGROK_HOME~/.n2-agents/Work/grokConnected
MuseXDG_CONFIG_HOME~/.n2-agents/Work/museConnected
CursorCURSOR_CONFIG_DIR~/.n2-agents/Work/cursorConnected
opencodeXDG_CONFIG_HOMEno slot in this profileAvailable
Connected
Available
Not installed

$ agents use Work

Work active / 5 labs wired / v0.3.0

01 · The model

One folder per identity.
One slot per lab.

agents use Work moves Claude, Codex and Grok in one step. Doing it by hand is six separate logins and a memory test you'll eventually fail.

~/.n2-agents/
  Work/
    claude/        → CLAUDE_CONFIG_DIR
    codex/         → CODEX_HOME
    grok/          → GROK_HOME
  Personal/
    claude/
    codex/
  Client/
    claude/
    codex/
    grok/
01

Separate logins, side by side

Each slot is a real config directory, so two profiles can be signed in to the same lab at once.

02

Real commands on your PATH

claude-work, codex-personal and grok-client are executables on your PATH, so editors, GUI apps and scripts can call them. Shell functions can't do that.

03

Adopt what you already have

agents adopt symlinks your existing claudes profiles into place. Nothing is copied, so nothing has to log in again.

02 · Isolation

One variable per lab.
One profile per process.

Every supported lab reads its config directory from an environment variable. We checked each one against the shipped binary, because the docs and the binary don't always agree.

ENV6 of 6 labs

Pinned per process

Each command starts with its profile's config dir in the environment, so the process is pinned to that profile for as long as it runs.

claude-workrunning
claude-personalrunning
Claude Codex Grok Cursor opencode Muse
01

Two profiles, side by side

Run claude-work and claude-personal at once. Each is signed in to its own account.

02

A switch never reaches a running session

agents use Personal changes what the next command opens. Anything already running keeps the profile it started with.

03

Muse needs one more lever

Muse keeps its sign-in in one keychain item whatever XDG_CONFIG_HOME says, so every profile but Default runs it with a file credential backend and keeps the login in its own slot.

04 · The CLI

The whole app,
minus the menu.

agents does the work. The menu bar just reads it. Tab completion ships for zsh, bash and fish.

agents listProfiles × labs, and which is active
agents use Work [--vendor codex]Switch every lab at once, or just one
agents run --best [--vendor claude]Open whichever profile has the most quota left
agents bestPer-profile usage across the 5h and 7d windows
agents vendorsLabs found on this machine, and how each isolates
agents new Client --vendors codex,grokCreate a profile, or add labs to one
agents sessions Work --vendor codexList Claude and Codex transcripts
agents transfer <id> --to PersonalMove a session to another identity
agents adoptImport existing claudes profiles by symlink
agents shimsSync the <lab>-<profile> commands on your PATH

Adding a lab means adding one case arm to each accessor in vendors.sh. Nothing in agents or the menu bar app has to change.

05 · Supported labs

Six labs,
and what each one gives you.

LabCLIConfig homeIsolationDesktop appUsage APISessions
Claudeclaude~/.claudeENVan instance per profileYESYES
Codexcodex~/.codexENVan instance per profileYESYES
Grokgrok~/.grokENV—WEEKLY—
Cursorcursor-agent~/.cursorENV———
opencodeopencode~/.config/opencodeENV———
Musemuse~/.config/museENV—ON DEMAND—

Claude, Codex, Grok and Muse expose a server-side quota endpoint, so agents best ranks those four and tells you the others have nothing to rank. Each Muse read mints an inference key, so the menu bar reads Muse only when you open it.

06 · Move in

Stop switching
six things by hand.

curl -fsSL https://raw.githubusercontent.com/noisyneighborstudio/n2-agents/main/install.sh | zsh

The installer prefers the signed release and falls back to building from source. It puts agents and the per-profile commands on your PATH, and adds tab completion for whichever shells you have.

Download the latest release