本文へスキップ
Skillpedia
エージェント58k · #3187

cli-anything-ccswitch

できること

このスキルは、CC SwitchがClaude CodeやCodexなどで管理するAIコーディングツールの設定を確認し、管理します。プロバイダーやツールを切り替える開発者向けです。

使う場面

  • ✓コーディングツールが現在どのAIのプロバイダーを使うよう設定されているか見たいとき。
  • ✓コーディングツールの有効なプロバイダーを切り替えたいとき。
  • ✓コーディングツールのAPIの使用量や費用の統計を確認したいとき。

スキルのリンク

https://github.com/HKUDS/CLI-Anything/blob/main/cc-switch/agent-harness/cli_anything/ccswitch/skills/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUDS/CLI-Anything/blob/main/cc-switch/agent-harness/cli_anything/ccswitch/skills/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のコーディングツールがどのAIのプロバイダーを使っているか見せて、直近3日間の費用も教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、コンピューター上のCC Switchのデータベースを読み、そのコマンドラインツールを実行して設定を一覧にしたり変えたりします。使用量のログを表示したり、過去のセッションを見たりもできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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 — 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.

よくある質問

CC Switchのインストールが必要ですか?

はい。CC Switchがインストールされていて、コンピューター上でアクティブなデータベースがある必要があります。

どのツールを扱いますか?

Claude Code、Codex、Gemini CLI、OpenCode、OpenClaw、Hermesを扱います。

設定を変えられますか?

はい。現在のプロバイダーを設定したり、MCPサーバーを有効にしたりできます。

詳細

作者による元の説明

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

repo: HKUDS/CLI-Anything

人気

GitHubのスター
58k
ランキング
#3187
ライセンス
Apache-2.0
更新日
2026/9/21

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル