Manage multiple Claude CLI account profiles. Switch between accounts, track per-profile usage stats, launch Claude with per-directory profile memory, and build a persistent knowledge wiki that compounds across sessions (Hive Mind). Use the CLI or the built-in web UI.
npm install -g @cloudomium/clauthRequires the Claude CLI to be installed.
# Create profiles for your accounts
clauth add work
clauth add personal
# Launch Claude with a profile — it will prompt to log in on first use
clauth launch work
# Or just run clauth to get an interactive selector
clauthRunning clauth with no arguments opens an interactive profile selector. Navigate with arrow keys (or j/k), press enter to select, q to quit.
The selector remembers which profile you last used in the current directory and pre-selects it.
Create a new profile. Profile names can contain letters, numbers, hyphens, and underscores.
clauth add work
# ✓ Created profile "work"Delete a profile and all its data. Prompts for confirmation before deleting.
clauth remove work
# Delete profile "work" and all its data? [y/N]Launch Claude CLI with the given profile. If no name is provided, it uses the profile last used in the current directory (or the globally last-used profile).
# Launch a specific profile
clauth launch work
# Launch the last-used profile for this directory
clauth launchYou can pass extra arguments to the Claude CLI after --:
clauth launch work -- --model sonnetView or update per-profile configuration.
# View current config
clauth config work
# Enable --dangerously-skip-permissions for a profile
clauth config work --skip-permissions
clauth config work --no-skip-permissions
# Enable Hive Mind for a profile (see below)
clauth config work --hive-mind
clauth config work --no-hive-mindShow usage statistics. Without a name, shows a summary table for all profiles. With a name, shows detailed stats including token usage by model and activity charts.
# Overview of all profiles
clauth stats
# Detailed stats for a specific profile
clauth stats workDetailed view includes:
- Session and message counts
- Token usage broken down by model (input, output, cache)
- 14-day message activity chart
- 7-day bar chart
Interactive wizard that walks you through creating profiles and configuring them.
clauth setupLaunch the clauth web UI in your browser. A local, graphical interface for browsing the Hive Mind wiki, feeding knowledge, querying, managing profiles, and viewing stats.
clauth ui # random free port, opens browser
clauth ui --port 3030 # specific port
clauth ui --no-open # don't auto-open browser (useful for SSH tunneling)The server binds only to 127.0.0.1 (localhost) — never exposed to the network.
Features available in the UI:
- Dashboard — overview of wiki pages, profile status, recent activity
- Hive browser — navigate wiki pages by category with rendered markdown
- Feed — textarea or drag-drop file upload for ingest
- Query — chat-like interface for read-only questions
- Graph — visual knowledge graph (Cytoscape.js) showing links between pages
- Profiles — toggle skip-permissions and hive-mind per profile
- Stats — real charts for token usage and activity
Feed knowledge into the Hive Mind wiki, query it, or browse it. See the Hive Mind section below for the full picture.
# Feed knowledge manually (ingest)
clauth hive "decided to use Postgres for project X because we need transactions"
# Query the wiki (read-only)
clauth hive --query "what databases am I using across projects?"
# Health-check the wiki (find contradictions, orphans, broken links)
clauth hive --lint
# Ingest a file (markdown, text, PDF)
clauth hive --file meeting-notes.md
clauth hive --file report.pdf "focus on the client requirements section"
# Browse the wiki (instant, no LLM)
clauth hive --index # print the content catalog
clauth hive --log # print the last 10 log entries
clauth hive --log 30 # print the last 30 entries
clauth hive --open # open the wiki directory in your file manager
clauth hive --obsidian # open the wiki in Obsidian (requires Obsidian 1.0+)A personal knowledge wiki that the LLM builds and maintains for you. It captures decisions, problems, tradeoffs, architecture, and context from your Claude Code sessions and makes them available to future sessions.
The wiki is a folder of markdown files at ~/.clauth/hive/ — open it in Obsidian for a visual knowledge graph.
clauth config <profile> --hive-mindWhen enabled, after every Claude session ends under that profile, clauth spawns a headless analysis session that reads the session log and upserts extracted knowledge into the wiki. Runs synchronously with a brief summary.
1. Automatic — Claude Code sessions are analyzed after they end. Decisions, problems, tradeoffs, and architecture are extracted and filed into the appropriate wiki pages.
2. Manual — clauth hive "<prompt>" feeds knowledge directly. Useful for decisions made in meetings, context from Slack, corrections, or anything that didn't come from a session. Also supports file ingest via --file.
The wiki organizes knowledge across six categories:
| Category | What goes here |
|---|---|
projects/ |
Per-project technical knowledge (decisions, architecture, problems) |
concepts/ |
Cross-project patterns, tools, techniques |
clients/ |
Customer profiles, ownership, requirements |
company/ |
Internal organization — team, processes, strategy |
personal/ |
Health, interests, goals, habits |
people/ |
Contacts, collaborators, stakeholders |
Pages use YAML frontmatter and relative markdown links. Obsidian-compatible out of the box.
When you launch a session in a project that already has wiki pages, clauth injects the accumulated knowledge into Claude's system prompt. The session starts already knowing your prior decisions and context — no need to re-explain.
The wiki has its own CLAUDE.md at ~/.clauth/hive/CLAUDE.md that governs how the LLM maintains it — page format, operation rules, create-vs-update logic. It's co-evolved over time. To refresh it from the latest clauth version: delete the file and run any clauth command to regenerate.
Profiles are stored under ~/.clauth/. Each profile gets its own directory that acts as an isolated Claude configuration directory.
- default — automatically created, points to your existing
~/.claudeconfig - Other profiles — stored as
~/.clauth/<name>/and launched withCLAUDE_CONFIG_DIRset accordingly - hive — reserved name for the Hive Mind wiki directory (not a profile)
When you launch a profile, clauth:
- Records it as the last-used profile for the current directory (
~/.clauth/folders.json) - Sets
CLAUDE_CONFIG_DIRto the profile's directory (except fordefault) - If Hive Mind is enabled, injects accumulated project knowledge via
--append-system-prompt - Spawns
claudewith any configured flags and passthrough arguments - After the session exits, if Hive Mind is enabled, runs a headless analysis session that upserts new knowledge into the wiki
~/.clauth/
├── default/ # metadata for the default profile
│ └── clauth.json # per-profile config (e.g. skipPermissions, hiveMind)
├── work/ # full Claude config dir for "work"
│ ├── clauth.json
│ ├── credentials.json
│ └── ...
├── personal/
│ └── ...
├── hive/ # Hive Mind wiki (see above)
│ ├── CLAUDE.md # schema — how the LLM maintains the wiki
│ ├── index.md # content catalog
│ ├── log.md # chronological record of ingests and queries
│ ├── projects/
│ ├── concepts/
│ ├── clients/
│ ├── company/
│ ├── personal/
│ └── people/
├── folders.json # directory → profile mapping
└── .last # globally last-used profile name
MIT