360 Secure SkillHub
360 安全技能中心

CLIProxy FREE API

该 Skill 提供 CLIProxyAPI 的部署与配置流程,包括服务启动、dashboard 暴露、OAuth 提供商接入、API 端点与密钥生成,以及 OpenClaw 等 OpenAI 兼容客户端的联调和 smoke test 验证。强调按环境检查、最小暴露和逐步验证。

ayder21
ayder21
热度 55.78
最近更新 2026-05-11 17:35:58
分类:开发依赖:代码执行 / 第三方 API应用场景:API 集成 / DevOps / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cliproxy-openclaw
Metadata
name
cliproxy-openclaw
description
Deploy and configure CLIProxyAPI, expose its dashboard safely, connect OAuth providers like Claude Code, Gemini, Codex, Qwen, and iFlow, generate a reusable API endpoint and API key, and integrate it with OpenClaw or other OpenAI-compatible tools. Use when the user wants one API layer from subscription-based CLI or OAuth accounts, multi-account routing, or CLIProxy setup on a VPS or local machine.
metadata
{"openclaw":{"os":["linux","darwin"]}}

CLIProxy + OpenClaw

Use this skill when the user wants to:

  • install or deploy CLIProxyAPI
  • expose the CLIProxy dashboard or management UI
  • connect OAuth-based CLI subscriptions like Claude Code, Gemini, Codex, Qwen, or iFlow
  • generate a reusable API endpoint and API key
  • use CLIProxy with OpenClaw or another OpenAI-compatible client

Outcome

The job is complete only when all of these are true:

  1. CLIProxyAPI is installed and running
  2. the intended dashboard or management URL is reachable
  3. the user has added one or more OAuth-backed providers or accounts
  4. a reusable API endpoint and API key are available
  5. OpenClaw or the target client is configured to use CLIProxy
  6. a smoke test succeeds against a real model

Default workflow

  1. Determine the target mode:

    • local only
    • VPS or private LAN
    • public remote dashboard access
  2. Inspect the environment before changing anything:

    • OS and package/runtime availability
    • whether Docker, systemd, nginx, Caddy, or another reverse proxy already exists
    • whether OpenClaw is already installed and how it is configured
    • firewall state and whether public exposure is actually desired
  3. Install and start CLIProxyAPI.

    • Prefer a stable service deployment over an ad-hoc shell session.
    • Prefer systemd when available.
    • After install, verify the process is actually listening.
  4. Expose access only as needed.

    • If the user wants remote access, prefer reverse proxy plus minimal port exposure.
    • Do not open management surfaces wider than necessary.
    • State clearly what URL and what ports will become reachable.
  5. Guide provider onboarding.

    • Tell the user how to open the dashboard.
    • Have them add OAuth providers or accounts.
    • Confirm that models become visible and usable.
  6. Capture integration details.

    • base URL
    • API key or token
    • model names
    • any special headers if the deployment requires them
  7. Connect the result to OpenClaw.

    • Use the most direct compatible provider path available in OpenClaw.
    • If exact manual values are needed, provide them explicitly.
  8. Run a smoke test.

    • list models if available
    • send a minimal request
    • verify the selected model returns a real response

Read references only when needed

  • For install and service layout: references/install.md
  • For dashboard exposure, reverse proxy, or ports: references/dashboard.md
  • For adding OAuth providers and accounts: references/providers.md
  • For connecting CLIProxy to OpenClaw: references/openclaw-integration.md
  • For failures like 401, 403, 404, 429, 502, model-not-found, or streaming mismatches: references/troubleshooting.md

Operating rules

  • Prefer fewer checkpointed steps over long blind command chains.
  • Verify actual state after each major step before moving on.
  • Treat API keys, OAuth tokens, session cookies, and dashboard credentials as sensitive.
  • Do not assume public exposure is desired. If unclear, ask.
  • The goal is not to "install the repo"; the goal is to produce one working API layer that OpenClaw or another client can really use.
  • If the user wants this published on ClawHub, keep the operational guidance concise in SKILL.md and move detail into references.