docs/longcat.md
LongCat reads quota data from an authenticated longcat.chat web session. It does not require an API key.
LONGCAT_MANUAL_COOKIE.GET /api/v1/user-current is required and validates the session while providing the account name.POST /api/pay/quota/metering/token-packs/summary provides the primary live token-pack quota. This probe is
best-effort because some browser cookies are scoped to other API paths.GET /api/lc-platform/v1/tokenUsage is required only when the summary has no active lot with a positive total.GET /api/lc-platform/v1/pending-fuel-packages is best-effort and runs in both primary-quota paths.The legacy tokenUsage response can report stale zeros for token-pack accounts, so it is only a fallback (#2670).
An active currentLot maps totalToken to the primary total and consumedToken to primary used tokens. When no
usable lot exists, the legacy token-usage aggregate supplies total, used, and remaining quota. Pending fuel packages
are summed into the secondary window, with their nearest expiry used as its reset time.