Communitygithub.com

cli-anything-ccswitch

CC Switch의 CLI 인터페이스 — 터미널에서 AI 코딩 도구 구성을 관리합니다.

cli-anything-ccswitch란 무엇인가요?

이 스킬은 CC Switch 데스크톱 앱을 위한 CLI 래퍼(harnes)로, Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes 등 여러 AI 코딩 도구의 구성을 터미널에서 직접 관리할 수 있게 해줍니다. Python 3.10+ 환경에서 Click 라이브러리와 CLI-Anything 방법론을 기반으로 구축되었으며, pip로 간단히 설치 가능합니다. status, providers, proxy, mcp, skills, usage, settings, sessions 등 8개의 명령 그룹을 제공하여 데이터베이스 상태 확인, 공급자 전환, 프록시 설정, MCP 서버 관리, 사용량 통계 조회 등을 지원합니다. JSON 출력 모드를 지원하여 AI 에이전트가 프로그램적으로 결과를 파싱하기 쉽고, 민감한 값은 마스킹 처리되며, 모든 읽기 작업은 안전하게 SQLite 데이터베이스에서 직접 수행됩니다.

지원 대상✓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 하네스 — AI 코딩 도구(Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes) 구성을 관리하는 데스크톱 앱입니다. Click 및 CLI-Anything 방법론을 기반으로 구축되었습니다.

사전 요구 사항

  • Python 3.10+
  • ~/.cc-switch/cc-switch.db에 활성 데이터베이스가 있는 CC Switch 설치

설치

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

>-

관련 스킬