Files
cc-switch/assets
Jason 68d71cc639 feat(presets): add 9527CODE presets across nine apps
9527CODE (9527.codes) is a sponsored enterprise-grade relay running New
API, fronting Claude, GPT, Gemini, Grok and Chinese models behind a
single key. It lands across Claude Code, Claude Desktop, Codex, Gemini
CLI, Grok Build, OpenCode, OpenClaw, Hermes and Pi, and is inserted
after APIKEY.FUN in both the preset files and the sponsor table so the
README order stays the ordering SSOT.

The gateway accepts every protocol with or without the /v1 prefix, but
the presets are written to match what each client actually appends
rather than relying on that fallback:

- Claude Code / Desktop / Gemini CLI:  9527.codes       (client adds /v1)
- Codex / Grok Build:                  9527.codes/v1    (responses)
- OpenCode:                            9527.codes/v1    (@ai-sdk/anthropic)
- OpenClaw / Hermes / Pi:              9527.codes       (anthropic-messages)

OpenCode and the other Anthropic-protocol clients look inconsistent but
are not: the AI SDK appends /messages to its baseURL while OpenClaw,
Hermes and Pi append /v1/messages themselves.

Three non-obvious details:

- endpointCandidates carry only the two live backups, api.9527.codes
  (overseas) and cdn.9527.codes (Asia-Pacific). The vendor docs list a
  fourth route, txcdn.9527.codes, which does not resolve; including it
  would offer users an endpoint that cannot connect.
- No cost is recorded for the OpenClaw and Hermes models. What a user
  actually pays is the official price times a token-group multiplier
  that varies per group and plan, so quoting list prices would mislead.
- The icon is an inline SVG traced from the vendor logo, drawn as a
  full silhouette at 0.82 opacity with the black regions layered on top.
  Stroking the two tones as separate adjacent paths leaves a hairline
  seam between them; the base layer covers it.
2026-09-01 23:47:14 +08:00
..