memcode docs
CLI

Codex

Run memcode on your ChatGPT subscription by reusing your Codex CLI login.

If you have a ChatGPT subscription with Codex, memcode can run on it by reusing your Codex CLI login. No API key.

Before you start

Sign in to the Codex CLI at least once so its login is on this machine. memcode reuses that login and does not ask you to sign in again.

Connect

memcode auth use codex

Now run memcode as usual and it uses your ChatGPT account. To check, run memcode auth status, or run memcode auth for the picker.

Where the login comes from

memcode reads the Codex login from ~/.codex/auth.json. If you keep it somewhere else, point CODEX_HOME at that directory.

If it stops working

If memcode says the Codex login has no account id, sign in again with the Codex CLI, then run memcode.

On this page