miraccan00

Claude Ctx — Development skill for Claude Code

Development community

Switch between multiple Claude Code accounts without losing your skills, agents and settings — kubectx for Claude Code.

How to install Claude Ctx

This entry records only its repository, not the path inside it, so there is no exact command to give. Open miraccan00/claude-ctx and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Ctx does

Switch between multiple Claude Code accounts without losing your skills, agents and settings — kubectx for Claude Code.

Alternatives in Development

  • Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
  • Shorten — Cut length without losing content 407 ★
  • Devteam — Run a team of local coding agents in your terminal 264 ★

README

claude-ctx

Switch between multiple Claude Code accounts the way `kubectx` switches Kubernetes contexts — without losing your skills, subagents, hooks and settings when you move between them.

$ claude-ctx
🧭 Contexts in ~/.claude-contexts

    client-acme
  ▸ personal   ✅ active
    work

🔗 ~/.claude-active → ~/.claude-contexts/personal

$ claude-ctx work
✅ Switched to context "work".
   🔗 ~/.claude-active → ~/.claude-contexts/work

Why

`claude` reads its entire configuration from one directory, which `CLAUDE_CONFIG_DIR` can point elsewhere. Point it at a different directory and you get a different login — but also an empty setup: no skills, no subagents, no hooks, no `CLAUDE.md`.

`claude-ctx` gives every account its own directory for the parts that must stay separate, and symlinks the parts that should not. Add a skill once and every account has it.

How it works

~/.claude                     your shared config: skills, agents, hooks, settings.json
~/.claude-contexts/work/      one directory per account
~/.claude-contexts/personal/
~/.claude-active         ->   symlink to the active context

Your shell alias points `claude` at the symlink, so switching a context switches which account `claude` runs as:

alias claude="CLAUDE_CONFIG_DIR=$HOME/.claude-active claude"

Inside each context, the shared entries are symlinks back into `~/.claude`. Everything else — credentials, sessions, history, project transcripts — is real and local to that context.

Install

git clone https://github.com/miraccan00/claude-ctx.git
cd claude-ctx
make install

`make install` builds the binary, installs it to `~/.local/bin` (no `sudo`), and adds a marked block to your shell profile with the `PATH` entry and the `claude` alias. It is idempotent and backs the profile up before its first edit. It prints the exact `source` line to finish with.

Windows, without `make`:

powershell -ExecutionPolicy Bypass -File scripts\inst