Borrowing it
Nothing to install: this file belongs to greluoqixi/cc-switch-web. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/greluoqixi/cc-switch-web/main/CLAUDE.mdgit clone --depth 1 https://github.com/greluoqixi/cc-switch-webWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/greluoqixi/cc-switch-web/claude-md)<a href="https://agentmods.dev/instructions/greluoqixi/cc-switch-web/claude-md"><img src="https://agentmods.dev/badge/instructions/greluoqixi/cc-switch-web/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02001 | $0.02001 |
| Opus 5 | $0.01001 | $0.01001 |
| Sonnet 5 | $0.00400 | $0.00400 |
| Haiku 4.5 | $0.00200 | $0.00200 |
Grade B, and why
cc-switch-web CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo dpkg -i cc-switch-web_*.deb # 安装 .deb How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
本文件为 Claude Code(claude.ai/code)在此仓库中操作时提供指导。
项目概述
CC Switch 是一个 Tauri 2 桌面应用,用于管理 AI CLI 工具的配置(Claude Code、Codex、Gemini CLI、OpenCode、OpenClaw)。它提供统一的界面来切换 provider、管理所有五个工具的 MCP 服务器、prompts 和 skills,内置 50+ 个 provider 预设和 SQLite 数据存储。
本地系统环境
- Ubuntu 20.04
- Node.js 20.20.2
- pnpm 10.13.1
- Rust 1.95.0
开发命令
# 前端
pnpm dev # 开发模式(热重载,pnpm tauri dev)
pnpm build # 生产构建(pnpm tauri build)
pnpm dev:renderer # 仅启动 Vite 渲染进程
pnpm build:renderer # 仅构建渲染进程
# 类型检查
pnpm typecheck # TypeScript 类型检查(tsc --noEmit)
# 代码格式化
pnpm format # 使用 Prettier 格式化
pnpm format:check # 检查格式
# 前端测试
pnpm test:unit # 运行 vitest 测试
pnpm test:unit:watch # 监听模式
# Rust 后端(在 src-tauri/ 目录下运行)
cargo fmt # 格式化 Rust 代码
cargo clippy # Lint 检查
cargo test # 运行所有 Rust 测试
cargo test test_name # 运行指定测试
cargo test --features test-hooks # 使用 test-hooks 特性运行测试
# Web 服务器模式(Ubuntu 20.04 兼容)
./run-web.sh # 构建并前台启动(Ctrl+C 停止)
./run-web.sh start # 后台启动
./run-web.sh stop # 停止服务
./run-web.sh restart # 重启
./run-web.sh status # 查看运行状态
./run-web.sh logs # 查看后台日志
cargo build -p web-server # 仅编译 web 服务器
cargo run -p web-server # 编译+启动(前台)
# 原生桌面窗口
cd native-shell && cargo build --release # 编译原生窗口包装
cd .. && native-shell/target/release/native-shell # 启动原生窗口
cargo run --manifest-path native-shell/Cargo.toml # 或直接编译运行
# .deb 打包(Ubuntu 20.04 发布)
./build-deb.sh # 构建 .deb 安装包
./run-web.sh package # 同上(通过管理脚本)
sudo dpkg -i cc-switch-web_*.deb # 安装 .deb
架构
全栈分层架构(Tauri 2)
前端(React 18 + TypeScript + Vite)
- 路径别名:
@/映射到src/ - 状态管理:TanStack Query v5 管理服务端/缓存状态
- UI:TailwindCSS 3.4、shadcn/ui(Radix 原语)、react-hook-form + zod
- 国际化:react-i18next,语言文件位于
src/i18n/(zh/en/ja) - 拖拽:@dnd-kit
- 编辑器:CodeMirror 6(JSON/Markdown 编辑器)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 138 lines · 2,001 tokens per session scan B 388c64e7583e
cc-switch-web CLAUDE.md is an instructions file published in the GitHub repository greluoqixi/cc-switch-web (51 stars, last pushed 4mo ago), licensed MIT. It adds 2,001 tokens to every session, about $0.0100 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.