docs/sakana.md
Sakana AI is a research lab focusing on foundation models and nature-inspired AI. CodexBar reads the billing page to surface 5-hour and weekly quota windows for subscribers.
console.sakana.ai/billing).Cookie: request header value from any billing-page request.0600 whenever it writes the file on macOS or Linux.Alternatively, set the environment variable SAKANA_COOKIE to the raw cookie header value.
Cookie: header; no automatic browser cookie import.https://console.sakana.ai/billing (HTML scrape; no JSON API).web.usedPercent for each window is parsed from the billing page's adjacent % used text.TimeZone.current instead shifted every reset
by the device's UTC offset; see #1826.) The fetcher detects
"MMMM d, yyyy 'at' h:mm a" format strings.Standard $20/mo) are joined and surfaced as the loginMethod identity field for
plan display in the menu.supportsTokenCost: false): not supported; cost summary is unavailable.supportsCredits: false): not shown.codexbar usage --provider sakana
codexbar usage --provider sakana-ai # alias
Set the cookie via the environment variable or Settings UI:
SAKANA_COOKIE=<cookie-header-value> codexbar usage --provider sakanaThere is no codexbar config set command for cookieHeader; use one of the paths above.
| Error | Meaning |
|---|---|
missingCookie | No Cookie: header is configured and SAKANA_COOKIE is unset. |
loginRequired | The request was unauthorized/forbidden, redirected, or ended on a different origin. |
apiError(Int) | The billing page returned a non-200 status not classified as a login failure. |
parseFailed(String) | The billing response was empty or its quota data could not be parsed. |
Sources/CodexBarCore/Providers/Sakana/
SakanaProviderDescriptor.swift — provider metadata, fetch plan, CLI configSakanaSettingsReader.swift — SAKANA_COOKIE env key, cookie normalizerSakanaUsageFetcher.swift — billing-page HTML fetch and quota parserSources/CodexBar/Providers/Sakana/
SakanaProviderImplementation.swift — settings UI, availability checkSakanaSettingsStore.swift — sakanaCookieHeader settings bindingTests/CodexBarTests/SakanaUsageFetcherTests.swift — parser regression testshttps://console.sakana.ai/billing