Communitygithub.com

cli-anything-ccswitch

CC Switch の CLI インターフェース — ターミナルから AI コーディングツールの設定を管理します。

cli-anything-ccswitch とは?

このスキルは、CC Switch というデスクトップアプリケーションの CLI ラッパーです。CC Switch は、Claude Code、Codex、Gemini CLI、OpenCode、OpenClaw、Hermes といった複数の AI コーディングツールの設定を一元管理するためのツールです。本 CLI は Click と CLI-Anything 手法に基づいて構築されており、ターミナルからプロバイダ設定の切り替え、ローカル HTTP プロキシの管理、MCP (Model Context Protocol) サーバーの有効化、スキル管理、API 使用量やコスト統計の表示、AI 会話セッションの閲覧、CC Switch の各種設定変更を行うことができます。機械可読な JSON 出力(`--json` フラグ)をサポートしており、AI エージェントからプログラム的に利用するのに適しています。機密情報は出力時にマスクされ、エラー発生時は適切な終了コードを返すため、エージェントはシェル上で安全かつ確実に連携できます。

対応✓Claude Code✓Codex CLI~Cursor✓Gemini CLI✓OpenCode
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-ccswitch

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

CC Switch CLI

CC Switch の CLI ハーネスです。CC Switch は、AI コーディングツール(Claude Code、Codex、Gemini CLI、OpenCode、OpenClaw、Hermes)の設定を管理するデスクトップアプリケーションです。Click と CLI-Anything 手法を使用して構築されています。

前提条件

  • Python 3.10+
  • CC Switch がインストールされており、~/.cc-switch/cc-switch.db にアクティブなデータベースがあること

インストール

pip install -e .

インストール後、cli-anything-ccswitch コマンドが使用可能になります。

コマンドグループ

グループ説明
statusデータベースの概要を表示
providersAI プロバイダ設定の管理(一覧、取得、カレント設定)
proxyローカル HTTP プロキシサーバーの管理(ステータス、設定)
mcpMCP(Model Context Protocol)サーバーの管理(一覧、有効化)
skillsインストール済みスキルの管理(一覧、リポジトリ)
usageAPI 使用量とコスト統計の表示(統計、ログ)
settingsCC Switch 設定の表示と管理(一覧、取得、設定)
sessionsAI 会話セッションの参照と検索(一覧)

グローバルオプション

  • --json — 機械可読な JSON 形式で出力(エージェント利用推奨)
  • --db PATH — データベースのパスを上書き

エージェント向けガイダンス

JSON 出力

プログラムでの利用には常に --json を使用してください。サブコマンドの前に配置します:

cli-anything-ccswitch --json providers list
cli-anything-ccswitch --json usage stats --days 30
cli-anything-ccswitch --json providers get <id> --app claude

機密情報

API トークン、キー、シークレットはすべての出力でマスクされます。プロバイダ詳細の settings_config フィールドにはマスクされた値(例:sk-bc089...5cbb)が表示されます。

終了コード

  • 0 — 成功
  • 1 — エラー(例:リソースが見つからない、無効なアプリタイプ)

アプリタイプ

有効なアプリタイプ:claude、codex、gemini、opencode、openclaw、hermes。

使用例

全プロバイダを一覧表示

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

アクティブプロバイダの切り替え

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

プロキシステータスの確認

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

使用量統計の表示

cli-anything-ccswitch usage stats --days 7
cli-anything-ccswitch --json usage stats --days 30 --app claude
cli-anything-ccswitch usage logs --limit 10

スキルの一覧表示

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

MCP サーバー

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

設定

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

セッション

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

ステータス概要

cli-anything-ccswitch status
cli-anything-ccswitch
cli-anything-ccswitch --json

エラーハンドリング

リソースが見つからない場合、CLI はエラーメッセージを stderr に出力し、コード 1 で終了します。エージェントは出力を解析する前に終了コードを確認する必要があります。

データベース

CLI は稼働中の CC Switch SQLite データベースから読み取ります。すべての読み取り操作は安全で、データベースを変更しません。書き込み操作(providers set-current、proxy config、mcp enable、settings set)はデータベースを直接変更します。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

関連スキル