diff --git a/Dockerfile b/Dockerfile index ce061c6206..3e10c4f9f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,14 +24,6 @@ COPY --from=builder ./app/CLIProxyAPI /CLIProxyAPI/CLIProxyAPI COPY config.example.yaml /CLIProxyAPI/config.example.yaml -# Bake the management UI bundle so a freshly-pulled image serves the right -# UI on first request, before the auto-updater's first 3-hour tick. The build -# context is expected to carry a fresh static/management.html (see the -# README's release flow). -COPY static/management.html /CLIProxyAPI/static/management.html - -ENV MANAGEMENT_STATIC_PATH=/CLIProxyAPI/static - WORKDIR /CLIProxyAPI EXPOSE 8317 diff --git a/README.md b/README.md index e38ca92c53..c9184567f5 100644 --- a/README.md +++ b/README.md @@ -10,44 +10,9 @@ It now also supports OpenAI Codex (GPT models) and Claude Code via OAuth. So you can use local or multi-account CLI access with OpenAI(include Responses)/Gemini/Claude-compatible clients and SDKs. -## Sponsor - -[![z.ai](https://assets.router-for.me/english-5-0.jpg)](https://z.ai/subscribe?ic=8JVLJQFSKB) - -This project is sponsored by Z.ai, supporting us with their GLM CODING PLAN. - -GLM CODING PLAN is a subscription service designed for AI coding, starting at just $10/month. It provides access to their flagship GLM-4.7 & (GLM-5 Only Available for Pro Users)model across 10+ popular AI coding tools (Claude Code, Cline, Roo Code, etc.), offering developers top-tier, fast, and stable coding experiences. - -Get 10% OFF GLM CODING PLAN:https://z.ai/subscribe?ic=8JVLJQFSKB - ---- - - - - - - - - - - - - - - - - - - - - - - - - -
PackyCodeThanks to PackyCode for sponsoring this project! PackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more. PackyCode provides special discounts for our software users: register using this link and enter the "cliproxyapi" promo code during recharge to get 10% off.
AICodeMirrorThanks to AICodeMirror for sponsoring this project! AICodeMirror provides official high-stability relay services for Claude Code / Codex / Gemini CLI, with enterprise-grade concurrency, fast invoicing, and 24/7 dedicated technical support. Claude Code / Codex / Gemini official channels at 38% / 2% / 9% of original price, with extra discounts on top-ups! AICodeMirror offers special benefits for CLIProxyAPI users: register via this link to enjoy 20% off your first top-up, and enterprise customers can get up to 25% off!
BmoPlusHuge thanks to BmoPlus for sponsoring this project! BmoPlus is a highly reliable AI account provider built strictly for heavy AI users and developers. They offer rock-solid, ready-to-use accounts and official top-up services for ChatGPT Plus / ChatGPT Pro (Full Warranty) / Claude Pro / Super Grok / Gemini Pro. By registering and ordering through BmoPlus - Premium AI Accounts & Top-ups, users can unlock the mind-blowing rate of 10% of the official GPT subscription price (90% OFF)!
PoixeAIThanks to Poixe AI for sponsoring this project! Poixe AI provides reliable LLM API services. You can leverage the platform's API endpoints to seamlessly build AI-powered products. Additionally, you can become a vendor by providing AI API resources to the platform and earn revenue. Register through the exclusive CLIProxyAPI referral link and receive a bonus of $5 USD on your first top-up.
VisionCoderThanks to VisionCoder for supporting this project. VisionCoder Developer Platform is a reliable and efficient API relay service provider, offering access to mainstream AI models such as Claude Code, Codex, and Gemini. It helps developers and teams integrate AI capabilities more easily and improve productivity. -

-VisionCoder is also offering our users a limited-time Token Plan promotion: buy 1 month and get 1 month free.
+## Sponsorship + +This fork does not solicit or accept sponsorships. The original project ([router-for-me/CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI)) maintains a list of sponsors and partner offers — see the upstream README for the current list and any associated promo codes. ## Overview diff --git a/README_CN.md b/README_CN.md index ae4431fd7b..4d4071a973 100644 --- a/README_CN.md +++ b/README_CN.md @@ -10,45 +10,9 @@ 您可以使用本地或多账户的CLI方式,通过任何与 OpenAI(包括Responses)/Gemini/Claude 兼容的客户端和SDK进行访问。 -## 赞助商 - -[![bigmodel.cn](https://assets.router-for.me/chinese-5-0.jpg)](https://www.bigmodel.cn/claude-code?ic=RRVJPB5SII) - -本项目由 Z智谱 提供赞助, 他们通过 GLM CODING PLAN 对本项目提供技术支持。 - -GLM CODING PLAN 是专为AI编码打造的订阅套餐,每月最低仅需20元,即可在十余款主流AI编码工具如 Claude Code、Cline、Roo Code 中畅享智谱旗舰模型GLM-4.7(受限于算力,目前仅限Pro用户开放),为开发者提供顶尖的编码体验。 - -智谱AI为本产品提供了特别优惠,使用以下链接购买可以享受九折优惠:https://www.bigmodel.cn/claude-code?ic=RRVJPB5SII - ---- - - - - - - - - - - - - - - - - - - - - - - - - -
PackyCode感谢 PackyCode 对本项目的赞助!PackyCode 是一家可靠高效的 API 中转服务商,提供 Claude Code、Codex、Gemini 等多种服务的中转。PackyCode 为本软件用户提供了特别优惠:使用此链接注册,并在充值时输入 "cliproxyapi" 优惠码即可享受九折优惠。
AICodeMirror感谢 AICodeMirror 赞助了本项目!AICodeMirror 提供 Claude Code / Codex / Gemini CLI 官方高稳定中转服务,支持企业级高并发、极速开票、7×24 专属技术支持。 Claude Code / Codex / Gemini 官方渠道低至 3.8 / 0.2 / 0.9 折,充值更有折上折!AICodeMirror 为 CLIProxyAPI 的用户提供了特别福利,通过此链接注册的用户,可享受首充8折,企业客户最高可享 7.5 折!
BmoPlus感谢 BmoPlus 赞助了本项目!BmoPlus 是一家专为AI订阅重度用户打造的可靠 AI 账号代充服务商,提供稳定的 ChatGPT Plus / ChatGPT Pro(全程质保) / Claude Pro / Super Grok / Gemini Pro 的官方代充&成品账号。 通过BmoPlus AI成品号专卖/代充注册下单的用户,可享GPT 官网订阅一折 的震撼价格!
PoixeAI感谢 Poixe AI 对本项目的赞助!Poixe AI 提供可靠的 AI 模型接口服务,您可以使用平台提供的 LLM API 接口轻松构建 AI 产品,同时也可以成为供应商,为平台提供大模型资源以赚取收益。通过 CLIProxyAPI 专属链接注册,充值额外赠送 $5 美金
VisionCoder感谢 VisionCoder 对本项目的支持。VisionCoder 开发平台 是一个可靠高效的 API 中继服务提供商,提供 Claude Code、Codex、Gemini 等主流 AI 模型,帮助开发者和团队更轻松地集成 AI 功能,提升工作效率。 -

-VisionCoder 还为我们的用户提供 Token Plan 限时活动:购买 1 个月,赠送 1 个月。
+## 赞助说明 +本分叉不主动招募或接受赞助。原始项目([router-for-me/CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI))维护着完整的赞助商和合作方列表 — 当前的赞助商及优惠码请查阅上游 README。 ## 功能特性 diff --git a/README_JA.md b/README_JA.md index 324cf38e0b..5b3743d2c1 100644 --- a/README_JA.md +++ b/README_JA.md @@ -10,42 +10,9 @@ OAuth経由でOpenAI Codex(GPTモデル)およびClaude Codeもサポート ローカルまたはマルチアカウントのCLIアクセスを、OpenAI(Responses含む)/Gemini/Claude互換のクライアントやSDKで利用できます。 -## スポンサー - -[![z.ai](https://assets.router-for.me/english-5-0.jpg)](https://z.ai/subscribe?ic=8JVLJQFSKB) - -本プロジェクトはZ.aiにスポンサーされており、GLM CODING PLANの提供を受けています。 - -GLM CODING PLANはAIコーディング向けに設計されたサブスクリプションサービスで、月額わずか$10から利用可能です。フラッグシップのGLM-4.7および(GLM-5はProユーザーのみ利用可能)モデルを10以上の人気AIコーディングツール(Claude Code、Cline、Roo Codeなど)で利用でき、開発者にトップクラスの高速かつ安定したコーディング体験を提供します。 - -GLM CODING PLANを10%割引で取得:https://z.ai/subscribe?ic=8JVLJQFSKB - ---- - - - - - - - - - - - - - - - - - - - - - - - - -
PackyCodePackyCodeのスポンサーシップに感謝します!PackyCodeは信頼性が高く効率的なAPIリレーサービスプロバイダーで、Claude Code、Codex、Geminiなどのリレーサービスを提供しています。PackyCodeは当ソフトウェアのユーザーに特別割引を提供しています:こちらのリンクから登録し、チャージ時にプロモーションコード「cliproxyapi」を入力すると10%割引になります。
AICodeMirrorAICodeMirrorのスポンサーシップに感謝します!AICodeMirrorはClaude Code / Codex / Gemini CLI向けの公式高安定性リレーサービスを提供しており、エンタープライズグレードの同時接続、迅速な請求書発行、24時間365日の専任技術サポートを備えています。Claude Code / Codex / Geminiの公式チャネルが元の価格の38% / 2% / 9%で利用でき、チャージ時にはさらに割引があります!CLIProxyAPIユーザー向けの特別特典:こちらのリンクから登録すると、初回チャージが20%割引になり、エンタープライズのお客様は最大25%割引を受けられます!
BmoPlus本プロジェクトにご支援いただいた BmoPlus に感謝いたします!BmoPlusは、AIサブスクリプションのヘビーユーザー向けに特化した信頼性の高いAIアカウントサービスプロバイダーであり、安定した ChatGPT Plus / ChatGPT Pro (完全保証) / Claude Pro / Super Grok / Gemini Pro の公式代行チャージおよび即納アカウントを提供しています。こちらのBmoPlus AIアカウント専門店/代行チャージ経由でご登録・ご注文いただいたユーザー様は、GPTを 公式サイト価格の約1割(90% OFF) という驚異的な価格でご利用いただけます!
PoixeAIPoixe AIのスポンサーシップに感謝します!Poixe AIは信頼できるAIモデルAPIサービスを提供しており、プラットフォームが提供するLLM APIを使って簡単にAI製品を構築できます。また、サプライヤーとしてプラットフォームに大規模モデルのリソースを提供し、収益を得ることも可能です。CLIProxyAPIの専用リンクから登録すると、チャージ時に追加で$5が付与されます。
VisionCoderVisionCoderのご支援に感謝します!VisionCoder 開発プラットフォーム は、信頼性が高く効率的なAPIリレーサービスプロバイダーで、Claude Code、Codex、Geminiなどの主要AIモデルを提供し、開発者やチームがより簡単にAI機能を統合して生産性を向上できるよう支援します。さらに、VisionCoderはユーザー向けに Token Plan の期間限定キャンペーン(1か月購入で1か月分プレゼント)も提供しています。
+## スポンサーシップ + +本フォークはスポンサーシップの募集や受け入れを行っていません。元のプロジェクト([router-for-me/CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI))は包括的なスポンサーリストとパートナー特典を維持しています — 現在のスポンサーや関連するプロモーションコードについては上流の README をご参照ください。 ## 概要 diff --git a/assets/aicodemirror.png b/assets/aicodemirror.png deleted file mode 100644 index b4585bcf3a..0000000000 Binary files a/assets/aicodemirror.png and /dev/null differ diff --git a/assets/bmoplus.png b/assets/bmoplus.png deleted file mode 100644 index 27b8df41f0..0000000000 Binary files a/assets/bmoplus.png and /dev/null differ diff --git a/assets/lingtrue.png b/assets/lingtrue.png deleted file mode 100644 index 2ab1a40bd1..0000000000 Binary files a/assets/lingtrue.png and /dev/null differ diff --git a/assets/packycode.png b/assets/packycode.png deleted file mode 100644 index 4fc7eecc75..0000000000 Binary files a/assets/packycode.png and /dev/null differ diff --git a/assets/poixeai.png b/assets/poixeai.png deleted file mode 100644 index 6732d2a0ce..0000000000 Binary files a/assets/poixeai.png and /dev/null differ diff --git a/assets/visioncoder.png b/assets/visioncoder.png deleted file mode 100644 index 24b1760ce5..0000000000 Binary files a/assets/visioncoder.png and /dev/null differ diff --git a/internal/api/handlers/management/config_basic.go b/internal/api/handlers/management/config_basic.go index ba3c0174c9..04cdbf04ed 100644 --- a/internal/api/handlers/management/config_basic.go +++ b/internal/api/handlers/management/config_basic.go @@ -20,7 +20,11 @@ import ( ) const ( - latestReleaseURL = "https://api.github.com/repos/router-for-me/CLIProxyAPI/releases/latest" + // latestReleaseURL is the GitHub releases endpoint that backs the + // management UI's "check for update" affordance. The fork retargets it + // at its own release stream so the UI doesn't compare zmh-v0.1.0 against + // upstream's v6.x and tell users to "update to upstream". + latestReleaseURL = "https://api.github.com/repos/Z-M-Huang/CLIProxyAPI/releases/latest" latestReleaseUserAgent = "CLIProxyAPI" ) diff --git a/internal/managementasset/updater.go b/internal/managementasset/updater.go index 2df8e966a1..79f5f21c5f 100644 --- a/internal/managementasset/updater.go +++ b/internal/managementasset/updater.go @@ -31,8 +31,10 @@ const ( // (https://cpamc.router-for.me/) is intentionally absent — if the GitHub // release fetch fails the updater leaves whatever local asset already // exists in place; if no local asset exists, /management.html returns 404 - // until the next successful fetch. The Dockerfile bakes the bundle so - // fresh containers always have a usable local asset. + // until the next successful fetch. The server.go safety net at + // serveManagementControlPanel re-runs the fetch synchronously on first + // /management.html request when the local asset is missing, so a fresh + // container without a baked bundle still recovers on first hit. defaultManagementReleaseURL = "https://api.github.com/repos/Z-M-Huang/Cli-Proxy-API-Management-Center/releases/latest" managementAssetName = "management.html" httpUserAgent = "CLIProxyAPI-management-updater" diff --git a/internal/runtime/executor/helps/prompt_rules_openai.go b/internal/runtime/executor/helps/prompt_rules_openai.go index 0dfe72adac..1562afeff7 100644 --- a/internal/runtime/executor/helps/prompt_rules_openai.go +++ b/internal/runtime/executor/helps/prompt_rules_openai.go @@ -238,4 +238,3 @@ func openaiStripMessageContent(payload []byte, idx int, re *regexp.Regexp) []byt } return payload } -