CLI interface for CC Switch — manage AI coding tool configurations from the terminal
Capabilities
JSON Output
Always use --json for programmatic consumption
Sensitive Values
API tokens, keys, and secrets are masked in all output
App Types
Error Handling
When a resource is not found, the CLI prints an error message to…
Getting started
Full instructionsExample command
Installation
pip install -e .Instructions: SKILL.mdv1.0.0
CC Switch CLI
CLI harness for CC Switch, a desktop app that manages AI coding tool (Claude Code,
Codex, Gemini CLI, OpenCode, OpenClaw, Hermes) configurations. Built with Click
and the CLI-Anything methodology.
Prerequisites
- Python 3.10+
- CC Switch installed with an active database at
~/.cc-switch/cc-switch.db
Installation
pip install -e .
After installation, the command cli-anything-ccswitch is available.
Command Groups
| Group | Description |
|---|---|
status |
Show a quick database overview |
providers |
Manage AI provider configurations (list, get, set-current) |
proxy |
Manage the local HTTP proxy server (status, config) |
mcp |
Manage MCP (Model Context Protocol) servers (list, enable) |
skills |
Manage installed skills (list, repos) |
usage |
View API usage and cost statistics (stats, logs) |
settings |
View and manage CC Switch settings (list, get, set) |
sessions |
Browse and search AI conversation sessions (list) |
Global Options
--json— Output in machine-readable JSON format (recommended for agent use)--db PATH— Override the database path
Agent-Specific Guidance
JSON Output
Always use --json for programmatic consumption. Place it before the
subcommand:
cli-anything-ccswitch --json providers list
cli-anything-ccswitch --json usage stats --days 30
cli-anything-ccswitch --json providers get <id> --app claude
Sensitive Values
API tokens, keys, and secrets are masked in all output. The settings_config
field in provider details shows masked values (e.g., sk-bc089...5cbb).
Exit Codes
0— Success1— Error (e.g., resource not found, invalid app type)
App Types
Valid app types: claude, codex, gemini, opencode, openclaw, hermes.
Examples
List all providers
cli-anything-ccswitch providers list
cli-anything-ccswitch --json providers list --app claude
Switch active provider
cli-anything-ccswitch providers set-current <provider-id> --app claude
Check proxy status
cli-anything-ccswitch proxy status --app claude
cli-anything-ccswitch proxy config --app claude --set-port 8080
View usage stats
cli-anything-ccswitch usage stats --days 7
cli-anything-ccswitch --json usage stats --days 30 --app claude
cli-anything-ccswitch usage logs --limit 10
List skills
cli-anything-ccswitch skills list
cli-anything-ccswitch skills repos
MCP servers
cli-anything-ccswitch mcp list
cli-anything-ccswitch mcp enable <server-id> --app claude --on
Settings
cli-anything-ccswitch settings list
cli-anything-ccswitch settings get <key>
cli-anything-ccswitch settings set <key> <value>
Sessions
cli-anything-ccswitch sessions list --app claude --limit 10
Status overview
cli-anything-ccswitch status
cli-anything-ccswitch
cli-anything-ccswitch --json
Error Handling
When a resource is not found, the CLI prints an error message to stderr and
exits with code 1. Agents should check the exit code before parsing output.
Database
The CLI reads from the live CC Switch SQLite database. All read operations
are safe and do not modify the database. Write operations (providers set-current, proxy config, mcp enable, settings set) modify the
database directly.
Explore more skills
Browse all- CLI Hub Matrix Game DevelopmentCapability-based multi-tool matrix for game development: engine, 3D/2D/audio assets, AI-generated assets, agent…
- CLI Anything RekordboxCommand-line interface for Pioneer Rekordbox 6/7 - DJ library and live-deck control via guarded SQLCipher master.db…
- CLI Anything Live2dInspect, validate, edit, lint, diff, batch-manage, and deploy Live2D Cubism models (.model3.json) from the command line.
- CLI Anything AdguardhomeCommand-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API.…
- CLI Anything InkscapeCommand-line interface for Inkscape - A stateful command-line interface for vector graphics editing, following the same…
- CLI Anything ShotcutCommand-line interface for Shotcut - A stateful command-line interface for video editing, built on the MLT XML format.…
Security
Reviews (0)
More from CLI-Anything
View source →Frequently asked questions about cli-anything-ccswitch
What does the cli-anything-ccswitch skill do?
CLI interface for CC Switch — manage AI coding tool configurations from the terminal It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the cli-anything-ccswitch skill?
Run `npx @skills-hub-ai/cli install cli-anything-ccswitch` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cli-anything-ccswitch/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does cli-anything-ccswitch work with?
cli-anything-ccswitch runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the cli-anything-ccswitch skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use cli-anything-ccswitch after installing it?
In Claude Code, type `/cli-anything-ccswitch` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the cli-anything-ccswitch skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/cli-anything-ccswitch)<a href="https://skills-hub.ai/skills/cli-anything-ccswitch"><img src="https://skills-hub.ai/api/badges/skill/cli-anything-ccswitch" alt="Install on Skills Hub"></a>More options in the badge docs.