Skip to content
Adonis0123Public

About

Run work, personal and API-key accounts side by side without config drift. Claude Code, Codex, Grok Build, pi.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

414 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sideby: work, personal and API-key accounts, one terminal each, one shared config

Run work, personal and API-key accounts at the same time, without their configs drifting apart.
Each account is its own directory and its own terminal. Skills, hooks and settings stay linked to your main account. Claude Code, Codex, Grok Build, pi and Antigravity CLI.

npm CI Node 22.18+ MIT

English | 中文

Quick start

Requires Node 22.18+ and at least one Host CLI (Claude Code, Codex, Grok Build, pi or Antigravity CLI) installed. AI agents: follow the setup steps in llms.txt ("Set up sideby for a user") instead.

npm i -g sideby
sideby new claude work           # create ~/.claude-work, sharing ~/.claude's skills and hooks
sideby login claude:work         # sign in once
sideby run work                  # Claude Code on the work account
sideby quota setup claude --yes  # optional: live Claude quota while a session runs; undo: sideby quota teardown claude
sideby ui --background           # every account's quota at http://127.0.0.1:17420, still there after you close the terminal

sideby app install adds a Dock icon that opens the panel, and sideby autostart on has it ready each time you log in. sideby update installs a newer sideby when there is one; sideby says so after a command and in the panel. sideby run claude:main keeps using ~/.claude in another terminal at the same time. Arguments after -- go to the Host: sideby run work -- --resume. To try it without installing, run npx sideby.

Set up with your AI agent

Paste this into Claude Code, Codex or any coding agent:

Install the sideby CLI (npm package `sideby`) and its agent skill, then set up a second Claude Code account for me.
Follow "Set up sideby for a user" in https://raw.githubusercontent.com/Adonis0123/sideby/main/llms.txt

The agent checks Node and your Host CLIs, installs sideby and the skill, creates the account, tells you what it shares with your main one and makes its short command work. You sign in once in your browser; the agent gives you that one command. Once the skill is installed, short requests work too: "add another Claude account, cc008", "what do my Codex accounts share?", "which account still has quota?".

What it looks like

The 25-second story: one account buried in tasks, then accounts side by side sharing one setup, and a task moving on when one runs out.

sideby-intro-v6-en-1280.mp4

Two terminals: the personal account and the work account running at the same time, both linked to the main account's skills and settings, then the local quota panel, and at 95% Auto Handoff moving work's session to the next account

sideby panel: every account's 5h and 7d quota, 7-day token usage and health in one page

On macOS, the same quota sits in the menu bar (sideby menubar on): click or press ⌥X to open it, and click an account to start it in the terminal.

sideby macOS menu bar dropdown: a status card, each tool with 5-hour and weekly quota bars, reset times, and the suggested account marked

Why not just an alias?

CLAUDE_CONFIG_DIR plus a shell alias already starts a second account. It does not keep skills and settings in one place, and it does not show quota for every account. Does this break a provider's terms?

At the same time Skills, hooks, settings Quota and usage Setup
CLAUDE_CONFIG_DIR and an alias Yes. Each terminal exports the variable. Each directory is its own copy. They drift unless you symlink by hand. That session's status line One alias per account
cc-switch Enabling a provider writes the host's live config, so open sessions share that switch. Plugin settings are copied across providers as a separate step. The active provider, from its quota endpoint Install the desktop app
sideby Yes. sideby run selects the directory for that process and leaves your shell alone. Linked to the main account. sideby doctor --fix repairs copies. Sign-in and sessions stay separate. Every account, from local files and each tool's own CLI. npm i -g sideby, then sideby new and sign in

cc-switch's docs describe that switch: it writes the live settings file (README). #1105 and #2908 ask for several sessions at once. #1106 is closed; the maintainer says Claude Code's "open terminal" can start one provider without changing the global config.

What else it does

You want to Run Guide
Find any past session of any account by what you remember, grouped by project, read it and continue it where it was Sessions › History in the panel, or sideby history "fix login" --project . History
See what every account is running right now and copy one session for another AI Sessions › Running in the panel, or sideby sessions Sessions
Send a running session a message, screenshots included Send to it on a running session, or sideby send claude:work "run the tests" Send to a session
Hand a task to your own AI from the panel: set up an account, fix a problem, support a new tool Let AI do it in the panel, or sideby ask Let AI do it
See quota at a glance in the macOS menu bar Settings › Startup in the panel, or sideby menubar on Quota in the menu bar
Have the panel ready in the background whenever you log in Settings › Startup in the panel, or sideby autostart on Start at login
Add an API key account (DeepSeek, a gateway, …) sideby new claude deepseek --api API accounts
Find and fix config drift between accounts sideby doctor --fix Doctor
See every account's quota (no setup) sideby quota Claude quota
Find the cheapest auto-compact size from your own sessions, and use it in one click sideby tune (or the panel's Context tuning tab) Context tuning
See each account's model and effort, and set them per account sideby model <account> (or click the model in the panel) Model and effort
Stop Claude and Codex when your requests would leave from a country you did not allow, for example when the proxy stopped Settings › Network check in the panel, or sideby network on Network check
Choose whether Claude sessions connect to claude.ai by themselves (Remote Control), for every account at once sideby remote-control off or on (or the panel's Settings) Remote Control
Pin the accounts you use most, put tools and accounts in your own order, and hide the ones you never use sideby pin claude:work, sideby order, sideby hide grok (or the panel's Settings) Your own order
Give the panel other colors: five built-in Themes, your own color, or one your AI writes Settings › Theme in the panel, or sideby theme use leaf Themes
Move on when an account hits its limit sideby next claude Handoff
Let a running task move to the next account by itself when quota runs low (off by default; see the risk) sideby handoff enable (or the panel) Auto Handoff
Short commands such as ccw sideby alias add ccw claude:work Shell functions
Reopen a session from Orca and the like in the account that holds it "resumeRouting": true in config Resuming from other tools
Open Claude Desktop or the Codex app as one account, several side by side (macOS) sideby desktop claude:work (or the panel) Desktop apps
Keep several Grok Bot windows open, each signed in to its own account (macOS) sideby desktop grok-bot:002 (or the panel) Grok Bot windows
Open the panel from the Dock or app menu sideby app install Panel app
Show the panel inside your own local page createPanelHandler() Embed the panel
Add a Host, a pre-launch check, or your own project categories for History a local plugin Plugins

Supported hosts

Host Account directories Sign-in Quota Usage (7 days)
Claude Code ~/.claude, ~/.claude-<name> claude auth login ✓ ✓
Codex CLI ~/.codex, ~/.codex-<name> codex login ✓ ✓
Grok Build ~/.grok, ~/.grok-<name> grok login weekly, asked from the grok CLI no public source
pi ~/.pi/agent, ~/.pi-<name>/agent /login inside pi no public source no public source
Antigravity CLI ~/.gemini/antigravity-cli (main account only) sign in with Google inside agy 5-hour and weekly per model group, asked from the agy CLI no public source

sideby starts the official binary on your PATH and never patches it. Tested versions and per-Host notes are in the guide.

Platforms

macOS and Linux. CI runs the suite on ubuntu-latest and macos-latest, Node 22 and 24. Windows is untested. sideby app only installs a launcher on macOS and Linux. Linked items are symlinks, sideby shell-init prints bash and zsh functions, and the Claude quota wrapper runs /bin/sh.

Roadmap

Gemini CLI. Gemini can point at another config directory with GEMINI_CONFIG_DIR. Older docs use GEMINI_CLI_HOME; current builds treat that name as deprecated, and exit on startup if it is set together with an exact directory override. A sideby family still needs a tested Gemini version, a login check that does not read tokens, and a list of which files to link or copy. That is more than a small patch, so it is not in this version.

Safe by design

  • It never edits a Host's global config to switch accounts. It moves a task to another account only when you turn on Auto Handoff, and never proxies requests or pools logins.
  • It never reads, prints or sends a credential value. Nothing about your accounts leaves your machine: the only request sideby makes on its own is a daily check of the npm registry for its newest version (off with NO_UPDATE_NOTIFIER=1; see Updates).
  • doctor --fix never replaces a real file and never changes where a link points.
  • The panel answers only on 127.0.0.1 and refuses web pages from other sites, but it trusts every user of this computer. On a shared Mac, do not leave it running in the background (details).

Details and the terms-of-service question are in the FAQ.

Usage questions and ideas go in Discussions.

Docs

  • Using sideby: accounts, API accounts, Doctor, quota, Handoff, Host notes
  • Commands: every command, exit codes and --json
  • Configuration: config.json, aliases, shell functions
  • Panel: the panel, sessions and their history, panel app and embedding
  • Plugins: write your own Family, launch hook or project categories
  • FAQ: terms of service, data locations, alternatives, uninstall
  • Changelog

For AI agents

  • llms.txt: setup steps, commands, JSON contract and plugin API in one index. sideby families --json states what each Host's accounts share.
  • skills/sideby/SKILL.md: one Agent Skill for seeing, repairing and creating accounts and for moving on when one hits its limit. Install with npx skills add Adonis0123/sideby -g; sideby doctor warns when the installed copy is for another sideby version.
  • AGENTS.md: rules for agents working on this repository.

License

MIT

About

Run work, personal and API-key accounts side by side without config drift. Claude Code, Codex, Grok Build, pi.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages