@tkpdx01/ccc
v1.6.6
Published
Claude Code / Codex Settings Launcher - Manage multiple Claude Code and Codex profiles
Maintainers
Readme
ccc — Claude Code / Codex Launcher
Manage multiple API profiles for Claude Code and OpenAI Codex. Switch between providers, keys, and endpoints instantly.
管理 Claude Code 和 OpenAI Codex 的多套 API 配置,一键切换 Provider、Key 和 Endpoint。
Install
npm install -g @tkpdx01/cccQuick Start
ccc new # Create a profile (Claude or Codex)
ccc list # List all profiles
ccc <profile> # Launch with profile (by name or index)
ccc # Launch default, or select interactivelyCommands
Launch
ccc <profile> # Auto-detect type and launch
ccc <index> # Launch by index number (e.g. ccc 3)
ccc -d # Claude: --dangerously-skip-permissions / Codex: --full-autoProfile Management
ccc new [name] # Create profile (choose Claude or Codex)
ccc edit [profile] # Edit API credentials
ccc use <profile> # Set default profile
ccc show [profile] # Show full config
ccc delete [profile] # Delete profile
ccc sync [profile] # Sync from template, preserve credentials
ccc sync --all # Sync all profiles
ccc apply [profile] # Write profile config to ~/.claude or ~/.codex
ccc resettodefault # Restore pre-apply ~/.codex and clean OPENAI env exportsWebDAV Cloud Sync
ccc webdav setup # Configure WebDAV + encryption password
ccc webdav push # Upload (AES-256-GCM encrypted)
ccc webdav pull # Download and decrypt
ccc webdav status # Check sync statusHow It Works
Claude Profiles
Each profile is a copy of ~/.claude/settings.json with its own API credentials. Launched via:
claude --settings ~/.ccc/profiles/<name>.jsonCodex Profiles
Each profile is a directory containing auth.json + config.toml. Launched via:
CODEX_HOME=~/.ccc/codex-profiles/<name>/ codexccc <profile> 启动仍是进程级环境变量,不污染全局。
ccc apply(Codex)会同步 OPENAI_BASE_URL / OPENAI_API_KEY 到 shell rc,并可用 ccc resettodefault 回滚。
Storage
~/.ccc/
├── profiles/ # Claude profiles (*.json)
├── codex-profiles/ # Codex profiles
│ └── <name>/
│ ├── auth.json # API key
│ └── config.toml # Model & endpoint config
├── default # Default profile name
└── webdav.json # Cloud sync configKey Features
- Dual CLI support — Claude Code + OpenAI Codex in one tool
- Unified index — All profiles sorted together, launch by number
- Apply command — Push a profile's config to
~/.claudeor~/.codex - Reset to default — Restore pre-apply Codex config and shell env exports
- Template sync — Update from main settings, keep credentials
- Cloud sync — E2E encrypted WebDAV sync across devices
Security
- AES-256-GCM encryption for cloud sync
- PBKDF2 key derivation (100K iterations)
- Manual sync only — no background processes
- Non-destructive merge — conflicts preserve both versions
License
MIT
