Claude Skill

zacdcook/openclaw-billing-proxy

OpenClaw计费代理是一个JavaScript工具,将OpenClaw API请求通过Claude Code订阅计费路由,避免额外使用费用。通过无缝集成节省成本。

概览

Stars514
Forks139
语言JavaScript
最后更新2026-04-10
最近同步2026-07-03
前往 GitHub

仓库信息

拥有者zacdcook
仓库openclaw-billing-proxy
完整名称zacdcook/openclaw-billing-proxy
Repo ID1,202,250,612

安装这个 Skill

npm install -g @anthropic-ai/claude-code

Registry 信息

类型openclaw_skill
质量分75/100
验证状态readme_parsed
最近验证2026-06-10
平台
ClaudeOpenClaw
能力
browserterminal
识别文件
README.mddocker-compose.yml
配置键
ANTHROPIC_BASE_URLOAUTH_TOKEN
安装方式
  • npm install -g @anthropic-ai/claude-code
  • git clone https://github.com/zacdcook/openclaw-billing-proxy

项目简介

一个轻量级的JavaScript代理工具,将OpenClaw API请求通过Claude Code订阅计费路由,帮助用户利用已有的Claude Code订阅避免额外使用费用。

英文描述

Route OpenClaw API requests through Claude Code subscription billing instead of Extra Usage

要点

  • 将OpenClaw API请求通过Claude Code订阅计费路由
  • 消除OpenClaw API调用的额外使用费用
  • 轻量级JavaScript实现,易于部署
  • 与现有Claude Code订阅无缝集成
  • 简单的代理设置,重定向API流量

使用场景

  • 使用OpenClaw API并希望降低成本的开发者
  • 拥有Claude Code订阅并希望优化计费的团队
  • 在项目中集成OpenClaw API而无需产生额外费用
  • 为Claude Code订阅者提供经济高效的API路由
  • 简化OpenClaw API用户的计费管理

README 摘要

# OpenClaw Subscription Billing Proxy Route your OpenClaw API requests through your Claude Max/Pro subscription instead of Extra Usage billing. ## What This Does After Anthropic revoked subscription billing for third-party tools (April 4, 2026), OpenClaw requests are billed to Extra Usage. This proxy sits between OpenClaw and the Anthropic API, injecting Claude Code's billing identifier so requests use your existing subscription. **Zero cost increase. Full OpenClaw functionality. No code changes to OpenClaw.** ## How It Works The proxy performs 7-layer bidirectional request/response processing to defeat Anthropic's multi-layer detection: **Outbound (request to API):** 1. **Billing Header** -- Injects an 84-character Claude Code billing identifier into the system prompt 2. **Token Swap** -- Replaces OpenClaw's auth token with your Claude Code OAuth token 3. **String Sanitization** -- Replaces 30 trigger phrases (OpenClaw, sessions_*, HEARTBEAT, etc.) 4. **Tool Name Bypass** -- Renames all 29 OpenClaw tool names to PascalCase Claude Code convention (e.g., `exec` -> `Bash`, `lcm_grep` -> `ContextGrep`) throughout the entire body 5. **System Template Bypass** -- Strips ~28K of structured config sections and replaces with a ~0.5K natural prose paraphrase 6. **Tool Description Stripping** -- Removes tool descriptions to reduce fingerprint signal 7. **Property Renaming** -- Renames OC-specific schema properties (e.g., `session_id` -> `thread_id`) **Inbound (response to OpenClaw):** 8. **Full Reverse Mapping** -- Restores ALL original tool names, property names, file paths, and identifiers in both SSE streaming chunks and JSON responses This ensures Anthropic sees what looks like a Claude Code session while OpenClaw sees its original tool names, paths, and identifiers.

话题

暂无话题

探索更多

数据来自 GitHub,同步时间:2026-07-03