claude-worker-proxy

作者 glidea

Cloudflare Worker; Claude Code; Proxy; Easy to deploy; Claude Code Router; claude-code-router; ccr

274
Stars
130
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/glidea/claude-worker-proxy

快速入门

使用 claude-worker-proxy 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md


33f1d0d49cce103272da3821f66a2820

本项目由 code0.ai 赞助 —— 一站接入 gpt-image / Gemini / Claude 等主流 AI 模型,稳定不掉线,按量计费即充即用,专为 AI 创作者打造。注册后联系客服可免费领取测试额度,支持企业对接及开票。

4ca65f573c3d7b3dec0cd829d86262f6

感谢 Claude API 赞助本项目!Claude API 是专注 Claude 模型的官方渠道 API 服务商,基于 Anthropic 官方 Key 与 AWS Bedrock 官方渠道,提供稳定的 Claude Code 与 Agent 应用接入体验,支持 Claude 全系列模型,保留 Tool Use、长上下文等官方能力。服务非逆向、非降智,适合 Claude Code 深度用户、Agent 工程师与企业技术团队使用。通过专属链接注册后联系客服,可领取免费测试额度,并支持开票和团队对接。

把各家(Gemini,OpenAI)的模型 API 转换成 Claude 格式提供服务

特性

  • 🚀 一键部署到 Cloudflare Workers
  • 🔄 兼容 Claude Code。配合 One-Balance 低成本,0 费用使用 Claude Code
  • 📡 支持流式和非流式响应
  • 🛠️ 支持工具调用
  • 🎯 零配置,开箱即用

快速部署

git clone https://github.com/glidea/claude-worker-proxy
cd claude-worker-proxy
npm install
wrangler login # 如果尚未安装:npm i -g wrangler@latest
npm run deploycf

使用方法

# 例子:以 Claude 格式请求 Gemini 后端
curl -X POST https://claude-worker-proxy.xxxx.workers.dev/gemini/https://generativelanguage.googleapis.com/v1beta/v1/messages \
  -H "x-api-key: YOUR_GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-2.5-flash",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

参数说明

  • URL 格式:{worker_url}/{type}/{provider_url_with_version}/v1/messages
  • type: 目标厂商类型,目前支持 gemini, openai, openai-responses
  • provider_url_with_version: 目标厂商 API 基础地址
  • x-api-key: 目标厂商的 API Key

OpenAI Chat Completions 示例:

curl -X POST https://claude.llmapp.org/openai/https://api.openai.com/v1/v1/messages \
  -H "x-api-key: YOUR_OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4.1-mini",
    "max_tokens": 128,
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

OpenAI Responses API 示例:

curl -X POST https://claude.llmapp.org/openai-responses/https://api.openai.com/v1/v1/messages \
  -H "x-api-key: YOUR_OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4.1-mini",
    "max_tokens": 128,
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

在 Claude Code 中使用

# 编辑 ~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://claude-worker-proxy.xxxx.workers.dev/gemini/https://xxx.com/v1beta", # https://xxx.com/v1beta: 注意带版本号;需要支持函数调用!
    "ANTHROPIC_CUSTOM_HEADERS": "x-api-key: YOUR_KEY",
    "ANTHROPIC_MODEL": "gemini-2.5-pro", # 大模型,按需修改
    "ANTHROPIC_SMALL_FAST_MODEL": "gemini-2.5-flash", # 小模型。也许你并不需要 ccr 那么强大的 route
    "API_TIMEOUT_MS": "600000"
  }
}

claude

常见问题

What is claude-worker-proxy?

claude-worker-proxy is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by glidea. Cloudflare Worker; Claude Code; Proxy; Easy to deploy; Claude Code Router; claude-code-router; ccr. It has 274 GitHub stars.

Is claude-worker-proxy safe to use?

claude-worker-proxy returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install claude-worker-proxy?

Clone the repository with "git clone https://github.com/glidea/claude-worker-proxy" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-worker-proxy written in?

claude-worker-proxy is primarily written in TypeScript. It is open-source under glidea on GitHub, so you can review or fork the full source.

Are there alternatives to claude-worker-proxy?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-worker-proxy against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情