cli-anything-ccswitch
What it does
This skill lets your agent check and manage the settings of AI coding tools that CC Switch controls, such as Claude Code and Codex. It is for developers who switch between providers and tools.
When to use it
- ✓When you want to see which AI provider your coding tools are currently set to use.
- ✓When you want to switch the active provider for an AI coding tool.
- ✓When you want to check API usage and cost statistics for your coding tools.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/cc-switch/agent-harness/cli_anything/ccswitch/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me which AI provider my coding tools are using, and what they cost over the last three days.”
5 new skills a week. 1 minute to read.
How it works
The skill reads the CC Switch database on your computer and runs its command-line tool to list or change settings. It can also show usage logs and browse past sessions.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
Do I need CC Switch installed?
Yes, CC Switch must be installed with an active database on your computer.
Which tools does it cover?
It covers Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, and Hermes.
Can it change settings?
Yes, it can set the current provider and enable MCP servers, among other changes.
Details
Original description by the author
CLI interface for CC Switch — manage AI coding tool configurations from the terminal
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3187
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.