clausona is a configuration file manager for Claude Code and OpenAI Codex CLI, designed to solve the problems of cumbersome multi-account switching and non-shared configurations.
Main purpose
When users have Claude Code or Codex CLI accounts for personal, work, or multiple organizations, they usually need to manually log out and log back in, or manage the CLAUDE_CONFIG_DIR or CODEX_HOME environment variables themselves. clausona switches configuration files with a single command and automatically carries shared settings, plugins, and skills, without needing to log in again or reinstall plugins.
Main capabilities
- One-click switching: Use
clausona use <name>to switch to different accounts; the aliascsnis automatically registered during installation. - Shared environment: Plugins (and the MCP servers they bring), skills, settings.json (including hooks and permissions, Claude), config.toml (including MCP servers), skills, and hooks (Codex) are shared across configuration files through symbolic links. Configure once, use everywhere. MCP servers added with
claude mcp addremain independent per account. - Shared history (optional): Through
clausona config <profile> --merge-sessions, conversation history can be shared with the main directory, so thatclaude --resumeandclaude --continue(as well ascodex resumeon macOS/Linux) can find conversations from all shared accounts. - Plan quota overview: Displays side by side the weekly plan limit usage of each account, as well as the remaining amount for plans with a 5-hour limit, with data read in real time from each tool's own usage endpoint.
- Routing:
clausona run --route mainruns starting from accounts that still have quota, based on plan quota readings. Through directory rules or default routing, simply runningclausona run claude(orcodex) automatically selects an account. - Extension management: View the skills, MCP servers, and hooks loaded by each account in a project on the Extensions screen of the dashboard or through
clausona skills、clausona mcp、clausona hooks, and disable or delete them (with backup and undo). - Run two accounts simultaneously:
clausona run claude:personalcan start a session with another configuration file without switching, so two terminals can run two accounts in parallel. - Parallel agent clusters: The plugin in the repository allows a Claude Code or Codex session to run parallel agents in Superset, herdr, Orca, or plain tmux, with each agent using an independent account or API model, and can inspect and clean them up.
- API profiles: Profiles can point to API endpoints instead of subscription login, such as the Anthropic API, gateways (such as OpenRouter), or self-hosted models. In this version, API profiles apply only to Claude Code.
- Pure CLI passthrough: No wrapper, no proxy, no background process.
claudeandcodexRun directly without modification, compatible with tools such as oh-my-claudecode, Cline, and the codex plugin. - Lightweight: only one shell hook and a few symlinks, no daemon, no server, no startup overhead.
- Usage tracking: track cost and token usage by profile, stored locally (currently Claude Code only).
- Interactive dashboard: a TUI for managing profiles and routing, viewing usage, and running health checks.
Usage
- Install: requires Node.js >= 20, and at least one of the Claude Code CLI or OpenAI Codex CLI. Supports macOS/Linux (zsh or bash) and Windows (PowerShell 5.1+). Can be installed via the install script or npm. After installing via npm, you must manually add the shell hook (for zsh/bash, add to ~/.zshrc or ~/.bashrc
eval "$(clausona shell-init)"; for PowerShell, add to the file specified by $PROFILE.CurrentUserAllHostsInvoke-Expression (& clausona shell-init | Out-String)), then open a new shell. - Initialize:
clausona initregisters a logged-in Claude Code or Codex account. If neither is logged in, first runclaude loginorcodex login. - Switch:
clausona use <name>orcsn use <name>. - View list:
clausona listshows the plan quota usage for each account. - Routing:
clausona run --route <route>or configure directory rules/default routing and then directlyclausona run claude. - Manage extensions:
clausona skills、clausona mcp、clausona hooksto view,off、on、rm、undoto modify. - Update: check for and install new versions via the dashboard or
clausona update; downloads are verified with SHA-256. For copies installed via npm, runnpm install -g clausona@latest.
Use cases
- Users with multiple Claude Code or Codex CLI accounts (personal, work, different organizations).
- Users who need to switch accounts frequently on the same machine but do not want to reconfigure plugins, permissions, and skills repeatedly.
- Users who want to automatically select accounts based on plan quotas to optimize usage.
- Users who need to run multiple agents or sessions in parallel.
- Claude Code users who want to use API endpoints (such as OpenRouter or self-hosted models) instead of subscription login.
Limitations
- Requires Node.js >= 20.
- API profiles currently support Claude Code only.
- Usage tracking currently supports Claude Code only.
- Sharing conversation history requires manual configuration.
- Routing budget limits only block new routed sessions, not already-running sessions; actual request limits are controlled by the provider key's quota.
- Some features (such as parallel agent clusters) require the corresponding plugin to be installed.
- Platform support: macOS/Linux (zsh or bash) and Windows (PowerShell 5.1+).