Cctx — Development skill for Claude Code
Claude Code context manager for switching between multiple settings.json configurations.
How to install Cctx
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open nwiizo/cctx and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cctx does
Claude Code context manager for switching between multiple settings.json configurations.
Alternatives in Development
- Claude Context Mode — An MCP server that sits between Claude Code and these outputs 5.3k ★
- Codexmcp — Enable seamless collaboration between Claude Code and Codex, transforming from a single agent to multiple agen 2k ★
- Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
README
cctx
[](https://crates.io/crates/cctx) [](https://github.com/nwiizo/cctx/actions/workflows/ci.yml) [](LICENSE)
Manage Claude Code accounts and settings contexts from the command line, kubectx style. Each named account has its own Claude configuration directory; Claude Code handles login, credentials and refresh, and cctx never reads or copies them. Saved settings contexts switch the `settings.json` inside any account. Selecting an account never starts a Claude coding session. Run `claude` yourself.
Install
Pick one:
# From crates.io (needs Rust 1.85 or later)
cargo install cctx --locked
# Prebuilt binary from GitHub Releases (example: macOS on Apple Silicon)
curl -fsSLo cctx https://github.com/nwiizo/cctx/releases/latest/download/cctx-macos-aarch64
chmod +x cctx && sudo mv cctx /usr/local/bin/cctx
# From source
cargo install --git https://github.com/nwiizo/cctx --locked
Release assets: `cctx-linux-x86_64`, `cctx-linux-x86_64-musl` (static), `cctx-windows-x86_64.exe`, `cctx-macos-x86_64` and `cctx-macos-aarch64`. Run the same `cargo install` command again to upgrade.
Account commands need `claude` on PATH. The account workflow was developed against Claude Code 2.1.278.
Shell setup
Selecting an account changes `CLAUDE_CONFIG_DIR` in your current shell, which a binary cannot do by itself, so load the shell function once in your shell configuration. Every other command works without it.
Fish (`~/.config/fish/config.fish`):
if status is-interactive; and command -sq cctx
cctx --shell-init fish | source
end
Bash (`~/.bashrc`) or Zsh (`~/.zshrc`):
eval "$(cctx --shell-init bash)" # zsh: eval "$(cctx --shell-init zsh)"
Open a new terminal, or run the same line once in the current one.
Everyday commands
| Task | Command | |
Related Skills
Claude Profiles
Profile switcher for Claude Code — swap settings, hooks, MCP servers, and commands between configurations
Claude Desktop Multi Instance
🚀 Run multiple Claude Desktop instances simultaneously on macOS with independent configurations, accounts, an
Cc Persona
Instant persona switching for Claude Code. One CLI, one skill — settings, skills, MCP, and CLAUDE.md switched
Claude Code Provider Switching Kit
Switch Claude Code between Anthropic, GLM, and OpenRouter (including free models) with one command.
Swisscode
Run Claude Code with multiple Claude Pro/Max accounts: usage limits, one-command switching, a localhost proxy
RayCast Claude Code Config Selector
A Raycast extension for managing Claude Code API configurations. Easily switch between different Claude Code e
Related Agents
Configuration Manager
Configuration and environment management expert that handles application settings, secrets, and deployment con
Unity Build Runner
Configures and triggers Unity builds via MCP. Handles platform switching, player settings, build profiles, Add
Cloud Security Reviewer
Cloud and infrastructure security specialist. Use proactively when reviewing AWS infrastructure, IAM policies,