proxy-local-ai-subscriptions

proxy-local-ai-subscriptions is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 126 tokens per session (3,108 once invoked), scanned B, original, MIT.

A guide for exposing your local Codex, ChatGPT Codex, or Claude Code subscription through a protected local OpenAI-compatible endpoint, then connecting it to NextClaw as a custom provider.

In plain words
What is it for?
Use it to install and configure CLIProxyAPI, sign in with OAuth, run it as a managed local service, and verify real conversations through NextClaw.
Why use it?
It keeps the proxy limited to the current computer and user, checks authentication and service persistence, and prevents unsafe public sharing or quota bypassing.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/peiiii/nextclaw/proxy-local-ai-subscriptions
Any agent
npx skills add Peiiii/nextclaw --skill proxy-local-ai-subscriptions
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for proxy-local-ai-subscriptions

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/proxy-local-ai-subscriptions.svg)](https://agentmods.dev/skills/peiiii/nextclaw/proxy-local-ai-subscriptions)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/proxy-local-ai-subscriptions"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/proxy-local-ai-subscriptions.svg" alt="Measured on agentmods" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,108 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00126 $0.03108
Opus 5 $0.00063 $0.01554
Sonnet 5 $0.00025 $0.00622
Haiku 4.5 $0.00013 $0.00311

Measured 2d ago against content hash 2571773fa4fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade B, and why

proxy-local-ai-subscriptions scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/cliproxy-service.mjs, scripts/cliproxy.mjs, scripts/local-subscription-proxy.utils.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo -u <service-user> -H node scripts/cliproxy.mjs write-config \
skills/proxy-local-ai-subscriptions/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Proxy Local AI Subscriptions

把本机订阅接成受保护的 OpenAI 兼容端点,并在用户明确同意后接入 NextClaw。代理运行时固定使用 router-for-me/CLIProxyAPI;本 skill 只负责接入、校验和故障诊断,不复制代理实现。

安全边界

  • 只绑定 127.0.0.1,不支持公网、局域网、容器跨主机或反向隧道暴露。
  • 只供当前用户本人使用。若用户要求共享账号、转售、规避订阅限制或绕过配额,停止并建议使用官方 API。
  • OAuth token 只保存在 CLIProxyAPI 的 auth 目录;NextClaw 只保存代理生成的本地 API key。
  • 不在命令行参数、聊天回复或日志里展示 API key。所有 bundled scripts 通过 mode 0600 的 key 文件交换密钥。
  • 当前审计与真实验收基线是 CLIProxyAPI v7.2.90check 只自动接受 7.2.x;其他版本必须重新审计官方配置和登录合同后,才可用 --allow-unaudited-version 继续。
  • Marketplace 安装只复制 skill 文件,不代表代理已经安装或登录。必须完成下面的真实验证后才能宣告可用。
  • CLIProxyAPI 必须由 macOS Homebrew services 或 Linux systemd 独立托管。nohup、shell 后台 &、NextClaw 工具进程或一次端口可达都只能用于诊断,不能作为完成状态。

工作流

1. 先做只读检查

确认操作系统、cliproxyapinextclaw 和当前服务状态。不要先改配置或重启服务。

macOS 首选官方 Homebrew formula:

brew info cliproxyapi --json=v2

若缺失,说明将安装第三方 MIT 工具及其用途,得到用户同意后执行:

brew install cliproxyapi

Linux 必须使用 CLIProxyAPI 官方发布物或官方安装说明,并把真实二进制路径显式传给 bundled scripts;服务必须使用第 4 步生成的独立 systemd unit。Windows 尚无持久服务合同,不得在 Windows 上继续到 provider 写入或宣告完成。

2. 生成 localhost-only 配置

从本 skill 目录运行:

node scripts/cliproxy.mjs write-config \
  --config "$(brew --prefix)/etc/cliproxyapi.conf" \
  --auth-dir "$HOME/.cli-proxy-api" \
  --api-key-file "$HOME/.cli-proxy-api/nextclaw-api-key"

Linux 把配置、API key 与 OAuth auth 目录放在将要运行服务的普通用户 home 内,并以该用户执行配置生成;不要让 root 创建 mode 0600 文件后再让普通用户服务读取。例如:

sudo -u <service-user> -H node scripts/cliproxy.mjs write-config \
  --config <service-home>/.cli-proxy-api/cliproxyapi.conf \
  --auth-dir <service-home>/.cli-proxy-api \
  --api-key-file <service-home>/.cli-proxy-api/nextclaw-api-key

<service-user><service-home> 必须来自机器上的真实账户信息,不得猜测;配置、OAuth 和 systemd unit 始终复用这一组值。

脚本会生成本地 API key、把 key 与配置设为 0600、关闭管理 API/控制面板,并把 factory template 自动备份后替换。若配置属于用户已有环境,脚本会拒绝覆盖;先解释差异并取得明确同意,才可加 --force。不要手写 YAML,也不要绕过备份保护。

若已存在运行中的 CLIProxyAPI,修改或重启前先告知会短暂中断该代理。不要擅自复用另一个实例的端口、auth 目录或 API key。

Read the full file on GitHub · 221 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 221 lines · 126 tokens per session scan B 2571773fa4fe

Subscribe to this mod's changes

proxy-local-ai-subscriptions is a skill published in the GitHub repository Peiiii/nextclaw (254 stars, last pushed yesterday), licensed MIT. It adds 126 tokens to every session and 3,108 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deepseek-helper

DeepSeek API 助手 - 编程辅助、模型选择、API调用指南、定价信息.

dongsheng123132/u-claw · 25 tokens

opik-optimizer

Optimize LLM prompts, tools, and agents in Opik using standardized optimizer workflows (prompt optimization, tool optimization, and parameter tuning), dataset/metric wiring, and result interpretation.

vincentkoc/dotskills · 41 tokens

prism

Consultant for NotebookLM steering prompt design. Optimizes Audio/Video/Slide/Infographic output quality through source preparation, prompt engineering, and Custom Goals persona design.

seaworld008/Commonly-used-high-value-skills · 37 tokens

prompt-optimizer

Transform vague prompts into precise, well-structured specifications using EARS (Easy Approach to Requirements Syntax) methodology. This skill should be used when users provide loose requirements, ambiguous feature descriptions, or need to enhance prompts for AI-generated code, products, or documents. Triggers include…

seaworld008/Commonly-used-high-value-skills · 88 tokens

openai-docs

Use when the user asks how to build with OpenAI products or APIs and needs current official documentation with citations, including Codex, Responses API, Chat Completions, Apps SDK, Agents SDK, Realtime, model capabilities, limits, or migrations; prioritize an available official OpenAI documentation connector and…

seaworld008/Commonly-used-high-value-skills · 74 tokens

building-agent-systems

AI agent and LLM system engineering reference covering single-agent dev (ReAct, tool calling, plan-execute), multi-agent coordination (swarm, role decomposition, file locking), LLM security (prompt injection, jailbreak defense, output filtering), RAG architecture (chunking, hybrid retrieval, rerank), and prompt…

telagod/code-abyss · 110 tokens