Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cc-mirror

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-mirror

Provider-native coding variants with custom providers, tweakcc theming, and battle-tested defaults

latest
Source
npmnpm
Version
2.2.3
Version published
Weekly downloads
58
-20.55%
Maintainers
1
Weekly downloads
 
Created
Source

CC-MIRROR

CC-MIRROR Provider Themes

npm version License: MIT Twitter Follow

Provider-native coding variants

Pre-configured coding variants with custom providers,
prompt packs, and battle-tested enhancements.

One command. Instant power-up.

Contributions

cc-mirror is maintained as issues-first. Please open issues with provider docs, reproduction steps, and patch/design links; external pull requests are not accepted directly.

Quick Start

# Fastest path to a configured provider-native variant
npx cc-mirror quick --provider mirror --name mirror

# Run it
mirror

That's it. You now have an isolated coding variant ready to run.

Runtime Version (Stable/Latest/Pin)

By default, CC-MIRROR installs the latest native runtime release. You can pin a channel or version:

# Track upstream stable channel
npx cc-mirror quick --provider mirror --name mirror --claude-version stable

# Track upstream latest channel
npx cc-mirror update mirror --claude-version latest

# Pin a specific version
npx cc-mirror update mirror --claude-version 2.1.37

Notes:

  • stable and latest are upstream channels. stable may lag behind latest (that is normal).
  • cc-mirror resolves the channel to a concrete version during install/update and stores it in variant.json.

Update Policy

npx cc-mirror update [name] refreshes the native runtime install and cc-mirror-managed defaults for that variant, including provider endpoints, model slots, update/install/privacy flags, provider-managed MCP servers, and managed tweakcc startup/banner settings. Credentials and custom env keys are preserved.

Managed variants default to cc-mirror-controlled updates, disabled upstream install checks, privacy-oriented hosted-provider traffic settings, and hidden upstream startup branding where tweakcc can control it.

CC-MIRROR Home Screen

Or use the interactive wizard

npx cc-mirror

What is CC-MIRROR?

CC-MIRROR is an opinionated provider-native coding distribution. We did the wiring; you get the useful defaults.

At its core, CC-MIRROR:

  • Creates isolated runtime instances
  • Configures provider endpoints, model slots, and env defaults
  • Applies prompt packs and tweakcc themes
  • Installs optional skills (dev-browser, opt-in)
  • Packages everything into a single command

Each variant is completely isolated — its own config, sessions, MCP servers, and credentials. Your main installation stays untouched.

┌─────────────────────────────────────────────────────────────────────────┐
│  ~/.cc-mirror/                                                          │
│                                                                         │
│  ├── mirror/                         ← Mirror variant                    │
│  │   ├── native/                     Runtime installation               │
│  │   ├── config/                     API keys, sessions, MCP servers    │
│  │   ├── tweakcc/                    Theme customization                │
│  │   └── variant.json                Metadata                           │
│  │                                                                      │
│  ├── zai/                            ← Z.ai variant (GLM models)        │
│  ├── minimax/                        ← MiniMax variant (M2.7)           │
│  └── kimi/                           ← Kimi Code variant                 │
│                                                                         │
│  Wrappers: <bin-dir>/mirror, <bin-dir>/zai, ...                         │
└─────────────────────────────────────────────────────────────────────────┘

Default <bin-dir> is ~/.local/bin on macOS/Linux and ~/.cc-mirror/bin on Windows.

Windows tip: add %USERPROFILE%\.cc-mirror\bin to your PATH, or run the <variant>.cmd wrapper directly. Each wrapper has a sibling <variant>.mjs launcher.

MCP Servers

Each variant has its own Claude Code config directory. Add MCP servers to:

~/.cc-mirror/<variant>/config/.claude.json

cc-mirror keeps provider-managed MCP servers up to date during npx cc-mirror update, while preserving unrelated user-added MCP servers in the same file.

For a server that should load in every project for one variant, run the variant wrapper with user scope:

openrouter mcp add-json airtable '{"command":"npx","args":["@rashidazarang/airtable-mcp"],"env":{"AIRTABLE_TOKEN":"","AIRTABLE_BASE_ID":""}}' --scope user
openrouter mcp list

For a server that should live with the current project, use --scope project; Claude Code will write .mcp.json in that project. The default local scope is project-specific but private, so a server added from one working directory may not appear from another.

Providers

Mirror

The clean default runtime path. No proxy, no model changes — just isolation and privacy defaults.

npx cc-mirror quick --provider mirror --name mirror
  • No proxy — Authenticate normally inside the isolated config
  • Isolated config — Experiment without affecting your main setup
  • Provider presets — Clean defaults without hidden patches

Alternative Providers

Want to use different models? CC-MIRROR supports multiple providers:

ProviderModelsAuthBest For
Kimikimi-for-codingAuth TokenLong-context coding (Kimi Code)
MiniMaxMiniMax-M2.7Auth TokenUnified model experience
Z.aiGLM-5.1, 5-Turbo, 4.5-AirAuth TokenHeavy coding with GLM reasoning
OpenRouter100+ modelsAuth TokenModel flexibility, pay-per-use
VercelMulti-provider gatewayAuth TokenVercel AI Gateway
OllamaLocal + cloud modelsAuth TokenLocal-first + hybrid setups
NanoGPTGPT-5.2 / Gemini 3 FlashAuth TokenPay-as-you-go model access
CCRouterOllama, DeepSeek, etc.OptionalLocal-first development
GatewayZMulti-provider gatewayAuth TokenCentralized routing
ProviderSubscribeGet Key/TokenDocs
Kimihttps://www.kimi.com/codehttps://platform.kimi.ai/console/api-keyshttps://platform.kimi.ai/docs/guide/agent-support
MiniMaxhttps://platform.minimax.io/subscribe/coding-planhttps://platform.minimax.io/user-center/payment/coding-planhttps://platform.minimax.io/docs
Z.aihttps://z.ai/subscribehttps://z.ai/manage-apikey/apikey-listhttps://z.ai/docs
OpenRouterhttps://openrouter.ai/accounthttps://openrouter.ai/keyshttps://openrouter.ai/docs
Vercelhttps://vercel.com/aihttps://vercel.com/account/tokenshttps://vercel.com/docs/ai-gateway
Ollamahttps://ollama.comhttps://ollama.comhttps://docs.ollama.com/api/anthropic-compatibility
NanoGPThttps://nano-gpt.comhttps://nano-gpt.comhttps://docs.nano-gpt.com/integrations
CCRouterhttps://github.com/musistudio/claude-code-router#installationhttps://github.com/musistudio/claude-code-router#2-configurationhttps://github.com/musistudio/claude-code-router#2-configuration
GatewayZhttps://gatewayz.aihttps://gatewayz.aihttps://docs.gatewayz.ai/docs/anthropic-compatibility
# Kimi Code
npx cc-mirror quick --provider kimi --api-key "$KIMI_API_KEY"

# MiniMax (MiniMax-M2.7)
npx cc-mirror quick --provider minimax --api-key "$MINIMAX_API_KEY"

# Z.ai (GLM-5.1/5-Turbo/4.5-Air)
npx cc-mirror quick --provider zai --api-key "$Z_AI_API_KEY"

# OpenRouter (100+ models)
npx cc-mirror quick --provider openrouter --api-key "$OPENROUTER_API_KEY" \
  --model-sonnet "provider/balanced-coding-model"

# Vercel AI Gateway
npx cc-mirror quick --provider vercel --api-key "$VERCEL_AI_GATEWAY_KEY" \
  --model-sonnet "provider/balanced-coding-model"

# Ollama
npx cc-mirror quick --provider ollama --api-key "ollama" \
  --model-sonnet "qwen3.5" --model-opus "qwen3.5" --model-haiku "qwen3.5"

# NanoGPT
npx cc-mirror quick --provider nanogpt --api-key "$NANOGPT_API_KEY"

# CC Router (local LLMs)
npx cc-mirror quick --provider ccrouter

# GatewayZ
npx cc-mirror quick --provider gatewayz --api-key "$GATEWAYZ_API_KEY" \
  --model-sonnet "provider/balanced-coding-model"

All Commands

# Create & manage variants
npx cc-mirror                     # Interactive TUI
npx cc-mirror quick [options]     # Fast setup with defaults
npx cc-mirror create [options]    # Full configuration wizard
npx cc-mirror list                # List all variants
npx cc-mirror update [name]       # Update one or all variants
npx cc-mirror apply <name>        # Re-apply tweakcc patches (no reinstall)
npx cc-mirror remove <name>       # Delete a variant
npx cc-mirror doctor              # Health check all variants
npx cc-mirror tweak <name>        # Launch tweakcc customization

# Launch your variant
mirror                            # Run Mirror
zai                               # Run Z.ai variant
minimax                           # Run MiniMax variant
kimi                              # Run Kimi Code variant

CLI Options

--provider <name>        kimi | minimax | zai | openrouter | vercel | ollama | nanogpt | ccrouter | mirror | gatewayz | custom
--name <name>            Variant name (becomes the CLI command)
--api-key <key>          Provider API key
--base-url <url>         Custom API endpoint
--model-sonnet <name>    Map Balanced model slot
--model-opus <name>      Map Primary model slot
--model-haiku <name>     Map Fast model slot
--brand <preset>         Theme: auto | kimi | minimax | zai | openrouter | vercel | ollama | nanogpt | ccrouter | mirror | gatewayz
--no-tweak               Skip tweakcc theme
--no-prompt-pack         Skip provider prompt pack
--verbose               Show full tweakcc output during update

Brand Themes

Each provider includes a custom color theme via tweakcc:

BrandStyle
kimiTeal/cyan gradient
minimaxCoral/red/orange spectrum
zaiDark carbon with gold accents
openrouterSilver/chrome with electric blue
vercelMonochrome with green accents
ollamaWarm sandstone with earthy tones
nanogptAurora green + cyan accents
ccrouterSky blue accents
gatewayzViolet gradients

Documentation

DocumentDescription
MirrorIsolated runtime with clean defaults
ArchitectureHow CC-MIRROR works under the hood
Full DocumentationComplete documentation index

Contributing

Contributions welcome! See CONTRIBUTING.md for development setup.

Want to add a provider? Check the Provider Guide.

License

MIT — see LICENSE

Created by Numman Ali
@nummanali

Keywords

claude

FAQs

Package last updated on 31 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts