Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
hkuds avatar

Cli Anything Ccswitch

  • 94 installs
  • 46.6k repo stars
  • Updated August 3, 2026
  • hkuds/cli-anything

Manage AI coding tool configurations (Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes) from the terminal via a CLI harness over CC Switch's database.

About

A Click-based CLI harness for CC Switch that manages AI coding-tool configuration from the terminal against its local database. A developer uses it to inspect and switch AI coding tool configs without the desktop app.

  • Reads the active CC Switch database at ~/.cc-switch/cc-switch.db
  • Built with the CLI-Anything harness methodology

Cli Anything Ccswitch by the numbers

  • 94 all-time installs (skills.sh)
  • +14 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #251 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-ccswitch

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs94
repo stars46.6k
Last updatedAugust 3, 2026
Repositoryhkuds/cli-anything

What it does

Manage AI coding tool configurations (Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes) from the terminal via a CLI harness over CC Switch's database.

Files

SKILL.mdMarkdownGitHub ↗

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

GroupDescription
statusShow a quick database overview
providersManage AI provider configurations (list, get, set-current)
proxyManage the local HTTP proxy server (status, config)
mcpManage MCP (Model Context Protocol) servers (list, enable)
skillsManage installed skills (list, repos)
usageView API usage and cost statistics (stats, logs)
settingsView and manage CC Switch settings (list, get, set)
sessionsBrowse 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.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.