| summary | Manus provider: browser session_id cookie auth for credit balance, monthly credits, and daily refresh tracking. | |||
|---|---|---|---|---|
| read_when |
|
The Manus provider tracks credit usage on manus.im via browser session_id cookie authentication.
- Monthly credit gauge: Shows Pro monthly credits used vs. plan total (
proMonthlyCredits−periodicCredits). - Daily refresh gauge: Shows daily refresh credits used vs. max refresh allotment, with reset timing.
- Balance display: Total credits available, shown in the menu identity line.
- Cookie auth: Automatic browser cookie import (Safari, Chrome, Firefox) or manual cookie header.
- Env var support:
MANUS_SESSION_TOKEN(raw token) orMANUS_COOKIE(full cookie header) for CLI/headless usage.
- Open Settings → Providers
- Enable Manus
- Log in to manus.im in your browser
- Cookie import happens automatically on the next refresh
- In Settings → Providers → Manus, set Cookie source to Manual
- Open your browser DevTools on
manus.im, copy theCookie:header from any API request (must containsession_id=...) - Paste the header into the cookie field in CodexBar
MANUS_SESSION_TOKEN: the rawsession_idvalue.MANUS_COOKIE: a full cookie header; the provider extractssession_idfrom it.
Either works; raw-token form is preferred when only one value is needed.
A single API endpoint is fetched with a bearer token derived from the session_id cookie value:
POST https://api.manus.im/user.v1.UserService/GetAvailableCredits— returns credit fields includingtotalCredits,freeCredits,periodicCredits,proMonthlyCredits,refreshCredits,maxRefreshCredits,nextRefreshTime, andrefreshInterval.
Cookie domain: manus.im. Valid session_id cookies are cached in Keychain and reused until the session expires.
The response parser tolerates both a direct object and common envelope shapes (data / result / response / availableCredits). Payloads missing all expected credit fields are rejected as a parse error rather than surfacing a misleading zero-credit snapshot.
Manus supports multiple accounts via the standard token-account mechanism. Add entries to ~/.codexbar/config.json (tokenAccounts) with the full Cookie: header (containing session_id=...), then switch between accounts from the menu.
codexbar usage --provider manus --verboseLog in to manus.im in a supported browser (Safari, Chrome, Firefox), then refresh CodexBar. Alternatively, set MANUS_SESSION_TOKEN or MANUS_COOKIE, or paste a cookie header in manual mode.
Your session has expired or been revoked. Log out and back in to Manus, or paste a fresh Cookie: header in manual mode.
The API returned a 200 response that doesn't look like a credits payload (often an error object). Re-login to Manus; if it persists, the upstream response schema may have changed.