| summary | Amp provider notes: CLI usage, web fallback, cookie auth, and credits. | |||
|---|---|---|---|---|
| read_when |
|
The Amp provider tracks Amp Free usage plus individual and workspace credits. It prefers the local Amp CLI, then an Amp access token, and finally browser cookies.
- Amp Free meter: Shows how much daily free usage remains.
- Time-to-full reset: “Resets in …” indicates when free usage replenishes to full.
- Individual credits: Shows the remaining paid credit balance when Amp reports one.
- Workspace credits: Shows each workspace's remaining paid credit balance separately.
- CLI-first fetch: Uses
amp usagewhen the Amp CLI is installed and signed in. - Access token support: Uses
AMP_API_KEYor the access token saved in CodexBar settings. - Browser cookie fallback: Reads the legacy settings-page payload when the CLI and access token are unavailable.
- Open Settings → Providers
- Enable Amp
- Install and sign in to the Amp CLI, add an Amp access token, or leave Cookie source on Auto for web fallback
Create an access token in Amp settings, then paste it into Amp → Access token or set AMP_API_KEY.
- Open
https://ampcode.com/settings - Copy a
Cookie:header from your browser’s Network tab - Paste it into Amp → Cookie Source → Manual
- Runs
amp usagefirst in automatic mode - Calls
POST https://ampcode.com/api/internal?userDisplayBalanceInfowith an Amp access token - Falls back to the settings page with browser cookies
- Parses the same usage display format returned to the CLI
- Computes time-to-full from the hourly replenishment rate
Create a new access token in Amp settings, update AMP_API_KEY or CodexBar settings, then refresh.
Log in to Amp in a supported browser (Safari or Chromium-based), then refresh in CodexBar.
Sign out and back in at https://ampcode.com/settings, then refresh.