ccs

kaitrannttMIT活跃维护

一个命令行工具,通过 OAuth 代理在 Claude 多账号、Gemini、Copilot 和 OpenRouter 的 300+ 模型之间快速切换,带可视化面板和远程代理支持,零配置即可上手。

Switch between Claude accounts, Gemini, Copilot, OpenRouter (300+ models) via CLIProxyAPI OAuth proxy. Visual dashboard, remote proxy support, WebSearch fallback. Zero-config to production-ready.

v8.11.0发布于 2026-11-04 20:09 UTC2,898star +1 / 7 天278fork同步于 2026-11-10 17:44 UTC

怎么上手

由 README 提炼,执行前请确认
npm install -g @kaitranntt/ccs
ccs config
硬件要求按 README 说明

README 未说明显存或 GPU 要求;支持本地模型(Ollama、llama.cpp),但未给出具体硬件门槛

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

统一管理 Claude Code 多账号与多供应商配置的切换工具,免去反复改配置文件

一个命令行工具,通过 OAuth 代理在 Claude 多账号、Gemini、Copilot 和 OpenRouter 的 300+ 模型之间快速切换,带可视化面板和远程代理支持,零配置即可上手。

核心能力

  • 用一条 ccs 命令在 Claude、Codex、GLM、Ollama 等运行时之间切换
  • 通过本地 Anthropic 兼容代理把 Claude Code 桥接到 OpenAI 兼容供应商
  • 管理多个 Claude 订阅与隔离账号上下文,并支持 OAuth 供应商
  • 提供可视化面板查看用量、费用、鉴权状态与配额
  • 内置 WebSearch 与图像分析等工具回退能力

容易踩的坑

Docker 镜像 ccs-dashboard 已废弃,需改用 ghcr.io/kaitranntt/ccs:latest;捆绑的 CLIProxy 运行时暂不支持 Qwen Code 账号关联,需改用 API-key 的 Qwen 配置;Docker 方式默认面板在 3000 端口、CLIProxy 在 8317 端口,需确认端口未被占用

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v8.11.0
  1. v8.11.0最新正式版2026-11-04 · 2026-11-04 20:09 UTC

    8.11.0 (2026-11-04)

    Features

    • add Cheaper Inference as an OpenAI-compatible provider (305028b)
    • api: add Atlas Cloud provider preset (8bdd4fa)
    • api: add CloudGPU provider preset (f5b2569)
    • api: add Obscurify.ai provider preset (c0616b8)
    • api: add qwencloud aliases and QwenCloud Coding Plan labels (4c5800e)
    • api: add Runcrate provider preset (44e75de)
    • cliproxy: prioritize claude pool by general quota class (64e72f9)
    • cliproxy: reapply managed drain order automatically after registry sync (c1a3fd7)
    • cliproxy: support fallback_chain routing schema and v8 config generation (0ad5457)
    • models: add Claude Haiku 5.5 to catalogs, preset mappings, and pricing (d427e68)
    • models: add Claude Opus 5.5 to catalogs, preset mappings, and pricing (b369b2b), closes #1740
    • models: add Claude Sonnet 5.5 to catalogs, preset mappings, and pricing (f8a94d3)
    • models: add GPT-6.1 Sol, GPT-6 Sol, and GPT-6 Luna to Codex catalogs and pricing (a741ee8), closes #1741 #1742
    • models: update GPT-5.6 Luna specs to 272k context and max effort level (54260c3), closes #1742
    • models: update GPT-5.6 Sol specs to 272k context and max effort level (25b794a), closes #1741

    Bug Fixes

    • allow keyless settings delegation and isolate plugin sweep file (fixes #1780, #1756) (cb44365)
    • api: point the Atlas Cloud key hint at the API keys page (d9033e4)
    • bar: compare claude accounts using general quota (f685412)
    • ci: migrate Docker release and smoke test workflows to ubuntu-latest (e33d087)
    • ci: migrate Linux workflows from self-hosted to GitHub-hosted ubuntu-latest (ca013b5)
    • cliproxy: bind CLIProxy to 127.0.0.1 by default (7ac704e)
    • cliproxy: canonicalize quota aliases and exclude credit grants ([28d58cc](https:/
  2. v8.10.0-dev.23pre-release2026-11-04 · 2026-11-04 19:23 UTC
    查看更新说明
    • Merge pull request #1802 from kaitranntt/kai/fix/1515-tier-reauth-preserve
    • fix(cliproxy): preserve account tier during registerAccount re-auth
    • chore(reports): update hardening inventory for tier preservation
  3. v8.10.0-dev.22pre-release2026-11-04 · 2026-11-04 19:07 UTC
    查看更新说明
    • Merge pull request #1801 from kaitranntt/kai/fix/1515-wire-auto-drain
    • fix(cliproxy): wire automatic drain order reapply on re-auth and discovery with proxy guards
    • chore(reports): refresh inventory after typed error and baseline updates
    • chore(reports): update hardening inventory for auto drain wiring
    • Merge pull request #1800 from kaitranntt/kai/feat/1515-auto-drain-order
    • feat(cliproxy): reapply managed drain order automatically after registry sync
    • chore(reports): update hardening inventory for auto drain order sync
  4. v8.10.0-dev.21pre-release2026-11-03 · 2026-11-03 20:55 UTC
    查看更新说明
    • Merge pull request #1799 from kaitranntt/kai/refactor/1609-unify-launch-settings
    • refactor(cliproxy): unify openai-compat (strip) and cliproxy (overlay) launch-settings helpers
    • chore(reports): update hardening inventory for launch-settings unification
  5. v8.10.0-dev.20pre-release2026-11-03 · 2026-11-03 20:36 UTC
    查看更新说明
    • Merge pull request #1798 from kaitranntt/kai/feat/1733-fallback-chain
    • feat(cliproxy): support fallback_chain routing schema and v8 config generation
    • chore(reports): update hardening inventory with regeneration tests
    • chore(reports): regenerate hardening inventory for fallback chain

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    CCS - Claude Codex Switch

    CCS Logo

    The multi-provider profile and runtime manager for Claude Code and compatible CLIs

    Run Claude, Codex, Droid-routed profiles, GLM, local models, and Anthropic-compatible APIs without config thrash.

    License npm PoweredBy

    Website | Documentation | Product Tour | CLI Reference

    [Docker] ghcr.io/kaitranntt/ccs-dashboard:latest is deprecated. Use ghcr.io/kaitranntt/ccs:latest instead. See #1251 and docker/README.md for migration details. To wire a sibling container to CLIProxy, see Connect your app to CLIProxy.

    Quick Start (Docker)

    With Docker installed:

    curl -fsSL https://ccs.kaitran.ca/docker-compose.yaml -o docker-compose.yaml
    docker compose up -d
    

    Dashboard at http://localhost:3000 · CLIProxy at http://localhost:8317.

    Need a corporate-proxy alternative? Download directly: https://raw.githubusercontent.com/kaitranntt/ccs/main/docker/compose.yaml

    Install on Host (npm)

    npm install -g @kaitranntt/ccs
    ccs config
    

    Then launch whatever runtime fits the task:

    ccs
    ccs codex
    ccs xai              # Alias: ccs grok
    ccs --target droid glm
    ccs glm
    ccs ollama
    

    Why CCS

    CCS gives you one stable command surface while letting you switch between:

    • multiple runtimes such as Claude Code, Factory Droid, and Codex CLI
    • multiple Claude subscriptions and isolated account contexts
    • OAuth providers like Codex, xAI/Grok, Kiro, Claude, Kimi, and more, with legacy Copilot compatibility for existing setups
    • API and local-model profiles like GLM, Kimi, OpenRouter, Requesty, Atlas Cloud, Cheaper Inference, OrcaRouter, Runcrate, Obscurify.ai, CloudGPU, Ollama, llama.cpp, Novita, Fireworks AI, and QwenCloud Coding Plan

    Qwen Code account linking is not available in the bundled CLIProxy runtime yet; use an API-key Qwen profile such as QwenCloud Coding Plan for Qwen models.

    The goal is simple: stop rewriting config files, stop breaking active sessions, and move between providers in seconds.

    OpenAI-Compatible Routing

    CCS can now bridge Claude Code into OpenAI-compatible providers through a local Anthropic-compatible proxy instead of requiring a native Anthropic upstream.

    ccs api create --preset hf
    ccs hf
    

    Need to manage the proxy manually?

    ccs proxy start hf
    eval "$(ccs proxy activate)"
    

    The proxy also supports request-time profile:model selectors, scenario-based model routing through proxy.routing, and explicit activation helpers such as ccs proxy activate --fish.

    Guide: OpenAI-Compatible Provider Routing.

    API Route custom profile

    API Route serves an Anthropic-compatible Messages endpoint. Create a custom Claude Code profile and enter your API Route key when prompted:

    ccs api create api-route --base-url https://global.api-route.com --model claude-haiku-4-5 --target claude
    ccs api-route
    

    Use the host without /v1, since Claude Code appends /v1/messages. Replace the example model with a Claude model ID available to your key; authenticated GET https://global.api-route.com/v1/models lists the IDs. API Route is a paid hosted service: see API keys and pricing. Profile settings use the existing CCS configuration workflow.

    Related Project: claude-code-router

    claude-code-router is an excellent standalone tool for routing Claude Code requests to OpenAI-compatible providers. CCS's local proxy and SSE transformation work was directly informed by CCR's transformer architecture.

    Use CCR when you want a standalone router without CCS profile management. Use CCS when you want the routing flow integrated with CCS profiles, runtime bridges, and the existing ccs command surface.

    Need the full setup path instead of the short version?

    NeedStart here
    Install and verify CCS/getting-started/installation
    First successful session/getting-started/first-session
    Visual walkthrough/getting-started/product-tour
    Provider selection/providers/concepts/overview
    Full command reference/reference/cli-commands
    Troubleshooting/reference/troubleshooting

    See CCS In Action

    CCS Bar For macOS

    CCS Bar

    CCS Bar puts live subscription quota, daily spend, and account controls in the macOS menu bar. Install it with ccs bar install, launch it with ccs bar, and tell us what would make it more useful: issues and ideas are welcome in GitHub Issues.

    Deep dive: CCS Bar.

    Usage Analytics

    Analytics Dashboard

    Track usage, costs, and session patterns across profiles. Deep dive: Dashboard Analytics.

    Live Auth And Health Monitoring

    Live Auth Monitor

    See auth state, account health, and provider readiness without dropping into raw config. Deep dive: Live Auth Monitor.

    OAuth Provider Control Center

    CLIProxy API

    Manage OAuth-backed providers, quota visibility, and proxy-wide routing from one place. CCS now surfaces round-robin vs fill-first natively in both CLI and dashboard flows instead of hiding that choice inside raw upstream controls. The original CLIProxyAPI backend remains the default; the community-maintained CLIProxyAPIPlus fork is opt-in for plus-only providers. When Plus is selected, CCS points the embedded management panel at the maintained CPAMC dashboard fork by default. Deep dive: CLIProxy API.

    Managed Tooling And Fallbacks

    WebSearch Fallback

    CCS can provision first-class local tools like WebSearch and image analysis for third-party launches instead of leaving you to wire them by hand. Browser automation now has a first-class setup path as well. Deep dive: WebSearch | Browser Automation.

    Docs Matrix

    The README stays short on purpose. The docs site owns the detailed guides and reference material.

    If you want to...Read this
    Understand what CCS is and how the pieces fit togetherIntroduction
    Install CCS cleanly on a new machineInstallation
    Go from install to a successful first runYour First CCS Session
    See the dashboard and workflow surfaces before setupProduct Tour
    Install the native macOS menu-bar companionCCS Bar
    Compare OAuth providers, Claude accounts, and API profilesProvider Overview
    Learn the dashboard structure and feature pagesDashboard Overview
    Configure profiles, paths, and environment variablesConfiguration
    Understand browser attach vs Codex browser toolingBrowser Automation
    Keep OpenCode aligned with your live CCS setupOpenCode Sync Plugin
    Browse every command and flagCLI Commands
    Recover from install, auth, or provider failuresTroubleshooting
    Understand storage, config, and architecture detailsReference

    Example Workflow

    # Design with default Claude
    ccs "design the auth flow"
    
    # Implement with a different provider
    ccs codex "implement the user service"
    
    # Use a cheaper API profile for routine work
    ccs glm "clean up tests and docs"
    
    # Run a local model when you need privacy or offline access
    ccs ollama "summarize these logs"
    

    Community Projects

    ProjectAuthorDescription
    opencode-ccs-sync@JasonLandbridgeAuto-sync CCS providers into OpenCode

    Contribute And Report Safely

    • Contributing guide: CONTRIBUTING.md
    • Daily local gate: bun run format && bun run lint:fix && bun run validate (validate is the fast path only)
    • Before review or merge confidence: bun run validate:ci-parity
    • Cross-runtime proxy transport: bun run test:runtime-matrix (Node 18/22/26 and Bun)
    • If PR checks stay queued for more than 10 minutes, verify GitHub Actions status instead of retrying blindly
    • Starter work: good first issue, help wanted
    • Questions: open a question issue
    • Security reports: SECURITY.md and the private advisory form

    Star History

    Star History Chart