cliproxy-manager

Unified management skill for CLIProxyAPI, enabling AI to dynamically update service configurations (API Keys, model aliases, proxy rules) and monitor usage statistics.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cliproxy-manager" with this command: npx skills add imhansiy/my-skills/imhansiy-my-skills-cliproxy-manager

CLIProxyAPI Manager Skill

This skill grants the AI instance the ability to manage the CLIProxyAPI service remotely or locally. With this skill, the AI can automate configuration processes, modify model routing, and monitor service health.

⚠️ Prerequisites (MANDATORY)

Before executing any API operations, the AI must:

  1. Confirm Service Status: Check if the CLIProxyAPI process is running (default port 8317).
  2. Obtain Management Key: A valid key must be provided for authentication.
    • Check the MANAGEMENT_PASSWORD environment variable.
    • Search for remote-management.secret-key in config.yaml.
    • If the key is hashed (bcrypt), the user must provide the plaintext key or use a temporary key set via the command line (--password).
  3. Verify Connectivity: Attempt to call GET /v0/management/config for an authentication test.

Key Workflows

1. Configuration Management

  • View Current Config: Call GET /config to understand current routing and model providers.
  • Update Model Aliases or API Keys: Use PATCH on the corresponding endpoint (e.g., /claude-api-key or /openai-compatibility).
  • Synchronous Updates: All API changes are automatically written back to the disk file; no manual YAML editing is required.

2. Status & Statistics

  • Usage Stats: Use GET /usage to view quotas and request counts for different models or API keys.
  • Debug Monitoring: Use GET /debug to retrieve backend connection status.

3. API Reference

EndpointMethodCommon Use Case
/configGETFetch the final global configuration
/api-keysPUT/PATCHManage CLIProxyAPI's own access keys
/gemini-api-keyPATCHRotate or add Gemini keys
/claude-api-keyPATCHRotate or add Claude keys
/openai-compatibilityPATCHConfigure new OpenAI-compatible providers (e.g., DeepSeek, OpenRouter)
/usageGETView real-time model usage reports

Scripts

A helper Python script cliproxy_api.py is provided in the <SKILL_PATH>/scripts/ directory to encapsulate authentication logic:

# Example: Fetch all configurations
python <SKILL_PATH>/scripts/cliproxy_api.py --key YOUR_KEY get config

# Example: Update a specific API Key in the config
python <SKILL_PATH>/scripts/cliproxy_api.py --key YOUR_KEY patch api-keys --data '{"old":"k1", "new":"k2"}'

Rules & Best Practices

  • Security First: Never log the full management key in any output or logs.
  • Transactional Consistency: Always perform GET /config to verify current state before applying updates.
  • Backup Recommendation: Before a full configuration overwrite (PUT), it is recommended to back up the current GET /config result to /tmp/.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

localtunnel-auto-expose

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

codex-claude-loop

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

extracting-code-structure

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-changelog

No summary provided by upstream source.

Repository SourceNeeds Review