nwiizo

Cctx — Development skill for Claude Code

Development community

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

[![Crates.io](https://img.shields.io/crates/v/cctx)](https://crates.io/crates/cctx) [![CI](https://github.com/nwiizo/cctx/actions/workflows/ci.yml/badge.svg)](https://github.com/nwiizo/cctx/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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 | |