SuperAPIAI Directory

clausona

github.com · AI coding

clausona is a command-line tool for managing multi-account configurations for Claude Code and OpenAI Codex CLI. It allows users to switch accounts without logging out and to keep the same conversation context. Each account has its own separate configuration directory for login, but skills, hooks, plugins, and settings are shared through symbolic links, so configuring once makes them available in multiple places. The tool provides dynamic routing, automatically selecting an account to run tasks based on the remaining plan quota of each account, and displays the skills, MCP servers, and hooks loaded by each account. Under the hood it relies only on shell hooks and symbolic links, with no daemon or proxy, keeping it lightweight. It supports macOS, Linux, and Windows platforms and requires Node.js 20 or later.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

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 alias csn is 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 add remain independent per account.
  • Shared history (optional): Through clausona config <profile> --merge-sessions , conversation history can be shared with the main directory, so that claude --resume and claude --continue(as well as codex 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 main runs starting from accounts that still have quota, based on plan quota readings. Through directory rules or default routing, simply running clausona run claude(or codex) 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:personal can 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.claude and codex Run 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

  1. 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.CurrentUserAllHosts Invoke-Expression (& clausona shell-init | Out-String)), then open a new shell.
  2. Initialize:clausona init registers a logged-in Claude Code or Codex account. If neither is logged in, first run claude login or codex login.
  3. Switch:clausona use <name> or csn use <name>.
  4. View list:clausona list shows the plan quota usage for each account.
  5. Routing:clausona run --route <route> or configure directory rules/default routing and then directly clausona run claude.
  6. Manage extensions:clausona skills、clausona mcp、clausona hooks to view,off、on、rm、undo to modify.
  7. Update: check for and install new versions via the dashboard or clausona update ; downloads are verified with SHA-256. For copies installed via npm, run npm 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+).
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools