docs/augment.md
The Augment provider tracks your Augment Code usage and credits through browser cookie-based authentication.
auggie account status when the Auggie CLI is installed (falls back to web)Automatic (Recommended)
Manual
Off
The provider searches for Augment session cookies in this order:
Recognized cookie names:
_session (legacy)auth0, auth0.is.authenticated, a0.spajs.txs (Auth0)__Secure-next-auth.session-token, next-auth.session-token (NextAuth)__Host-authjs.csrf-token, authjs.session-token (AuthJS)session, web_rpc_proxy_session (Augment-specific)Cached cookies:
com.steipete.codexbar.cache (account cookie.augment, source + timestamp). Reused before re-importing
from browsers.If the auggie CLI is installed, CodexBar will prefer auggie account status for usage data and avoid browser prompts.
When the CLI is unavailable or not authenticated, CodexBar falls back to browser cookies.
The provider includes an automatic session keepalive system:
This ensures your session stays active without manual intervention.
The provider fetches data from:
https://app.augmentcode.com/api/creditshttps://app.augmentcode.com/api/subscriptionCause: You're not logged into Augment in any supported browser.
Solution:
Cause: Your browser session expired and automatic refresh failed.
Solution:
Cause: Chrome Beta might not be in the browser search order.
Solution: This fork includes Chrome Beta support by default. If issues persist:
/Applications/Google Chrome Beta.appIf automatic import fails, you can manually paste cookies:
cookie1=value1; cookie2=value2; ...To see detailed cookie import logs:
This displays:
*.augmentcode.com domains are importedThe provider implements RFC 6265 cookie semantics:
app.augmentcode.com → app.augmentcode.comaugmentcode.com → app.augmentcode.com.augmentcode.com → app.augmentcode.comauth.augmentcode.com ❌→ app.augmentcode.comThis prevents cookies from other subdomains being sent to the API.
/api/auth/session to trigger cookie update