2 Commits
Author SHA1 Message Date
Jason c859026d48 feat(usage): enable coding-plan usage by default for every app
Adding a provider whose base URL matches a coding plan (Kimi, Zhipu,
MiniMax, Volcengine, OpenCode Go, Command Code) now turns on the
token_plan usage query in every app, not only Claude Code. Before, other
apps got it only for OpenCode Go and Codex + Command Code, so a Kimi plan
added to Codex, OpenCode, Pi, Hermes etc. had usage off until enabled by
hand.

The quota endpoints only depend on the API key (Zhipu also on the host),
not on the client protocol or base URL path, and the backend already
resolves usage credentials for all apps. The frontend base URL lookup now
also covers Gemini CLI, Grok Build, Hermes, OpenClaw and MiniMax Code.

ZenMux stays Claude-only: its query GETs the configured base URL itself,
which is untested for other apps' inference URLs. Existing providers are
not changed.
2026-10-13 22:13:16 +08:00
M3chD09 793e67d9b3 feat(provider): add Command Code presets and quota support (#7358)
- add Command Code presets for Claude Code and Codex
- map the Claude and Codex provider endpoints and model catalogs
- detect both base URLs and query credits, rolling limits, and subscription periods
- document the preset and usage coverage in English, Chinese, and Japanese
- add preset routing and quota parsing tests
2026-10-03 19:52:23 +08:00