Agent skill

Cliproxy Newapi Stack

by majiayu000 in majiayu000/spellbook

在已经过独立验证的 CLIProxyAPI upstream 之上部署 NewAPI 计费层,把 Codex/Claude/Gemini/Qwen 等订阅账号包装成可计费的 OpenAI 兼容 API。本 Skill 不负责新建裸 CLIProxyAPI;负责 NewAPI Docker 部署、容器到宿主桥接、模型计费倍率、参数化额度修正、多账号 OAuth…

MITAuto-check: warningsAI & LLM Engineering

Install Cliproxy Newapi Stack

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add majiayu000/spellbook --skill cliproxy-newapi-stack -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install majiayu000/spellbook cliproxy-newapi-stack --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cliproxy-newapi-stack .claude/skills/cliproxy-newapi-stack && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cliproxy-newapi-stack
GitHub stars
286
Token cost
~1.7k tokens
SKILL.md length
439 words
Files
12 (incl. scripts, references)
Skills in repo
96
Repo updated
First seen
Licence
MIT

At a glance

在已经过独立验证的 CLIProxyAPI upstream 之上部署 NewAPI 计费层,把 Codex/Claude/Gemini/Qwen 等订阅账号包装成可计费的 OpenAI 兼容 API。本 Skill 不负责新建裸 CLIProxyAPI;负责 NewAPI Docker 部署、容器到宿主桥接、模型计费倍率、参数化额度修正、多账号 OAuth…

  • Works in 7 steps: 前置确认(必问) → 验证现有 CLIProxyAPI upstream → 部署 NewAPI 容器 → …
  • Tasks that involve LLM API integration
  • SKILL.md covers Operating Contract, 0. 前置确认(必问), Phase 1 — 验证现有 CLIProxyAPI… and Phase 2 — 部署 NewAPI 容器, plus 7 more sections
  • Runs Shell and Python scripts from its folder; calls ssh and go; needs SSH_KEY and BASE_API_KEY

What it does

Cliproxy Newapi Stack is an agent skill from majiayu000/spellbook. 在已经过独立验证的 CLIProxyAPI upstream 之上部署 NewAPI 计费层,把 Codex/Claude/Gemini/Qwen 等订阅账号包装成可计费的 OpenAI 兼容 API。本 Skill 不负责新建裸 CLIProxyAPI;负责 NewAPI Docker 部署、容器到宿主桥接、模型计费倍率、参数化额度修正、多账号 OAuth 凭据热加载和双路径验证。当用户说“给现有 cliproxy 加 NewAPI”“配置 NewAPI 渠道接已运行的 cliproxy”“NewAPI 价格不对”“给现有部署加账号”“172.17.0.1 容器网络”或“408 冷却放大故障”时触发。

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/multi-account.md` and `references/newapi-pricing.md`).

It sits in AI & LLM Engineering, covering LLM API integration, OAuth and OpenID Connect and Containers. It works with OpenAI, Qwen and Docker. The repository describes itself as: Cross-runtime skills for Claude Code, Codex, and multi-agent workflows. The licence is MIT.

When your agent uses it

  • Tasks that involve LLM API integration
  • Tasks that involve OAuth and OpenID Connect
  • Tasks that involve Containers

Example prompts

  • “给现有 cliproxy 加 NewAPI”
  • “配置 NewAPI 渠道接已运行的 cliproxy”
  • “NewAPI 价格不对”
  • “/cliproxy-newapi-stack”

Requirements

  • Python 3
  • A Bash shell
  • Docker
  • A credential in SSH_KEY
  • A credential in BASE_API_KEY
  • Pre-approved tools (allowed-tools): Bash, Read, Write, Edit

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. 前置确认(必问)
  2. 验证现有 CLIProxyAPI upstream
  3. 部署 NewAPI 容器
  4. 渠道 + Token
  5. 写价格 + 充额度
  6. 客户端环境变量
  7. 加新账号(OpenAI/Anthropic/etc)

What it can do on your machine

Read from SKILL.md and the folder at commit 414b597. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 7 files in scripts/ (Shell and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • ssh
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use ssh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SSH_KEY
    • BASE_API_KEY
    • CLIPROXY_KEY
    • NEWAPI_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cliproxy Newapi Stack loads about 1.7k tokens when it runs, and up to ~3.8k if it reads all its reference files. Until then it costs about 82 tokens; SKILL.md has 439 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:67
    SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 PORT=8200 \
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:115
    SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:131
    SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:172
    SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:191
    SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Edit

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from majiayu000/spellbook at commit 414b597, republished under its MIT licence (© majiayu000). 439 words, ~1,676 tokens.

Download SKILL.mdSave it as .claude/skills/cliproxy-newapi-stack/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
cliproxy-newapi-stack
description
在已经过独立验证的 CLIProxyAPI upstream 之上部署 NewAPI 计费层,把 Codex/Claude/Gemini/Qwen 等订阅账号包装成可计费的 OpenAI 兼容 API。本 Skill 不负责新建裸 CLIProxyAPI;负责 NewAPI Docker 部署、容器到宿主桥接、模型计费倍率、参数化额度修正、多账号 OAuth 凭据热加载和双路径验证。当用户说“给现有 cliproxy 加 NewAPI”“配置 NewAPI 渠道接已运行的 cliproxy”“NewAPI 价格不对”“给现有部署加账号”“172.17.0.1 容器网络”或“408 冷却放大故障”时触发。
allowed-tools
Bash, Read, Write, Edit
metadata.argument-hint
[ssh-目标,例如 root@1.2.3.4]

CLIProxyAPI + NewAPI Metering Stack

在用户已有并已验证的 CLIProxyAPI upstream 前增加 NewAPI (calciumion/new-api) 计费、限流和多用户 token 层。本 Skill 不安装裸 CLIProxyAPI,也不调用其他部署 Skill 补齐这个前置条件。

所有"完成"结论必须基于本会话命令输出(W-16)。价格和额度变更后必须真发一次请求并查 logs.quota 与本次请求的 token 数和目标价格相符。

Operating Contract

  • Direct actions: 只读检查、配置备份和本地 dry-run 可直接执行。
  • Escalate before: 安装容器、修改既有 upstream、重启服务、改防火墙或写生产额度前必须取得本次任务的明确授权。
  • Evidence-backed pushback: 密钥只从环境变量或密码管理器读取;要求明文落盘或公网暴露原始端口时,展示具体风险并改用 tunnel/TLS。
  • Feedback loop: 每次变更后重跑 upstream、NewAPI 和精确计费验证;任一步骤无法取得真实状态时停止并报告,不用默认值伪造成功。

0. 前置确认(必问)

  • SSH 目标:root@HOST 是否能免密
  • 端口分配:CLIPROXY_PORT(默认 8317)、NEWAPI_PORT(默认 8200)
  • upstream 证据:CLIProxyAPI 已在目标主机运行,当前会话能通过用户批准的 SSH tunnel 或 loopback 请求验证健康、模型列表和认证;证据不足就停止,不猜测、 不自动安装裸 upstream
  • 登录账号供应商:codex / claude / qwen / iflow / gemini
  • 价格输入格式:每个虚拟模型给我 input / cached / output 三个 USD per 1M 数字
  • 客户端机器:要在哪些机器上落 BASE_URL 环境变量

安全默认:本地 OAuth + scp 同步;NewAPI 仅绑定 VPS loopback,通过 SSH tunnel 完成首次注册。公网访问必须走已配置 TLS 的反向代理,不能直接开放 NewAPI 原始 HTTP 端口。


Phase 1 — 验证现有 CLIProxyAPI upstream

先记录现有服务的进程、监听地址、健康响应、模型列表和配置备份位置。任何一项 无法验证都停止。只有用户在当前消息批准修改这个既有 upstream 时,才执行以下 两个补丁:

  1. 加稳定性开关到 /root/CLIProxyAPI/config.yaml:

    yaml
    disable-cooling: true

    原因见 references/troubleshooting.md "CLIProxyAPI cooldown 原理"。 若漏改,30 并发 5KB payload 会出现混合 ~50% 503。

  2. 不要把 CLIProxyAPI 端口暴露到公网(与裸部署不同):

    • 先用 ip -4 addr show docker0 确认 Docker bridge 地址,再把 host 绑定到该地址(常见值为 172.17.0.1)
    • 删除已有的公网 ufw allow <CLIPROXY_PORT>/tcp;管理访问统一走 SSH tunnel,不保留公网 admin 后门

Phase 2 — 部署 NewAPI 容器

bash
IMAGE='calciumion/new-api@sha256:<VERIFIED_DIGEST>' \
SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 PORT=8200 \
  scripts/deploy_newapi.sh

脚本只绑定远端 127.0.0.1:8200。首次注册前保持防火墙关闭该端口,建立 SSH tunnel:

bash
ssh -N -L 8200:127.0.0.1:8200 -i <KEY> <SSH_TARGET>

仅访问本机 http://127.0.0.1:8200 完成 root 账号注册,并把密码保存到密码 管理器。注册和登录验证成功后,再配置带 TLS 的 Caddy/Nginx 反向代理;先 验证 HTTPS、认证和来源限制,再按需开放 443/tcp。禁止开放 <NEWAPI_PORT>。


Phase 3 — 渠道 + Token

3a. 创建渠道(CLIProxyAPI as upstream)

NewAPI 后台 → "渠道" → 新建 → OpenAI 类型:

  • base_url:http://172.17.0.1:<CLIPROXY_PORT> ⚠️ 不能写 127.0.0.1 — 容器里的 127.0.0.1 是容器自己。详见 references/troubleshooting.md "容器网络速记"。
  • 密钥:CLIProxyAPI 的 cpa_xxx key
  • 模型:以逗号分隔填 CLIProxyAPI 暴露的虚拟模型名,例如: gpt-5.4,gpt-5.3-codex,gpt-5.3-codex-spark,gpt-5.4-mini,gpt-5.2
  • 测试按钮应当 200 OK;失败先查 references/troubleshooting.md。
3b. 创建 Token(客户端用)

NewAPI 后台 → "令牌" → 新建:

  • 名称:client-default 之类标识
  • 额度:先放 unlimited 或一个大数(实际计费由 user.quota 控制)
  • 可用模型:勾上你给客户端开放的模型
  • 复制生成的 sk-xxx(这是客户端的 BASE_API_KEY)

Phase 4 — 写价格 + 充额度

4a. 写价格

用 scripts/set_pricing.py(基于实测 USD/1M 自动算出三个倍率):

bash
SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  scripts/set_pricing.py \
    --model gpt-5.4       --input 2.5  --cached 0.25  --output 15 \
    --model gpt-5.3-codex --input 1.75 --cached 0.175 --output 14

脚本会:合并写入 options 表的 ModelRatio / CacheRatio / CompletionRatio,重启容器。

⚠️ 倍率语义见 references/newapi-pricing.md —— CacheRatio / CompletionRatio 是相对 输入价的倍数,不是绝对单价。ModelRatio 在不同 fork 里可能除以 2,第一次配置务必发请求 看 logs.quota 实际值匹配预期。

4b. 充额度

NewAPI 在线充值通常未配。需要紧急修正额度时,可使用参数化 SQLite helper:

bash
SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  scripts/topup.sh <user_id> <quota>
# 例:1 1000000000  → 1B quota ≈ USD 2000 (默认 QuotaPerUnit=500000)
4c. 配置在线充值(可选)

如果要让用户自助充值,NewAPI 后台 → 系统 → 支付:

  • Stripe / 易支付 / 自定义 → 填 TopUpLink 等字段
  • 不配在线充值时,管理员可使用经验证的 scripts/topup.sh;输入必须为整数,脚本会参数化 SQL 并验证恰好更新一行

Show full SKILL.md (169 more words)Show less

Phase 5 — 客户端环境变量

只把非敏感配置写入客户端 shell 配置:

bash
export BASE_URL="https://<NEWAPI_DOMAIN>/v1"
export BASE_MODEL="<虚拟模型名>"       # 如 gpt-5.4

API key 必须存进 Keychain 或其他密码管理器,在当前进程启动前读取;禁止写入 ~/.zshrc、聊天、脚本或命令行参数。例如 macOS 可使用:

bash
key="$(security find-generic-password -s newapi-client -a client-default -w)"
export BASE_API_KEY="$key"

跨多台机器同步时(W-14 文件归属):单台单台手动 SSH 改各自的 rc 文件,避免并行写覆盖。


Phase 6 — 加新账号(OpenAI/Anthropic/etc)

不需要重启服务,CLIProxyAPI 有 file watcher。

最简单:

bash
PROVIDER=codex \
  SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  CLIPROXY_LOCAL=<本地 CLIProxyAPI 仓库路径> \
  scripts/add_codex_account.sh

脚本流程:

  1. 本地启 go run ./cmd/server -<provider>-login -config config.yaml
  2. 浏览器用新账号登录(先在浏览器登出旧账号或用无痕窗口 — 否则会复用旧 session 把旧凭据 覆盖回去)
  3. 自动 diff ~/.cli-proxy-api/<provider>-*.json,把新文件 scp 到 VPS
  4. tail VPS 日志确认 auth file changed (CREATE)

详见 references/multi-account.md(含订阅条件、轮询语义、删除账号、验证方法)。


验证(Phase 4/5/6 之后必跑)

bash
SSH_TARGET=root@<HOST> SSH_KEY=~/.ssh/id_ed25519 \
  CLIPROXY_URL=http://127.0.0.1:<TUNNELED_CLIPROXY_PORT> \
  NEWAPI_URL=https://<NEWAPI_DOMAIN> \
  CLIPROXY_KEY="$(security find-generic-password -s cliproxy-admin -w)" \
  NEWAPI_TOKEN=$(security find-generic-password -s newapi-client -a client-default -w) \
  MODEL=<虚拟模型> INPUT_USD_PER_M=<输入价> OUTPUT_USD_PER_M=<输出价> \
  QUOTA_PER_UNIT=500000 \
  scripts/verify_stack.sh

通过判定:

  • 直连 CLIProxyAPI HTTP 200
  • 经 NewAPI HTTP 200
  • logs 中对应 request_id、模型和 token 数匹配本次请求
  • 实际 quota 与目标输入/输出价格计算结果的误差不超过 5%(且至少允许 1 quota 的整数舍入)

任一不满足都不得声称"部署完成"。


资源索引

文件用途
scripts/deploy_newapi.shNewAPI 容器一键部署 + 健康自检
scripts/set_pricing.py用 USD/1M 三参数自动写 NewAPI ratios
scripts/topup.sh直接 SQLite 改 users.quota
scripts/verify_stack.sh双路径 + 计费日志验证
scripts/add_codex_account.shOAuth 登录 + 同步凭据 + watcher 校验
agents/openai.yaml需要独立复核高风险部署或计费方案时的 agent 配置
references/newapi-pricing.mdModelRatio / CacheRatio / CompletionRatio / QuotaPerUnit 完整语义 + 计算示例
references/troubleshooting.md容器网络、cooldown、PUT 不生效、UFW 等踩坑表
references/multi-account.md多账号轮询语义 + 加号 / 删号 / 订阅条件

不要做的事

  • ❌ NewAPI 渠道 base_url 写 http://127.0.0.1:<port>(容器内自指)
  • ❌ 把 CacheRatio 当绝对单价(实际是相对输入的倍数)
  • ❌ 价格只走 /api/option/ PUT 不验证(已知该接口可能静默失败)
  • ❌ 远端 OAuth 隧道折腾(5 分钟窗口 + 隧道配合,已踩过坑,统一用本地登录 + scp)
  • ❌ 把 CLIProxyAPI 公网端口的 cpa_ key 和 NewAPI 的 sk- token 共享给同一类客户端
  • ❌ 跨会话声称"价格生效"——必须本会话发请求 + 看 logs.quota
  • ❌ 在没有 disable-cooling: true 的情况下做高并发压测

© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (scripts, references) in skills/cliproxy-newapi-stack of majiayu000/spellbook.

  • SKILL.md
  • agents/openai.yaml
  • references/multi-account.md
  • references/newapi-pricing.md
  • references/troubleshooting.md
  • scripts/add_codex_account.sh
  • scripts/deploy_newapi.sh
  • scripts/lib/validation.sh
  • scripts/set_pricing.py
  • scripts/test_security_validation.sh
  • scripts/topup.sh
  • scripts/verify_stack.sh

Open the folder on GitHubat commit 414b597

Compare with similar skills

Cliproxy Newapi Stack next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cliproxy Newapi Stack compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cliproxy Newapi Stack this skillmajiayu000/spellbook286—~1.7kAutomated safety check: WarnMIT
Vllmmajiayu000/claude-skill-registry6661 repos~1.9kAutomated safety check: PassApache-2.0
CloudbaseTencentCloudBase/CloudBase-AI-Toolkit1.1k1 repos~4.7kAutomated safety check: PassMIT
Vllm Deploy Dockervllm-project/vllm-skills103—~2.5kAutomated safety check: NotesApache-2.0
Awesome Free LLM APIsLeoYeAI/openclaw-master-skills2.2k—~4.1kAutomated safety check: PassMIT
Weave Router Local Testingweave-os/router5.6k—~3.1kAutomated safety check: NotesApache-2.0

Similar skills

  • Vllm

    majiayu000/claude-skill-registry

    vLLM is a high-throughput inference and serving engine for large language models that exposes an OpenAI-compatible HTTP API and a Python batch API.

    666 GitHub starsUsed in 1 repo~1.9k tokens
    AI & LLM EngineeringAuto-check passed
  • Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses when you develop, design, build, deploy, debug, migrate, or troubleshoot CloudBase (腾讯云开发, 云开发, TCB, 微信云开发) projects — Web, 微信小程序, 小程序, uni-app, mobile (iOS, Android…

    1.1k GitHub starsUsed in 1 repo~4.7k tokens
    Backend & APIsAuto-check passed
  • Vllm Deploy Docker

    vllm-project/vllm-skills

    Deploy vLLM using Docker (pre-built images or build-from-source) with NVIDIA GPU support and run the OpenAI-compatible server.

    103 GitHub stars~2.5k tokensUpdated 6 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Awesome Free LLM APIs

    LeoYeAI/openclaw-master-skills

    Reference guide for permanent free-tier LLM APIs with rate limits, model lists, and OpenAI-compatible integration patterns.

    2.2k GitHub stars~4.1k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Stands up the Weave model router in Docker Compose and drives it with claude -p against a real or mocked upstream to reproduce and verify routing and streaming behavior.

    5.6k GitHub stars~3.1k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Dingo Verify

    MigoXLab/dingo

    A skill your agent uses when the user wants to fact-check an article or verify factual claims in a document.

    757 GitHub stars~833 tokensUpdated 9 days ago
    AI & LLM EngineeringAuto-check passed

More from majiayu000/spellbook

All 96 skills in this repo
  • Skill Ecosystem Doctor

    majiayu000/spellbook

    Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.

    286 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • AGENTS.md Scaffold

    majiayu000/spellbook

    Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.

    286 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Product Demo Builder

    majiayu000/spellbook

    Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.

    286 GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Flowguard Task Guard

    majiayu000/spellbook

    Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.

    286 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • npm Supply Chain Check

    majiayu000/spellbook

    Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.

    286 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Product Manager Toolkit

    majiayu000/spellbook

    Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.

    286 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Questions about Cliproxy Newapi Stack

What does Cliproxy Newapi Stack do?

在已经过独立验证的 CLIProxyAPI upstream 之上部署 NewAPI 计费层,把 Codex/Claude/Gemini/Qwen 等订阅账号包装成可计费的 OpenAI 兼容 API。本 Skill 不负责新建裸 CLIProxyAPI;负责 NewAPI Docker 部署、容器到宿主桥接、模型计费倍率、参数化额度修正、多账号 OAuth…. Cliproxy Newapi Stack is an agent skill from majiayu000/spellbook.

When should I use Cliproxy Newapi Stack?

Cliproxy Newapi Stack fits situations like: tasks that involve LLM API integration; tasks that involve OAuth and OpenID Connect; tasks that involve Containers.

How do I install Cliproxy Newapi Stack in Claude Code?

Run `npx skills add majiayu000/spellbook --skill cliproxy-newapi-stack -a claude-code`. Or copy the skill folder (skills/cliproxy-newapi-stack in majiayu000/spellbook) into .claude/skills/cliproxy-newapi-stack in your project. Claude Code loads it when a task matches its description.

How do I install Cliproxy Newapi Stack in Codex?

Run `npx skills add majiayu000/spellbook --skill cliproxy-newapi-stack -a codex`. Or copy the skill folder (skills/cliproxy-newapi-stack in majiayu000/spellbook) into .agents/skills/cliproxy-newapi-stack in your project. Codex loads it when a task matches its description.

Can I use Cliproxy Newapi Stack in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/spellbook --skill cliproxy-newapi-stack -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cliproxy-newapi-stack, .gemini/skills/cliproxy-newapi-stack, .github/skills/cliproxy-newapi-stack and .opencode/skills/cliproxy-newapi-stack in your project.

What does Cliproxy Newapi Stack need to run?

Going by SKILL.md and its folder, Cliproxy Newapi Stack needs a shell and Python for the scripts in its folder, the command-line tools its instructions call (ssh and go) and credentials named SSH_KEY, BASE_API_KEY, CLIPROXY_KEY and NEWAPI_TOKEN. Our summary lists: Python 3; A Bash shell; Docker; A credential in SSH_KEY; A credential in BASE_API_KEY. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit.

Does Cliproxy Newapi Stack access the network?

SKILL.md contains no URLs. Its commands use ssh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cliproxy Newapi Stack safe to install?

Our automated static check of SKILL.md flagged 5 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Cliproxy Newapi Stack use?

Cliproxy Newapi Stack is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cliproxy Newapi Stack use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.1k tokens, read only when the agent opens those files.

What are the alternatives to Cliproxy Newapi Stack?

Skills that share tags, products or a category with Cliproxy Newapi Stack: Vllm (majiayu000/claude-skill-registry, 666 stars), Cloudbase (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars), Vllm Deploy Docker (vllm-project/vllm-skills, 103 stars) and Awesome Free LLM APIs (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cliproxy Newapi Stack?

majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 286 GitHub stars. The repository holds 96 skills in this directory. The repository was last updated on October 6, 2026.

Source: majiayu000/spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.