{"id":51734560,"url":"https://github.com/mudern/ccs","last_synced_at":"2026-07-18T05:40:43.430Z","repository":{"id":369481589,"uuid":"1290034052","full_name":"mudern/ccs","owner":"mudern","description":"One-command AI model switching for Claude Code","archived":false,"fork":false,"pushed_at":"2026-07-05T14:14:34.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T16:05:37.830Z","etag":null,"topics":["ai-tools","anthropic-api","bash","claude-code","cli"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-05T13:58:14.000Z","updated_at":"2026-07-05T14:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mudern/ccs","commit_stats":null,"previous_names":["mudern/ccs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mudern/ccs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudern%2Fccs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudern%2Fccs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudern%2Fccs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudern%2Fccs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudern","download_url":"https://codeload.github.com/mudern/ccs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudern%2Fccs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35606857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","anthropic-api","bash","claude-code","cli"],"created_at":"2026-07-18T05:40:42.770Z","updated_at":"2026-07-18T05:40:43.425Z","avatar_url":"https://github.com/mudern.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CCS — Claude Code Switch\n\nOne-command switching between AI model providers for Claude Code. Supports any Anthropic-compatible API (DeepSeek, GLM, LongCat, etc.).\n\n## Quick Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/mudern/ccs/v1.0.0/install.sh | bash\n```\n\nRestart your terminal (or `source ~/.zshrc`), then `ccs` is ready.\n\n\u003e **Platform**: Linux (requires bash). macOS support coming soon.\n\n## What is CCS?\n\nClaude Code supports switching backend API providers via environment variables, but manually changing them every time is painful. CCS manages these configurations:\n\n- **`ccs use \u003cname\u003e`** — switch the system-wide default provider with one command\n- **`ccs run \u003cname\u003e`** — launch Claude Code with a specific provider without touching global config\n- **`ccs add \u003cname\u003e \u003ckey\u003e \u003curl\u003e \u003cmodel\u003e`** — quickly add a new provider\n- **`ccs models [name]`** — list models available from a provider\n- **`ccs test`** — test connection to the current provider\n- **`ccs doctor`** — diagnose config consistency\n\n## Usage\n\n```bash\n# List all providers\nccs list\n\n# Switch to DeepSeek \u0026 test\nccs use deepseek --test\n\n# One-shot: run Claude with LongCat without changing defaults\nccs run longcat\n\n# Add a new provider\nccs add myapi sk-xxx https://api.example.com/anthropic gpt-4o gpt-4o-mini\n\n# Check available models\nccs models myapi\n```\n\n## Skill Auto-Configuration\n\nCCS ships with a `.skill` file that enables intelligent configuration with Claude Code agents.\n\n### How it works\n\nThe installer places the skill at `~/.claude/skills/ccs-config/SKILL.md`. Then, simply tell Claude Code:\n\n```\nAdd a new provider called LongCat, key is ak_xxx, base URL is https://api.longcat.chat/anthropic\n```\n\nThe agent will automatically: query available models → create the `.env` file → test the connection.\n\n### For Codex users\n\nCopy the `skills/ccs-config/SKILL.md` content into your Codex rules for the same behavior.\n\n## Architecture\n\n```\n~/.config/ccs/\n├── providers/              # Provider config files\n│   ├── deepseek.env\n│   ├── longcat.env\n│   └── ...\n└── current.env             # → symlink to the active provider\n```\n\nEach `.env` file defines an Anthropic-compatible API provider: key, base URL, and model-to-slot mappings.\n\n## Supported Providers\n\nKnown Anthropic-compatible providers and their base URLs:\n\n| Provider | Base URL | Models |\n|----------|----------|--------|\n| DeepSeek | `https://api.deepseek.com/anthropic` | `deepseek-v4-pro`, `deepseek-v4-flash` |\n| Zhipu GLM | `https://open.bigmodel.cn/api/anthropic` | `glm-5.2`, `glm-5.1`, `glm-5`, `glm-4.7`, `glm-4.5-Air` |\n| | `https://api.z.ai/api/anthropic` (international) | |\n| Moonshot Kimi | `https://api.moonshot.cn/anthropic` | `kimi-k2-0711-preview`, `kimi-k2-turbo-preview`, `kimi-k2-0905` |\n| | `https://api.moonshot.ai/anthropic` (international) | |\n| MiniMax | `https://api.minimaxi.com/anthropic` | `MiniMax-M3`, `MiniMax-M2.7`, `MiniMax-M2.5`, `MiniMax-M2.1` |\n| | `https://api.minimax.io/anthropic` (international) | |\n| Qwen DashScope | `https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy` | `qwen3-max`, `qwen3-plus`, `qwen3-turbo`, `qwen3-coder` |\n| LongCat | `https://api.longcat.chat/anthropic` | `LongCat-2.0` |\n\n## Install from Source\n\n```bash\ngit clone https://github.com/mudern/ccs.git\ncd ccs\nbash install.sh\n```\n\n## License\n\nMIT\n\n---\n\n[中文文档](README_zh.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudern%2Fccs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudern%2Fccs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudern%2Fccs/lists"}