nodecode-codex-auth
A Nodecode add-on that lets a ChatGPT subscription serve OpenAI-family models. When a lane points at the OpenAI API and your saved login is a ChatGPT one, the add-on answers Nodecode's credential lookup with that login. It also sends the requests to the Codex backend with the headers that login needs.
The login itself lives in Nodecode's shared auth.json, written by codex login or the Nodecode cloud gateway. This add-on stores nothing.
Install
In Nodecode, run /setup → Choose and pick codex-auth. Or copy this folder into ~/.nodecode/addons/nodecode-codex-auth/.
Configure
Optional. Having the section enables the add-on, and "enabled": false turns it off:
{
"codex-auth": {
// Where a saved ChatGPT login is served. A relay's address goes here.
// Used only when the provider's own endpoint is api.openai.com.
"endpoint": "https://chatgpt.com/backend-api/codex/responses"
}
}See config.example.jsonc.
Test
From a Nodecode checkout's src/:
sbcl --non-interactive --eval '(require :asdf)' \ --eval '(push (truename ".") asdf:*central-registry*)' \ --eval '(push #p"/path/to/addons/nodecode-codex-auth/" asdf:*central-registry*)' \ --eval '(asdf:test-system :nodecode-codex-auth)'
MIT licensed.