Skip to content

Codex

Codex CLI authenticates via ~/.codex/auth.json on your host. In sync mode (the default), jackin’ copies this file into the container on every launch — Codex inside the container sees the same account and model access you have locally.

Before sync can forward anything, you need a working Codex login on your host:

Terminal window
codex auth login

Follow the prompted flow. Once it completes, Codex is ready on your host and jackin’ will forward that login into every container launch.

Codex CLI uses your OpenAI account. You can subscribe to ChatGPT Plus, Team, or Enterprise, or use pay-as-you-go API credits.

Get an OpenAI subscription

A ChatGPT Plus or Team subscription includes Codex CLI access with a fixed monthly rate and generous usage — typically more cost-effective than pay-as-you-go API credits if you run agents frequently through jackin’.

The plan you have on the host is the one the container sees.

ModeSupported
sync (default)Yes — forwards ~/.codex/auth.json
api_keyYes — injects OPENAI_API_KEY
oauth_tokenNo — rejected at config time
ignoreYes — no forwarding

See Agent Authentication for what each mode does and how to switch between them.

If Codex inside the container shows “Not logged in”:

  1. Check that the host login is active — run codex briefly on the host.
  2. Open the Auth tab in jackin console and verify the effective mode for the (workspace × role × Codex) cell.
  3. If the container has stale credentials and the host has fresh ones, restart: jackin eject <role> && jackin load <role>.