Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

31.0 KB
Raw Blame

Model Hub — Subscription-Reuse ToS / Billing / Ban-Risk Review (Spike S2)

Status: spike report v1 · 2026-07-23 · research-only, no code Blocks: defaults for subscription flows (impl plan §4 product gates), not the build Spec: docs/plans/model-hub.md (§2, §4.2, §8, §9, §10.2) Impl plan: docs/plans/model-hub-implementation.md (§1 S2, §4) All URLs accessed 2026-07-23 unless noted. Confidence tags: [VERIFIED] = primary vendor doc / primary artifact (official terms, the actual PR/issue); [DOC-IMPLIED] = reasoned inference from official docs; [ANECDOTAL] = community report / secondary blog.


0. TL;DR (one line per scenario)

Scenario Claude (Anthropic) ChatGPT (OpenAI)
(a) same-vendor, same-user, own agent via the Hub proxy Do-not-ship default-on. This is the exact pattern Anthropic blocks server-side and bans for. Compliant Claude-subscription path is Direct mode only. Experimental-flag + explicit ban-risk consent if offered at all. Consent-gated experimental. Currently works, "not officially supported," ToS-ambiguous, no crackdown yet.
(b) cross-client (sub consumed by a non-native client, e.g. OpenCode) Do-not-ship. Explicitly prohibited; server-blocked; OpenCode removed it under Anthropic legal demand. Experimental-flag only, consent-gated, ban-risk warning. Gray/unsanctioned (OpenClaw pattern).
(c) cross-vendor substitution Keep default-off experimental (spec §9 already). ToS/ban risk inherited from whichever subscription it draws on + capability-equivalence risk. Same.

The single most important finding: the product promise in spec §2 ("subscriptions consumed first, auto-failover through the hub") is in direct conflict with Anthropic's live ToS even for the default same-vendor same-user case (a), because the spec §7 credential model has the engine hold the subscription OAuth token and re-originate the request, which is precisely "routing requests through Pro/Max credentials" that Anthropic prohibits and now enforces. API-key sources carry no such gate and are the safe backbone.


1. Scope definitions (why the proxy, not just the vendor, decides the verdict)

The question is not only "which vendor" but "does a credential-holding proxy sit in the path." Three request shapes matter:

  • Direct (official binary, no proxy): the official claude / codex CLI talks straight to the vendor with its own OAuth token. This is "ordinary use of the native app."
  • Transparent passthrough (hypothetical): the official binary keeps its own OAuth and a local relay forwards bytes unchanged. Legally grayer than Direct; not what the current spec builds (see §4).
  • Credential-holding hub (what spec §7 builds): the engine holds the subscription OAuth token; backends receive only a local gateway token; the engine re-originates upstream calls with the subscription credential. This is the pattern vendors prohibit / enforce against.

Scenario mapping used throughout:

  • (a) Claude sub → Claude Code, or ChatGPT sub → Codex — the user's own native agent, on the user's own machine, through the Hub.
  • (b) a subscription consumed by a non-native client (Claude sub → OpenCode; ChatGPT sub → OpenCode / any non-Codex client).
  • (c) cross-vendor substitution ("Claude quota gone → serve GPT"), spec §9 default-off.

2. Anthropic (Claude Pro / Max) — [VERIFIED, high confidence]

2.1 The operative ToS language (primary, verbatim)

Anthropic's Claude Code "Legal and compliance" page states, under Authentication and credential use [VERIFIED, code.claude.com/docs/en/legal-and-compliance]:

"OAuth authentication is intended exclusively for purchasers of Claude Free, Pro, Max, Team, and Enterprise subscription plans and is designed to support ordinary use of Claude Code and other native Anthropic applications."

"Developers building products or services that interact with Claude's capabilities, including those using the Agent SDK, should use API key authentication … Anthropic does not permit third-party developers to offer Claude.ai login or to route requests through Free, Pro, or Max plan credentials on behalf of their users."

"Anthropic reserves the right to take measures to enforce these restrictions and may do so without prior notice."

The same page ties quota to individual use: "Advertised usage limits for Pro and Max plans assume ordinary, individual usage of Claude Code and the Agent SDK." Governing terms are the Consumer Terms of Service (Free/Pro/Max) and the Usage Policy. The Register reports the underlying "no third-party harness" clause (ToS §3.7) has existed since ~Feb 2024; February 2026 only made it explicit [VERIFIED-secondary, theregister.com].

2.2 Server-side enforcement (the decisive operational fact)

On 2026-01-09 Anthropic deployed a server-side check that rejects subscription-OAuth requests not originating from the official client, returning: "This credential is only authorized for use with Claude Code and cannot be used for other API requests." The check keys on Claude-Code client identity (e.g. the claude-code-20250219 beta header / native system prompt / telemetry). Tools that spoofed those headers (OpenCode, Cline, RooCode) broke overnight [ANECDOTAL/secondary but consistent across sources, mindstudio.ai; corroborated by ridakaddir.com].

Anthropic engineer Thariq Shihipar (quoted by The Register): "Third-party harnesses using Claude subscriptions … are prohibited by our Terms of Service," and they "generate unusual traffic patterns without any of the usual telemetry that the Claude Code harness provides" [VERIFIED-secondary, theregister.com].

Implication for the Hub proxy (case a-Claude). Two failure modes, both bad: (1) if the hub does not perfectly reproduce Claude Code's client fingerprint, the server check rejects it; (2) if it does spoof the fingerprint to pass, that is squarely the prohibited harness-spoofing behavior — and the telemetry/traffic gap can still flag the account. There is no configuration of a credential-holding proxy that is both functional and clearly compliant for Claude subscriptions. The only clean Claude-subscription path is Direct mode (official binary, direct connection) [DOC-IMPLIED, high confidence].

2.3 Quota / billing semantics

Dual-layer per plan: a 5-hour rolling window (starts on first message) and a weekly cap (fixed reset). Approx Pro ~45 msgs / 5h, Max 5x ~225, Max 20x ~900 (figures drift). Usage across claude.ai, Claude Code and Claude Desktop shares the same limit [ANECDOTAL/secondary, truefoundry.com, usecarly.com]. Billing behavior when proxied: requests that pass the fingerprint draw from the normal subscription windows; requests that fail are rejected (not silently re-billed as API) per the Jan-9 error string. Anthropic's sanctioned programmatic path is API keys (metered, per-token, on a separate Console account) — a consumer suspension does not affect Console API access [DOC-IMPLIED].


3. OpenAI (ChatGPT Plus / Pro) via Codex — [gray zone, medium confidence]

3.1 What OpenAI actually says

  • Official: signing into Codex with a ChatGPT account charges usage to the subscription; the ChatGPT Terms of Use / Privacy Policy apply; codex login uses a browser OAuth callback (default localhost:1455) with a device-code flow for headless use; token cached at ~/.codex/auth.json [VERIFIED, learn.chatgpt.com/docs/auth (redirect from developers.openai.com/codex/auth); help.openai.com].
  • The auth docs recommend API keys "for programmatic Codex CLI workflows, such as CI/CD jobs" and even acknowledge LLM proxies for API-key access (requires_openai_auth = true "useful when you access OpenAI models through an LLM proxy server") — but say nothing blessing routing the subscription credential through a third-party proxy [VERIFIED, learn.chatgpt.com/docs/auth].
  • OpenAI Terms of Use prohibit using the Services "automatically or programmatically" to extract data/output and "circumventing any rate limits" — the same latent clause that makes subscription-proxying ambiguous [VERIFIED, openai.com/policies/row-terms-of-use].
  • Asked directly whether a forked/modified Codex CLI using "Sign in with ChatGPT" is allowed, an OpenAI maintainer confirmed the Apache-2.0 code is free to fork but declined the subscription-ToS question ("I'm an engineer, not a lawyer"); the thread is marked Unanswered and the community notes "many developers … are waiting for clear guidance" [VERIFIED, github.com/openai/codex/discussions/8338].

3.2 Practical status

Third-party subscription proxying (the "OpenClaw" pattern: localhost proxy mimicking the Codex CLI system prompt so the ChatGPT subscription pays) currently works and is "not officially supported"; secondary write-ups explicitly note Anthropic already killed the Claude equivalent and Google made a similar Gemini-CLI change — i.e. precedent that vendors do eventually clamp down [ANECDOTAL/secondary, explainx.ai, lumadock.com]. No documented mass-suspension wave for OpenAI subscription-proxying was found (contrast with Anthropic). Third-party Codex OAuth 429s are reported but read as quota, not bans [ANECDOTAL, github.com/openai/openai-python#2951].

3.3 Quota / billing semantics

Since 2026-04-02 Codex meters against API-token-equivalent credits, not per-message; a 5-hour rolling window shared by local + cloud plus a weekly cap. Plus ≈15–110 msgs/5h (model-dependent bands), Pro 5x/20x multiply; Plus/Pro can buy top-up credits; API-key route skips both caps and bills per token [ANECDOTAL/secondary, morphllm.com/codex-pricing, help.openai.com codex-rate-card].

Net: OpenAI is softer than Anthropic today — no explicit prohibition, no enforcement wave — but the direction of travel (docs steer automation to API keys; vendor precedent) means this is a latent, not absent, risk. Treat as consent-gated, not default-on-silent.


4. The architectural crux vs spec §7

Spec §7 defines three credential rings: backends receive only the local gateway token; upstream subscription OAuth tokens are engine-held and injected upstream by the engine. That design is "a service routing requests through Pro/Max credentials on behalf of the user" — the prohibited pattern (§2.1) — regardless of it being the user's own machine and own credential. A narrower "transparent passthrough where the official client keeps its own OAuth and the hub adds nothing" would be legally grayer-but-arguable, yet it (i) contradicts §7, (ii) still shows the abnormal-telemetry signature Anthropic cites, and (iii) forfeits the hub's failover value for subscriptions anyway (you cannot fail a subscription request over to another source without the hub re-originating it). Conclusion: there is no design that delivers hub-mediated failover for a Claude subscription while staying clearly ToS-compliant. This is a product decision to escalate, not an implementation detail.

API-key sources are unaffected: both vendors explicitly bless API keys for programmatic/proxy use, so routing API-key sources through the Hub is fully compliant and should be the default-on backbone of Model Hub.


5. Community / practical ban-risk signal

  • [VERIFIED — primary artifacts] OpenCode PR #18186 "anthropic legal requests" removed the branded system prompt, the opencode-anthropic-auth plugin, the claude-code-20250219 beta header, and the Anthropic login hint — community reaction 4👍/40👎 [github.com/anomalyco/opencode/pull/18186]. This is hard evidence for the (b)-Claude do-not-ship verdict.
  • [VERIFIED — primary artifact] CLIProxyAPI issue #2211: a user running Claude Code creds through the proxy with an opencode client reported "Your account has been disabled after an automatic review of your recent activities," pointing at ToS + Usage Policy and a Trust & Safety appeal path [github.com/router-for-me/CLIProxyAPI#2211; further reports in discussion #2244].
  • [ANECDOTAL] Reported ban triggers: plan upgrades, payment-method changes, and unusual usage spikes triggering automated review (one case: OAuth + Max 5x→20x upgrade → disabled in ~20 min). "Usage limit reached" ≠ suspension; distinguish throttle from ban [autonomee.ai, knightli.com].
  • [ANECDOTAL] No comparable OpenAI subscription-proxying suspension wave was found; signal there is quota-429s, not disablement.

Summary: ban risk for Claude subscription proxying/cross-client is verified and demonstrated (account disables + legal takedowns). For OpenAI it is latent/anecdotal (works today, unsanctioned, no enforcement wave observed).


6. cn-region vendors (LOW priority, one paragraph) — [ANECDOTAL/secondary]

Zhipu (Z.AI) GLM Coding Plan and Moonshot Kimi Coding Plan sell flat-rate coding subscriptions (~US$18–30/mo entry) distinct from pay-as-you-go API keys, and both are moving to first-party OAuth device-flow onboarding. Critically, Zhipu's Coding-Plan keys are documented as usable only inside supported coding tools and cannot make standalone API calls — a tool-lock restriction that means routing a cn coding-plan credential through the Avibe Hub could violate their terms much like Anthropic's, and would need the same consent-gate rather than default-on. Treat cn subscription reuse as experimental/consent-gated pending per-vendor confirmation; cn API keys (pay-as-you-go) are unrestricted and fine for the Hub [ jia.je coding_plan, gsd-2#4642 (Kimi/GLM OAuth device-flow), aicoolies Kimi plan ].


7. Risk matrix

Recommendation legend: DEFAULT-ON / CONSENT-GATED (ship, but explicit one-time informed opt-in per source) / EXPERIMENTAL-FLAG (advanced, default-off, visible marking) / DO-NOT-SHIP.

# Scenario / source ToS posture Billing / quota behavior Ban risk Recommendation
a-Claude Claude sub → Claude Code via Hub Prohibited pattern (engine routes sub creds); server-blocked since 2026-01-09 [VERIFIED] Draws sub 5h+weekly windows iff fingerprint passes; else rejected High, demonstrated (disables) DO-NOT-SHIP default-on. Claude sub = Direct mode only. If ever in Hub → EXPERIMENTAL-FLAG + ban-risk consent
a-Claude(Direct) Claude sub → Claude Code, no proxy "Ordinary use of the native app" — allowed [VERIFIED] Normal sub windows Low DEFAULT-ON (this is the compliant subscription story)
a-OpenAI ChatGPT sub → Codex via Hub Unaddressed / ambiguous; automation steered to API keys [VERIFIED-doc] Sub 5h+weekly (credit-metered); works today Latent/anecdotal CONSENT-GATED, experimental-leaning; Direct/official codex login is the safe path
b-Claude Claude sub → OpenCode / non-native Explicitly prohibited; OpenCode removed under legal demand [VERIFIED] Server-blocked High, demonstrated DO-NOT-SHIP
b-OpenAI ChatGPT sub → OpenCode / non-Codex Ambiguous, unsanctioned ("OpenClaw pattern") [ANECDOTAL] Sub windows; works today Latent, higher than a-OpenAI EXPERIMENTAL-FLAG, consent-gated, warning
c Cross-vendor substitution No new per-vendor issue; inherits the drawn source's posture; + capability-equivalence risk (spec §4.2 warns thinking/cache/tool semantics differ) Inherited Inherited from source EXPERIMENTAL-FLAG default-off (spec §9 already)
ref API-key sources (any vendor) → Hub Sanctioned programmatic path (both vendors) [VERIFIED] Metered per-token, standard API limits None (ToS) DEFAULT-ON — the safe backbone

8. Recommended product posture (actionable)

  1. Ship API-key sources through the Hub default-on. This is compliant for every vendor and already gate-free per impl plan §4. Make it the primary, fully-featured path.
  2. Claude subscription = Direct mode only, and say so in the UI. Do not offer Claude-sub inside Hub-mediated failover by default. This means spec §2's "subscriptions consumed first + auto-failover through the hub" cannot be honored for Claude subscriptions — escalate this product tension to the owner. Option: for a Claude sub, run the official binary Direct and let API-key sources be the failover tier the Hub arbitrates.
  3. ChatGPT subscription in Hub = consent-gated experimental, off by default, with a one-time informed opt-in and a visible "unofficial / may stop working / small ban risk" marker.
  4. Cross-client (b) and cross-vendor (c) subscription reuse = experimental-flag, default-off, visible per-event marking (spec §9 already covers c; extend the same treatment to b).
  5. Use spec §4.2's allowed_origins reservation to hard-restrict which local clients a subscription credential may serve, so a Claude sub credential can never be silently used to serve OpenCode etc. — enforce the (a)/(b) boundary in code, not just copy.
  6. Never present subscription-via-Hub as "free extra quota." Frame honestly: it reuses quota the user already pays for, under the vendor's individual-use terms, at the user's own risk.

9. Consent copy points (for anything consent-gated: ChatGPT-sub-in-Hub, cross-client,

cross-vendor, cn-sub)

中文 (zh):

  • 该来源使用你本人订阅的登录凭据;厂商条款通常要求订阅仅供个人在官方客户端内使用,经由中枢代理转发属于非官方用法,可能违反其服务条款。
  • 存在账号被风控、限流或封禁的真实风险(已有 Claude 订阅经代理使用被自动封号的先例);是否启用由你自行决定并承担后果。
  • 追求最稳妥时,请对订阅使用直连模式(官方客户端直接连接),或改用 API Key 来源(厂商明确允许程序化/代理调用)。

English (en):

  • This source uses your own subscription login. Vendor terms generally intend a subscription for personal use inside the official client; routing it through the hub proxy is an unofficial use that may violate those terms.
  • There is a real risk of rate-limiting, review, or account suspension (Claude subscriptions used via proxies have been auto-disabled). Enabling this is your choice and at your own risk.
  • For the safest setup, use Direct mode for subscriptions (official client, direct connection), or add an API Key source instead — vendors explicitly permit programmatic / proxied use of API keys.

10. Citations (accessed 2026-07-23)

Primary — Anthropic / OpenAI official

Primary — artifacts (enforcement / ban)

Secondary — reporting / analysis

Quota semantics

cn-region


11. Confidence & caveats

  • High confidence: Anthropic's prohibition of subscription-credential routing by third-party services, its live server-side enforcement, and the demonstrated bans (primary docs + primary artifacts).
  • Medium confidence: OpenAI's posture. It is currently permissive-by-silence, not explicitly sanctioned; the ToS "automated/programmatic" clause + docs steering automation to API keys + cross-vendor precedent make it a latent risk. No OpenAI subscription-proxying suspension wave was found, but absence of evidence ≠ safety.
  • Low confidence / one-paragraph: cn-region specifics (secondary sources; verify per-vendor terms at implementation time).
  • Time-sensitivity: vendor terms, quota numbers, and enforcement posture changed multiple times across 2025–2026 (e.g. Anthropic Feb-2026 doc revision, OpenAI Apr-2026 pricing shift). Re-verify §2.1/§3.1 language and the §7 architectural conclusion immediately before enabling any subscription flow default-on. This memo gates defaults, per impl plan §4; the build may proceed on API-key paths in parallel.

12. Owner addendum — 2026-08-07

This dated product ruling supersedes the parts of §8 recommendations #1 and #5 that would make API-key-only supply or native-client binding a blanket restriction on Hub-held subscriptions. The preceding research, evidence, and original recommendations remain intact as the historical risk record; they are not product gates where this addendum differs.

The recommended and default subscription path is native: Claude stays in Claude Code's local login and ChatGPT stays in Codex's local login. Native supply leads that backend's recommended Follow resolution. A Custom chain remains authoritative and may put a Hub hop first with no hidden native pre-pass. When the leading native hop reports quota exhaustion or cooldown before any output starts, the same turn automatically continues to the next runnable hop in that chain. A later native hop remains native; selecting Hub is the Gateway takeover. If native output has already streamed, the interrupted turn ends without retry and the next turn selects the next runnable candidate while native remains cooling. After native supply recovers, subsequent Follow turns return to it automatically.

Users may explicitly add either a Claude or ChatGPT subscription as a Hub-held Source. Once added, that Source may supply any configured backend and may appear in a cross-vendor per-model route chain. Native subscription origins remain bound to their own client; this restriction does not apply to Hub-held Sources. The subscription_hub_experimental flag and per-Source consent mechanism are retired.

The only subscription-routing warning appears when a user explicitly adds a Claude subscription as a Hub-held Source. It must state that Anthropic explicitly prohibits this use, enforces server-side blocks, real account bans have occurred, and the path may fail intermittently. It is informational, not a consent gate. No warning appears for Claude native login, any ChatGPT path, automatic Gateway takeover, automatic return to native, or cross-vendor routing.

13. Owner addendum — 2026-08-07 afternoon (amendment #2)

This later ruling supersedes §12 where they differ and, for product behavior, all conflicting portions of §8 recommendations #1 through #5. The original memo, evidence, risk matrix, and recommendation text remain unchanged as historical research; they do not override this addendum. Recommendation #1's API-key support remains valid, but it is not an API-key-only product gate. Recommendations #2–#5 no longer make Claude Direct-only, gate ChatGPT behind consent, require an experimental flag, or bind Hub-held subscription credentials to their native client.

Subscription custody is vendor-specific:

  • Claude subscriptions recommend and default to Claude Code's native local login. Adding Claude as a Hub-held Source is optional and shows the sole factual warning: Anthropic explicitly prohibits this use, enforces server-side blocks, real account bans have occurred, and the path may fail intermittently.
  • ChatGPT subscriptions recommend and default to a Hub-held Source. Native Codex login remains supported but is not recommended and is not the default add-flow guidance. The owner bases this product recommendation on Codex OAuth supporting login from third-party applications. No warning or consent prompt appears for either ChatGPT path.
  • Any Hub-held subscription may serve any configured backend and may join a cross-vendor Custom chain. Native credentials remain usable only by their sanctioned client. Neither subscription_hub_experimental nor per-Source consent survives.

When a native subscription leads the effective chain, pre-stream quota exhaustion or cooldown advances to the next runnable chain hop regardless of channel; after streamed output begins, the turn is not replayed. A later native hop remains native, while the first selected Hub hop is the Gateway takeover. The first such native-to-Gateway takeover in a conversation may emit one lightweight informational notice when the default-on native_takeover_notice_enabled setting is enabled. This is active-conversation copy, not a warning, risk prompt, resolution-event delivery, or proactive push system; the 2026-07-29 proactive-push cut remains in force.

14. Owner addendum — 2026-08-08 (amendment #3)

This ruling supersedes §13's successful-takeover notice and setting, while retaining its vendor-specific subscription custody recommendation and every other routing rule. No automatic native-to-Gateway takeover emits a conversation message, and native_takeover_notice_enabled does not enter the v5 contract.

The rationale matches the 2026-07-29 proactive-push cut and the ruling that provenance is a debug affordance: model supply should feel like tap water or air. A user stays focused on the current task rather than supplier identity, switching, or remaining balance. The Model Gateway and Usage pages are the pull surfaces for experts who choose to inspect the takeover badge, connector state, recent-switch record, and usage.

This silence applies only to a successful handoff. If every candidate is unavailable, the turn still reports the existing truthful failure; if streamed output prevents a transparent retry, the existing retry copy remains. Page state and recorded switching evidence also remain. This amendment removes a message and setting, not routing, failure reporting, or observability.

15. Owner addendum — 2026-08-09 (configured-chain architecture)

This ruling supersedes only the routing-policy language in §§12–14 that describes Follow, Custom, an effective chain, or a runtime-selected candidate. Their risk evidence, vendor-specific custody recommendation, single Claude Hub warning, silent successful fallback, truthful terminal failure, and pull-only observability remain in force.

Every (backend, menu model) has one visible persisted chain of exact Source/model hops. Add Source performs matching once and writes the resulting hops; the user then adds, removes, reorders, or remaps those same entries. Runtime walks the stored order, checks whether each exact hop can run now, and applies the classified fallthrough rule. It does not derive another provider list, insert native supply, or choose a substitute model. A user-configured cross-vendor or cross-model mapping is authoritative and needs no warning beyond the existing Claude Hub add warning.

Vendor custody recommendations affect only Add Source placement. The sole policy in model-hub.md §4.2 chooses a deterministic position during Add Source, persists it in the visible configured chain, and never runs at runtime. Takeover remains a derived execution fact: a later stored hop is current while the first stored hop is unavailable for a recoverable quota or cooldown reason. It is not a routing policy or persisted state.