Documentation
¶
Overview ¶
Package codex turns a ChatGPT (Codex) subscription into a memcode backend by reusing the login the Codex CLI already stored. It reads ~/.codex/auth.json (or $CODEX_HOME), refreshes the access token when it's expiring, pulls the account id out of the access-token JWT, and returns the ChatGPT/Codex endpoint plus the identity headers Cloudflare and the backend require. No vendor SDK — file read + OAuth refresh + JWT decode — so it returns a plain Backend the provider package adapts to an endpoint.
Consent-gated upstream: it activates only when the user explicitly selects the codex source. It reuses the Codex CLI's file and, on a refresh, writes the rotated tokens back there so both tools stay in sync on the single-use refresh token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.