본문으로 건너뛰기
Skillpedia
에이전트58k · #3187

cli-anything-ccswitch

하는 일

이 스킬은 에이전트가 CC Switch가 관리하는 AI 코딩 도구, 예를 들어 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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/cc-switch/agent-harness/cli_anything/ccswitch/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 코딩 도구가 어떤 AI 제공자를 쓰고 있는지, 최근 사흘 동안 비용이 얼마였는지 보여 주세요.”

매주 새 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬