Skip to content

feat(providers): add Bailian Token Plan preset across all clients#4432

Open
xiaoshidefeng wants to merge 2 commits into
farion1231:mainfrom
xiaoshidefeng:feat/bailian-token-plan
Open

feat(providers): add Bailian Token Plan preset across all clients#4432
xiaoshidefeng wants to merge 2 commits into
farion1231:mainfrom
xiaoshidefeng:feat/bailian-token-plan

Conversation

@xiaoshidefeng

Copy link
Copy Markdown

Summary

Adds a new Bailian Token Plan provider preset for Alibaba Cloud Model Studio (百炼 / DashScope) Token Plan 团队版 subscription, covering all six supported clients.

This complements the existing Bailian (pay-as-you-go via dashscope) and Bailian For Coding presets with the new seat-based Token Plan product line (cn-beijing region, Credits-based metering).

Changes

Preset added to all six config files:

  • claudeProviderPresets.ts (Claude Code)
  • claudeDesktopProviderPresets.ts (Claude Desktop)
  • codexProviderPresets.ts (Codex)
  • hermesProviderPresets.ts (Hermes Agent)
  • openclawProviderPresets.ts (OpenClaw)
  • opencodeProviderPresets.ts (OpenCode)

Details

Endpoints (per official docs — Token Plan is currently Beijing-region only):

  • Anthropic-compatible: https://token-plan.cn-beijing.maas.aliyuncs.com/apps/anthropic
  • OpenAI-compatible: https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1

Models (verified against the Token Plan supported-model whitelist — exact string match): qwen3.7-max (default), deepseek-v4-pro, kimi-k2.7-code, glm-5.2.

  • The two Anthropic-format clients (Claude Code / Claude Desktop) route through /apps/anthropic as passthrough (no model list, matching existing Bailian presets).
  • The four OpenAI-compatible clients (Codex / Hermes / OpenClaw / OpenCode) expose the four models above.

Verification

  • npx tsc --noEmit
  • Full unit suite ✅ (56 files / 338 tests)
  • Manual UI check: preset appears and shows correct default + model list across all six clients.

Reference

🤖 Generated with Claude Code

Add a new "Bailian Token Plan" preset for Alibaba Cloud Model Studio
(DashScope) Token Plan team subscription, covering Claude Code, Claude
Desktop, Codex, Hermes, OpenClaw, and OpenCode.

- Anthropic-format clients route through the dedicated
  /apps/anthropic endpoint (passthrough).
- OpenAI-compatible clients use /compatible-mode/v1 and expose
  qwen3.7-max (default), deepseek-v4-pro, kimi-k2.7-code, glm-5.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 899a025bd7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/config/claudeProviderPresets.ts
Comment thread src/config/claudeDesktopProviderPresets.ts
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants