CLIProxy NewAPI Metering Stack Agent Skill

Deploys and configures a NewAPI metering, billing, and token management layer over existing CLIProxyAPI upstream instances.

Context cost
4.8k tokensestimated from the bundle, loaded when it triggers
Bundle
12 files · 43.1 kB7 scripts among them — read before you run
Licence
MITthe author’s own terms
Last change
—no release on file
Servers it uses
Noneruns standalone

What it does

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

What this skill changes about the agent has not been set out here as a list. Its SKILL.md, shown below, says it in the author’s own words.

devops
Filed under

Cloud & DevOps

The skill itself

A skill is instructions the model reads, so you can see what you are getting: below is the start of its SKILL.md. The front matter loads with every session, the body loads when the skill triggers, and the whole file comes with the install.

SKILL.md10.2 kB · preview
--- name: cliproxy-newapi-stack allowed-tools: Bash, Read, Write, Edit metadata: argument-hint: '[ssh-目标,例如 root@1.2.3.4]' ---
9# CLIProxyAPI + NewAPI Metering Stack
10
11在用户已有并已验证的 **CLIProxyAPI** upstream 前增加 **NewAPI**
12(calciumion/new-api) 计费、限流和多用户 token 层。本 Skill 不安装裸
13CLIProxyAPI,也不调用其他部署 Skill 补齐这个前置条件。
14
15所有"完成"结论必须基于**本会话**命令输出(W-16)。价格和额度变更后必须真发一次请求并查
16logs.quota 与本次请求的 token 数和目标价格相符。
17
18## Operating Contract
19
20- Direct actions: 只读检查、配置备份和本地 dry-run 可直接执行。
21- Escalate before: 安装容器、修改既有 upstream、重启服务、改防火墙或写生产额度前必须取得本次任务的明确授权。
22- Evidence-backed pushback: 密钥只从环境变量或密码管理器读取;要求明文落盘或公网暴露原始端口时,展示具体风险并改用 tunnel/TLS。
23- Feedback loop: 每次变更后重跑 upstream、NewAPI 和精确计费验证;任一步骤无法取得真实状态时停止并报告,不用默认值伪造成功。
24
25---
26
27## 0. 前置确认(必问)
This is a preview of SKILL.md. Download or install the skill to get the whole thing.
In the file
SKILL.md754 words
Files12
LicenceMIT
Why you can read it

Nothing in a skill executes. The client loads the text and the model follows it, so a skill can be audited the way a runbook is — by reading it.

What it costs in context

Skills are not billed by the call. They are paid for in context: every token the instructions occupy is a token your code, your diff and your conversation cannot use. Here is what this one takes and when it takes it.

≈110
always loaded
The name and description, so the model knows the skill exists and when to reach for it.
4,640
on trigger
The instruction body and 11 supporting files, read only when the skill fires.
2.4%
of a 200k window
Ten skills this size would take about 24% of the window before you open a file.
050k100k150k200k context window

4.8k tokens, estimated from the bundle at four bytes to the token, held for the rest of the session once it triggers. Heavy. Teams tend to install this one per project rather than globally, and load it only when the job comes up.

Servers bill, skills cost

A server charges by the month. A skill charges once per session, in context, and then keeps charging it for as long as the session lives.

Before and after

The same question, put to the same model twice: once as it comes, and once with these instructions loaded.

No worked example has been published for this skill yet.

The procedure it runs

The procedure has not been set out here step by step. It is in the body of its SKILL.md: the start of it is shown above, and the whole file comes with the install.

Prose, not code

These steps are written for a model to follow, not executed by a runtime. It can still be told to skip one, and it will say so when it does.

Servers it uses

None. This skill calls no MCP servers at all.

Everything it needs is in the instructions, so it works in a project with nothing connected — the model reads the file and changes how it works with what it can already reach.

It asks the agent to write files, using whatever file access your client already has. Whether it reaches the network is not declared.

What it asks for
Writes filesyes
Network accessnot declared

Read from the allowed-tools line of this skill’s own SKILL.md. It also asks for Bash, which could do either, so what is not named there is not ruled out. A skill grants no permissions of its own — it can only ask for tools your client already has.

What it will not do

Every skill is narrow, and the useful ones say where they stop. These are the jobs this one is the wrong tool for.

What this skill is not for has not been published here. Nothing is implied by that: it is a section the author has not filled in.

What is in the bundle

12 files, 43.1 kB on disk. Mostly text — the instructions the model reads — with 7 scripts in it that your client would run only if the instructions tell it to.

  • SKILL.md10.2 kB
  • agents/openai.yaml0.2 kB
  • references/multi-account.md2.7 kB
  • references/newapi-pricing.md2.9 kB
  • references/troubleshooting.md3.0 kB
  • scripts/add_codex_account.sh2.9 kB
  • scripts/deploy_newapi.sh1.9 kB
  • scripts/set_pricing.py5.9 kB
  • scripts/test_security_validation.sh3.1 kB
  • scripts/topup.sh1.9 kB
  • scripts/verify_stack.sh5.0 kB
  • scripts/lib/validation.sh3.4 kB
What is not in it

A skill installs nothing and depends on nothing: it is a folder your client reads. This one carries 7 scripts beside the text, so the bundle is 12 files you can review in full before installing. The MIT licence covers the templates and examples as well as the instructions.

Install

Installing copies the bundle into your project. Nothing runs at install time — the files sit on disk until the model reads them.

# CLIProxy NewAPI Metering Stack · 4.8k tokens when loaded · macOS, Linux mkdir -p .claude/skills && t=$(mktemp -d) && curl -fsSL -o "$t/bundle.tar.gz" https://mcprush.com/api/skills/cliproxy-newapi-metering-stack/bundle.tar.gz && tar -xzf "$t/bundle.tar.gz" -C "$t" && [ -d "$t/cliproxy-newapi-metering-stack" ] && { [ ! -e .claude/skills/cliproxy-newapi-metering-stack ] || { mv .claude/skills/cliproxy-newapi-metering-stack "$t/.previous" && echo "Previous copy moved to $t/.previous"; }; } && mv "$t/cliproxy-newapi-metering-stack" .claude/skills/ && echo "Installed .claude/skills/cliproxy-newapi-metering-stack"
On Windows, or any OS with Node 20+
npx mcprush@latest skill add majiayu000/cliproxy-newapi-metering-stack

Windows PowerShell says 'running scripts is disabled on this system'? Run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once, or type npx.cmd instead of npx (codex.cmd, gemini.cmd, grok.cmd likewise). PowerShell 7 needs neither. Writes to .claude/skills/cliproxy-newapi-metering-stack/ in the current project. For every project instead, run mkdir -p ~/.claude/skills && t=$(mktemp -d) && curl -fsSL -o "$t/bundle.tar.gz" https://mcprush.com/api/skills/cliproxy-newapi-metering-stack/bundle.tar.gz && tar -xzf "$t/bundle.tar.gz" -C "$t" && [ -d "$t/cliproxy-newapi-metering-stack" ] && { [ ! -e ~/.claude/skills/cliproxy-newapi-metering-stack ] || { mv ~/.claude/skills/cliproxy-newapi-metering-stack "$t/.previous" && echo "Previous copy moved to $t/.previous"; }; } && mv "$t/cliproxy-newapi-metering-stack" ~/.claude/skills/ && echo "Installed ~/.claude/skills/cliproxy-newapi-metering-stack" (macOS, Linux) — or add --global to the npx line. The curl line replaces .claude/skills/cliproxy-newapi-metering-stack/ only after the download succeeds, so files left there by another skill of the same name, or by an older release, do not mix in. A copy already there is moved aside, not deleted, and the line prints where. It appears as cliproxy-newapi-stack in Gemini CLI, Codex, Copilot and Grok (its own name); Claude Code lists it by the folder name, cliproxy-newapi-metering-stack.

Which clients pick it up on their own

A skill is a folder of text. Most of these read a skills folder and pick it up without being told; the rest take the same folder another way — an upload in the app, a parameter on an API call — and then choose it by its description just the same.

Claude Code.claude/skills/
Claude DesktopCustomize › Skills
ChatGPTSkills › Create › Upload
Cursor.cursor/skills/
VS Code.github/skills/
Codex CLI.agents/skills/
Gemini CLI.gemini/skills/
Grok Build.grok/skills/
Microsoft CopilotSkills › Upload a skill
PerplexityComputer › Skills › Upload a skill
DeepSeek Harness.dsh/skills/
Zed.agents/skills/
Devin Desktop.devin/skills/
Windsurf (legacy).windsurf/skills/
OpenAI Agents SDKInstructions or sandbox Skills
HTTP / APIa request parameter
This release
Versionnot versioned
Publishedno release date on file
PriceFree
Referencemajiayu000/cliproxy-newapi-metering-stack

Versions

Its author publishes no version number, so there is nothing here to pin to: what you install is the folder as it stands today. Instructions change more often than APIs do — a skill can be rewritten entirely without anything it depends on moving.

Pinning

Nothing to pin to: this skill carries no version number of its own. What you install is what the folder holds on the day you install it.

Reviews

—no reviews yet

Nobody has reviewed this skill yet. The rating is the mean of the reviews written here, so there is none until somebody writes the first.

Sign in to review it

A review is tied to an account so it can be answered, edited and taken down by the person who wrote it.

Sign in
Who can post

Anybody with an account, one review each. It carries the version that was current when you wrote it, and the publisher may reply once.

Publisher
Servers2
Claim this skill