docs/qoder.md
CodexBar reads Qoder big model credit usage from the Qoder account dashboard. It supports the international
qoder.com site and the China mainland qoder.com.cn site.
qoder.com, paste a Cookie: header or a cURL/
HTTP request capture from the usage page. For qoder.com.cn, paste a request capture that includes the China URL
or Host header so CodexBar can select the matching site.Bare Cookie: headers default to qoder.com. Request captures are parsed only when the target URL or header host
clearly belongs to qoder.com or qoder.com.cn.
CodexBar requests:
GET https://qoder.com/api/v2/me/usages/big_model_creditsGET https://qoder.com.cn/api/v2/me/usages/big_model_creditsThe selected site controls the Origin and Referer headers. Automatic mode imports Qoder cookies from Chrome
and caches valid cookie headers. Invalid cached sessions are skipped so a fresh browser cookie can be retried.
totalQuota with sharedQuota when Qoder returns both.nextResetAt when the API includes a reset timestamp.codexbar usage --provider qoder --verbose
Sign in to Qoder in Chrome, then refresh CodexBar. If browser import is unavailable, switch to manual mode. Paste a
fresh Cookie: header for qoder.com; for qoder.com.cn, paste a cURL/HTTP request capture containing the China URL
or Host header.
Log in to Qoder again. CodexBar clears invalid cached cookies and retries fresh browser cookies in automatic mode.
Open the matching Qoder usage page and confirm whether the account is on qoder.com or qoder.com.cn; manual cURL
captures should come from the same site.
Sources/CodexBarCore/Providers/Qoder/QoderProviderDescriptor.swiftSources/CodexBarCore/Providers/Qoder/QoderUsageFetcher.swiftSources/CodexBarCore/Providers/Qoder/QoderUsageSnapshot.swiftSources/CodexBarCore/Providers/Qoder/QoderCookieImporter.swiftSources/CodexBar/Providers/Qoder/QoderProviderImplementation.swift