Skip to main content

Build

CLI Anything Ccswitch

CLI-Anything

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

  • New
  • v1.0.0
  • Reviewed Aug 18
  • No reviews yet

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 instructions

Example 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

bash
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:

bash
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

bash
cli-anything-ccswitch providers list
cli-anything-ccswitch --json providers list --app claude

Switch active provider

bash
cli-anything-ccswitch providers set-current <provider-id> --app claude

Check proxy status

bash
cli-anything-ccswitch proxy status --app claude
cli-anything-ccswitch proxy config --app claude --set-port 8080

View usage stats

bash
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

bash
cli-anything-ccswitch skills list
cli-anything-ccswitch skills repos

MCP servers

bash
cli-anything-ccswitch mcp list
cli-anything-ccswitch mcp enable <server-id> --app claude --on

Settings

bash
cli-anything-ccswitch settings list
cli-anything-ccswitch settings get <key>
cli-anything-ccswitch settings set <key> <value>

Sessions

bash
cli-anything-ccswitch sessions list --app claude --limit 10

Status overview

bash
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
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

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.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/cli-anything-ccswitch)](https://skills-hub.ai/skills/cli-anything-ccswitch)
HTML
<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.