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), 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 + 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 never writes it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.