Native Codex¶
Use this route when the codex executable is installed and you want Codex—not Ollama—to own
authentication, the conversation, and model selection. JSAT adds its MCP server and global
$jsat skill; it does not create project-local Codex files.
Prerequisites and connect¶
pip install jsat
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codex # complete sign-in, then exit
cd /path/to/project
jsat index .
jsat connect codex
The connection writes ~/.codex/config.toml and ~/.codex/skills/jsat/SKILL.md. Restart a
Codex process that was already open.
Start and select a model¶
Codex selects its model using its own UI/configuration. Do not pass an Ollama model to this route. If JSAT's internal LLM-backed tools should also call native Codex, configure that separately:
Use and verify JSAT¶
Inside Codex:
$jsat status
$jsat query what is the request path for checkout?
$jsat blast-radius src/payments/service.py
Or ask: Use jsat__get_index_status and tell me the node and edge counts. A successful call
proves MCP is active. On the host, jsat connect list confirms the saved connection.
Lifecycle¶
jsat codex resume SESSION_ID is also forwarded directly to Codex. jsat session resume is
different: it resumes an interrupted JSAT workflow such as crack or magic.
Troubleshooting and removal¶
- If
$jsatis missing, rerunjsat connect codex, then restart Codex completely. - If MCP is missing, inspect
~/.codex/config.tomland runjsat doctor. - If an error shows an Ollama tag with
provider: openai, the model/provider pair is misrouted. Selectcodex_clifor native Codex orollamafor an Ollama tag; do not combine an Ollama model name with the OpenAI provider. - If Codex is not installed, use an Ollama-launched client or install Codex.