orberus

skill
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

The right Claude Code and Codex account for each folder, automatically. A command and a macOS menu bar app. Not affiliated with Anthropic or OpenAI.

README.md

Orberus

The right account for each folder. Automatically.

Claude Code and Codex CLI accounts on one Mac, picked by the folder you are in.

Version MIT license macOS, Apple Silicon and Intel

In a company repository, typing claude starts the work account. In a personal folder it starts the personal one. Asking for the personal account in the company repository is refused.

orberus keeps several accounts on one Mac (work, personal, client) and picks
the account from the folder you are in. You keep typing claude: a company
repository always opens with the company account, a side project with yours,
and a locked rule refuses the wrong one.

Not affiliated with Anthropic, OpenAI, Apple or Microsoft. Claude is a
trademark of Anthropic.

Early version, developed and tested on macOS. It is meant for people who
hold several legitimate, paid accounts. It does not switch accounts to get
around usage limits.

Where it runs

Works today: Claude Code, Claude Desktop account switching, and Codex CLI via orberus run, on macOS (Apple Silicon and Intel). Coming next: Windows.

A solid tile works today; a dashed one is planned, with no date yet. The
logos belong to their owners and only say what Orberus works with.

  • Claude Code on macOS is what Orberus was made for: the account is
    picked by the folder you start claude in.
  • Claude Desktop: orberus desktop and the menu bar app switch it from
    one profile's account to another, by closing it and opening it again on
    that profile's own data. This is a first version: switching away from a
    Claude Desktop in daily use, and back, works; signing in on a second data
    folder was not tried yet. Orberus also reads the plan usage Claude Desktop
    notes, for the limits. See docs/desktop.md.
  • Codex CLI: orberus run --tool codex applies the same folder rules.
    orberus setup detects Codex CLI and installs its shim so typing codex
    applies the same rules.
    See Codex CLI commands.
  • Windows: the command builds and passes its tests there, but it was
    never tried in front of a real Claude Code. Not supported yet.

Features

  • Automatic choice: you keep typing claude. The account comes from a
    rule on the folder or on the git remote, so there is no switch command to
    forget.
  • Guard rail: a locked rule wins over everything, and Claude Code does not
    start with another account in that folder.
  • In your editor too: the same rules pick the account in the Claude Code
    panel of VS Code, Cursor and the editors built on VS Code, and in JetBrains
    IDEs.
  • Team rules: a company can hand out a team.toml; its rules are checked
    before yours.
  • Separate logins: each profile has its own Claude Code folder and its own
    login. Your existing ~/.claude can be one of them, left untouched.
  • Usage by project: see which projects used each account, and which of
    them no rule covers. Work done on the wrong account shows up there.
  • Disk space and history: see what each profile takes, choose how long
    conversations are kept, and move the biggest ones to the Trash.
  • Limits at a glance: the 5-hour and weekly limits of each account, side
    by side.
  • Menu bar app (optional): the same profiles and rules, one click away,
    back in the menu bar each time you log in.

The menu bar app: three profiles with the account logged in to each, and two rules that send a GitHub organisation and a folder to the work profile.    The same window with Usage open: the 5-hour and weekly limits of each account as bars, with when they reset.

The menu bar app, drawn from its real interface with made-up accounts.

Quick start

Orberus needs macOS (Apple Silicon or Intel) and
Claude Code already
installed.

Install

mkdir -p ~/.orberus/bin
curl -fsSL https://github.com/Tz-dev0/orberus/releases/latest/download/orberus-cli-macos-universal.tar.gz \
  | tar -xz -C ~/.orberus/bin --strip-components 1 orberus-cli-macos-universal/orberus
~/.orberus/bin/orberus setup

setup installs the claude shim next to orberus and offers to add that
folder to your PATH. Open a new terminal afterwards. Other ways to install,
and how to update or uninstall, are in docs/installation.md.

Create your profiles

orberus add perso --native   # your current login, ~/.claude, kept as it is
orberus add work             # a second, empty profile
orberus run --profile work   # start Claude Code in it once, then /login

Send a repository to a profile

orberus rule add --git-remote "github.com/acme/*" --profile work --locked

From then on, just type claude.

Most commands ask for what you leave out, so orberus add and
orberus rule add alone also work: they guide you step by step.

How a profile is chosen

The first of these that applies wins:

  1. a locked rule. It also refuses an explicit choice of another profile
  2. an explicit choice: orberus run --profile x, or ORBERUS_PROFILE=x claude
  3. a .orberus-profile file in the folder or a parent (orberus use x)
  4. the first matching rule, team rules before your own
  5. the default profile

orberus status tells you which one applies where you are, and why:

$ orberus status
  Profile  work
  Account  [email protected] (Team)
  Why      locked rule git_remote = "github.com/acme/*" in config.toml
  Config   ~/.orberus/profiles/work
  Claude   /opt/homebrew/bin/claude

With no config at all, claude runs exactly as if nothing was installed.
Rules, the config files and team rules are described in
docs/rules.md.

Commands

Command What it does
orberus Profile used in this folder, then the list of commands
orberus setup [--tool claude|codex] Install the Claude shim and detect Codex, or install a single shim
orberus pause, orberus resume Stop picking accounts for a while, without uninstalling
orberus ide [on|off] [editor] Send the Claude Code extension of VS Code, Cursor and the like through Orberus
orberus desktop [name] Switch Claude Desktop to a profile's account: it closes, and opens again on that account
orberus add [name] Create a profile (--native reuses ~/.claude)
orberus list Profiles, the account logged in to each, the default
orberus status Which profile applies here, and why
orberus use [name] Pin the current folder to a profile
orberus default [name] Profile used when no rule applies
orberus run [--tool codex] [-p name] [-- args] Start Claude Code or Codex CLI, optionally choosing a profile
orberus rule add, list, remove Manage the rules
orberus usage [name] Which projects used each account, checked against your rules; -c for the heaviest conversations
orberus disk Disk space of each profile. Deletes nothing
orberus limits [on|off] [name] The 5-hour and weekly limits of each account, as Claude Desktop and Claude Code note them
orberus retention [name] [days] How long each profile keeps its conversations
orberus clean [name] Biggest conversations of a profile; move some to the Trash
orberus remove [name] Remove a profile and your rules that point to it
orberus doctor [--tool codex] Check the Claude or Codex installation
orberus uninstall Remove Orberus from this Mac. Profiles are kept unless you add --purge

Every command, with its options and an example of its output, is in
docs/commands.md.

Features in detail

The examples below are shortened.

Profiles

$ orberus list
┌─────────┬─────────────────┬────────┬─────────────────────────────────┬───────┬─────────┬──────┐
│ Profile │ Account         │ Plan   │ Config folder                   │ Rules │ Default │ Here │
├─────────┼─────────────────┼────────┼─────────────────────────────────┼───────┼─────────┼──────┤
│ perso   │ [email protected]  │ Max 5x │ ~/.claude (Claude Code default) │       │ ●       │ ✓    │
│ work    │ [email protected] │ Team   │ ~/.orberus/profiles/work        │ 1     │         │      │
└─────────┴─────────────────┴────────┴─────────────────────────────────┴───────┴─────────┴──────┘
  Default: used when no rule applies.   Here: used in this folder.

A profile is a Claude Code config folder with its own login, settings and
history. The profile created with --native is your existing ~/.claude.

Usage by project

orberus usage shows where each account was used over the last 7 days, and
flags the projects your rules do not send there. Here a personal blog ran on
the work account:

$ orberus usage work
work  [email protected], last 7 days
┌───────┬─────────────────┬─────────┬────────────────────────────────────────────────┐
│ Share │ Project         │ Answers │ Today's rules                                  │
├───────┼─────────────────┼─────────┼────────────────────────────────────────────────┤
│ 63%   │ ~/code/acme-api │ 942     │ ✓ locked rule git_remote = "github.com/acme/*" │
│ 26%   │ ~/code/blog     │ 402     │ would use perso today (default profile)        │
│ 9%    │ ~/code/acme-web │ 148     │ ✓ locked rule git_remote = "github.com/acme/*" │
└───────┴─────────────────┴─────────┴────────────────────────────────────────────────┘
! 26% came from 1 project(s) where `claude` would use another profile today.

orberus usage --conversations lists the conversations instead, with how
many tokens each one sends again at every answer: the long ones are where a
/compact or a fresh conversation saves the most.

The share is an estimate from the conversations kept on this Mac. It is not
what your plan counts against its limits.

Disk space

$ orberus disk
┌─────────┬────────┬──────────┬──────────────┬─────────────────┬────────┐
│ Profile │ Total  │ Sessions │ File history │ Plugins, skills │ Other  │
├─────────┼────────┼──────────┼──────────────┼─────────────────┼────────┤
│ perso   │ 28 MB  │ 28 MB    │ 0 B          │ 0 B             │ 4.1 KB │
│ work    │ 252 MB │ 239 MB   │ 0 B          │ 13 MB           │ 4.1 KB │
└─────────┴────────┴──────────┴──────────────┴─────────────────┴────────┘
  All profiles: 280 MB
  Nothing is deleted by this command.

Cleaning up conversations

orberus clean lists a profile's conversations, biggest first. Nothing moves
until you pick some, and what you pick goes to the macOS Trash with a note
that says where to put it back.

$ orberus clean work
┌───┬────────┬─────────────┬─────────────────┬────────────────────────────┬──────────┐
│ # │ Size   │ Last used   │ Folder          │ Title                      │ Id       │
├───┼────────┼─────────────┼─────────────────┼────────────────────────────┼──────────┤
│ 1 │ 168 MB │ 4 days ago  │ ~/code/acme-api │ Payment retries            │ 3f2a9c1e │
│ 2 │ 63 MB  │ 2 days ago  │ ~/code/acme-api │ Migrate the invoices table │ 7b8d0e2f │
│ 3 │ 8.4 MB │ 16 days ago │ ~/code/acme-api │ Fix flaky login test       │ a1c4e5f6 │
└───┴────────┴─────────────┴─────────────────┴────────────────────────────┴──────────┘
  3 conversation(s), 239 MB in all
  Nothing was changed.

How long conversations are kept

Claude Code deletes conversations after 30 days by default, without a
message. orberus retention shows the setting of each profile and changes it:

$ orberus retention work 365
✓ Profile 'work' keeps its conversations 1 year

Menu bar app

A small app that lives in the menu bar: your profiles and who is logged in to
each, the rules, the limits and the usage by project, the disk space, your
editors, and a button to open Claude Code in a profile. It speaks English and
French, and opens by itself when you log in unless you turn that off.

It reads and writes the same config as the CLI and is optional: claude
picks the account by folder whether the app is open or not. See
docs/app.md.

Safety

  • The shim only chooses a config folder, then hands over to the real Claude
    Code. It does not read your conversations or your credentials, and it makes
    no network request.
  • ide on writes one setting in your editors' settings and leaves the rest
    of the file as it is; ide off and uninstall take it out again.
  • pause sets every rule aside, locked ones included, until resume. It is
    said each time claude starts, and by status, doctor and the app.
  • If the config cannot be read, or a locked rule forbids the profile you asked
    for, Claude Code does not start. It never falls back to another account.
  • usage, disk, list, status and doctor change nothing. usage reads
    only the token counts and the folder of each answer, and the title of a
    conversation, never what was said.
  • clean moves conversations to the Trash and refuses one that changed in the
    last hour, since it may still be open. It never touches memory/ folders.
  • remove keeps the profile's folder, so its login and history stay on disk.
    Only remove --purge deletes them, and it is refused for ~/.claude.
  • desktop starts Claude Desktop itself, unmodified, on a data folder per
    profile, and asks before it closes the one that is open: it is asked to
    quit, never forced. Orberus does not read the sign-in or the conversations
    kept there, and never deletes Claude Desktop's own data.
  • The menu bar app asks GitHub once a day whether a newer release exists:
    one request, with nothing about you in it. It is the only network request
    in the project.
  • The menu bar app writes one file outside ~/.orberus, the one that opens
    it when you log in. Its switch and uninstall delete it.
  • uninstall removes the tool and keeps your profiles. Nothing ever deletes
    ~/.claude.

Known limits are listed in docs/troubleshooting.md.
To report a vulnerability, see SECURITY.md.

Documentation

Get help

First run orberus doctor and read what it says: it checks the shim, your
PATH, the config files and the rules, and tells you how to fix what is wrong.

Then read Troubleshooting. If the problem is still
there, open an issue with
the output of orberus doctor and orberus status.

Contributing

Bug reports, ideas and pull requests are welcome. See
CONTRIBUTING.md for how to build and test the project.

Contributors


Aristide

License

MIT.

Reviews (0)

No results found