| 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.
Monthly and daily credit counts remain visible as details in menus and CLI output. Only a supplied daily reset date produces a reset clock; monthly renewal dates remain unavailable.
- 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. The shared cookie broker reuses cached sessions, then visits browser profiles in order.
Rejected sessions advance to the next candidate in the same refresh, followed by the environment token. Manual
mode uses only the supplied cookie or bare token; Off disables all sources, including the environment fallback.
The bundled plugin runs on QuickJS and JavaScriptCore and tolerates both a direct object and common envelope shapes (data / result / response / availableCredits). The selected credits object must contain at least one credit field; empty, error-only, and timing-only objects are rejected rather than surfacing a misleading zero-credit snapshot. Sparse responses and explicit zero balances remain valid.
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.