| summary | Alibaba Token Plan provider notes: Bailian cookie auth, subscription summary endpoint, and setup. | |||
|---|---|---|---|---|
| read_when |
|
The Alibaba Token Plan provider tracks Bailian token-plan credits from the Alibaba Cloud console.
- Token-plan usage display: Shows used, total, and remaining token-plan credits when Bailian returns quota totals.
- Cookie-based auth: Uses browser cookies or a pasted
Cookie:header. - Expiry awareness: Shows the nearest token-plan expiration date as the reset time when the subscription summary includes it.
- Open Settings -> Providers
- Enable Alibaba Token Plan
- Leave Cookie source on Auto (recommended)
- Open
https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/token-plan - Copy a
Cookie:header from your browser's Network tab - Paste it into Alibaba Token Plan -> Cookie source -> Manual
- Fetches
POST https://bailian.console.aliyun.com/data/api.json?action=GetSubscriptionSummary&product=BssOpenAPI-V3&_tag= - Sends form-encoded fields for
product=BssOpenAPI-V3,action=GetSubscriptionSummary,region=cn-beijing, andparams={"ProductCode":"sfm_tokenplanteams_dp_cn"} - Uses Alibaba/Bailian login cookies, with
sec_tokenadded when it can be resolved from the dashboard page - Parses
TotalValue,TotalSurplusValue,TotalCount, andNearestExpireDatefrom the subscription summary response - Supports
ALIBABA_TOKEN_PLAN_HOSTandALIBABA_TOKEN_PLAN_QUOTA_URLfor testing endpoint overrides
- Alibaba Token Plan currently supports the Bailian web-cookie path only
- API-key auth, token cost summaries, and automatic status polling are not supported
- The default endpoint is the China mainland Bailian token-plan subscription summary
Log in at https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/token-plan in Chrome, then refresh CodexBar.
The pasted header is empty or not a valid Cookie header. Re-copy the request from the Token Plan page after logging in again.
Your Bailian session is stale. Sign out and back in on the Bailian console, then refresh CodexBar.
If Bailian returns TotalCount: 0, CodexBar keeps the provider visible but does not show a quota window because the account has no active token-plan subscription summary to graph.