nc://codex-auth

v0.1.0Pinned
Backnodecode-ai
pomterreproviders: nodecode-codex-auth on the cell contract -- define-cell where it said define-addon, so the folder loads again (the core dropped define-addon in the 2026-10-05 rename, and the index has held the entry out since). addon.lisp is cell.lisp and test/addon-test.lisp is test/cell-test.lisp; the slice is DEFINE-CELL-LIFECYCLE-TESTS and WITH-CELL-STOP under the CODEX-AUTH-CELL- prefix, START-CELL its start. The test reads a header through CODEX-HEADER, its own three lines, since the core no longer exports NLK:HEADER-VALUE. The README installs with `nodecode add nc://codex-auth' into ~/.nodecode/cells/. What the hook answers is unchanged: an openai-family lane's OAuth token from auth.json, the Codex backend's address, originator and chatgpt-account-id. Tests: 12 codex-auth tests, 0 failed, offline (unshare -rn) in a scratch home against a git archive of Nodecode 8490b4803 (the release) and of 68be35674.c083097· 9 Oct2 commits
test1 filecredential.lisp5.1 KB

nodecode-codex-auth

A Nodecode cell 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 cell 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 cell stores nothing.

Install

nodecode add nc://codex-auth

Or in Nodecode, run /setup → Choose and pick codex-auth, or copy this folder into ~/.nodecode/cells/nodecode-codex-auth/ and restart Nodecode.

Configure

Optional. Having the section enables the cell, 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/cells/providers/nodecode-codex-auth/" asdf:*central-registry*)' \
  --eval '(asdf:test-system :nodecode-codex-auth)'

MIT licensed.

Add nc://codex-auth

  1. 1

    Install Nodecode

    Once per machine.

    $ curl -fsSL https://nodecode.ai/install.sh | sh
  2. 2

    Add the cell

    Pinned at c083097.

    $ nodecode add nc://codex-auth

    Or tell the agent add the codex auth cell.

  3. 3

    Sign in

    Sign in with codex login. A lane on the OpenAI API then uses that ChatGPT login.