Skip to content
CLI Tools
Skill

/cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

From plugin
cli-anything
59k71 skills9 commands

Claude Code

$ npx -y skills add HKUDS/CLI-Anything --skill cli-anything-ccswitch --agent claude-code

SKILL.md

cli-anything-ccswitch.SKILL.md
name: "cli-anything-ccswitch"
description: "CLI interface for CC Switch — manage AI coding tool configurations from the terminal"

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` — Success
  • `1` — 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.

Read more
@hkuds
Ships withcli-anything

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Stars on GitHub

Momentum

stars in total
58.5k
Star history of HKUDS/CLI-Anything on GitHub, a chart by star-history.com

Other skills on cli-anything.

cli-anything-adguardhome

cli-anything-adguardho…

Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI…

@hkuds@hkudsInstall Skill
cli-anything-anygen

cli-anything-anygen

Command-line interface for Anygen - A stateful command-line interface for AnyGen OpenAPI — generate professional slides,…

@hkuds@hkudsInstall Skill
cli-anything-audacity

cli-anything-audacity

Command-line interface for Audacity - A stateful command-line interface for audio editing, following the same patterns as the…

@hkuds@hkudsInstall Skill

More skills from other plugins.

find-skills

find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a…

skills4d39k
@vercel-labs-2@vercel-labs-2Install Skill
ohmyposh

ohmyposh

Install, configure, or troubleshoot Oh My Posh/ohmyposh: shell init, themes, segments, Nerd Font icons, and prompt setup on…

@jandedobbeleer@jandedobbeleerInstall Skill
mgrep

mgrep

MANDATORY: Replaces ALL built-in search tools. You MUST invoke this skill BEFORE using WebSearch, Grep, or Glob. NEVER use the…

mgrep6mo4.4k
@mixedbread-ai@mixedbread-aiInstall Skill

Questions about cli-anything-ccswitch.

Which coding agents can use cli-anything-ccswitch?
cli-anything-ccswitch installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.