Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cc-mirror) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CC-MIRROR
Create multiple isolated Claude Code variants with custom providers.
Run Claude Code with Z.ai, MiniMax, OpenRouter, Claude Code Router, or any Anthropic-compatible API —
each with its own config, themes, and session storage.
Why CC-MIRROR?
Claude Code is powerful, but locked to Anthropic's API. CC-MIRROR lets you:
- Use any provider — Z.ai's GLM models, MiniMax-M2.1, OpenRouter's 100+ models, or route to local LLMs via Claude Code Router
- Keep variants isolated — Each variant has its own config, sessions, and themes
- Switch instantly — Run
zaifor Z.ai,minimaxfor MiniMax,openrouterfor OpenRouter
Features
- Multiple Providers — Z.ai, MiniMax, OpenRouter, Claude Code Router, or custom endpoints
- Complete Isolation — Each variant has its own config, sessions, and themes
- Brand Themes — Custom color schemes per provider via tweakcc
- Prompt Packs — Enhanced system prompts for Z.ai and MiniMax
- One-Command Updates — Update all variants when Claude Code releases
- Interactive TUI — Full-screen setup wizard or CLI for automation
Quick Start
Installation
# Run directly with npx (opens TUI by default)
npx cc-mirror
# Or install globally
npm install -g cc-mirror
cc-mirrorInteractive TUI
Running cc-mirror with no arguments opens the interactive TUI:
cc-mirror
CLI Quick Setup
# Z.ai (GLM Coding Plan)
npx cc-mirror quick --provider zai --api-key "$Z_AI_API_KEY"
# MiniMax (MiniMax-M2.1)
npx cc-mirror quick --provider minimax --api-key "$MINIMAX_API_KEY"
# OpenRouter (100+ models)
npx cc-mirror quick --provider openrouter --api-key "$OPENROUTER_API_KEY" \
--model-sonnet "anthropic/claude-3.5-sonnet" \
--model-opus "anthropic/claude-3-opus" \
--model-haiku "anthropic/claude-3-haiku"
# Claude Code Router (local LLMs)
npx cc-mirror quick --provider ccrouterSupported Providers
| Provider | Description | Auth | Model Mapping |
|---|---|---|---|
| Z.ai | GLM-4.7 via GLM Coding Plan | API Key | Auto (GLM-4.7 for Sonnet/Opus, GLM-4.5-Air for Haiku) |
| MiniMax | MiniMax-M2.1 via MiniMax Coding Plan | API Key | Auto (single model for all tiers) |
| OpenRouter | Access 100+ models through one API | Auth Token | Required (you choose the models) |
| CCRouter | Route to local LLMs (Ollama, DeepSeek, etc.) | Optional | Handled by CCRouter config |
Variant Structure
Each variant is fully isolated in ~/.cc-mirror/<name>/:
~/.cc-mirror/<variant>/
├── npm/ # Claude Code installation
├── config/ # CLAUDE_CONFIG_DIR
│ ├── settings.json # API keys, env overrides
│ └── .claude.json # MCP servers, approvals
├── tweakcc/ # Theme & prompt configs
│ ├── config.json # Brand preset
│ └── system-prompts/
└── variant.json # Metadata
Wrapper: ~/.local/bin/<variant>Commands
# Create/manage variants
cc-mirror create [options] # Full configuration wizard
cc-mirror quick [options] # Fast setup with defaults
cc-mirror list # List all variants
cc-mirror update [name] # Update one or all variants
cc-mirror remove <name> # Delete a variant
cc-mirror doctor # Health check all variants
cc-mirror tweak <name> # Launch tweakcc UI
# Run your variant
zai # If you named it 'zai'
minimax # If you named it 'minimax'CLI Options
--provider <name> zai | minimax | openrouter | ccrouter | custom
--api-key <key> Provider API key
--base-url <url> Custom API endpoint
--model-sonnet <name> Map to sonnet model (for OpenRouter)
--model-opus <name> Map to opus model (for OpenRouter)
--model-haiku <name> Map to haiku model (for OpenRouter)
--brand <preset> Theme: auto | none | zai | minimax | openrouter | ccrouter
--root <path> Variants root (default: ~/.cc-mirror)
--bin-dir <path> Wrapper dir (default: ~/.local/bin)
--no-tweak Skip tweakcc theme application
--no-prompt-pack Skip prompt pack enhancements
--no-skill-install Skip dev-browser skill installationBrand Themes
Each provider has an optional color theme applied via tweakcc:
- zai — Dark carbon with gold accents
- minimax — Coral/red/orange spectrum
- openrouter — Teal/cyan gradient
- ccrouter — Sky blue accents
Updating Variants
When Claude Code releases a new version:
# Update all variants
cc-mirror update
# Update specific variant
cc-mirror update zaiContributing
Contributions welcome! See CONTRIBUTING.md for development setup and guidelines.
Want to add a provider? Check the Provider Guide for details.
Related Projects
- tweakcc — Theme and customize Claude Code
- Claude Code Router — Route Claude Code to any LLM
- n-skills — Universal skills for AI agents
License
MIT — see LICENSE
Created by Numman Ali
@nummanali