chopchat.io

docs / inference

Local Codex Agent

Use your own Codex and your ChatGPT plan as the model in the plugin chat. No API key, nothing billed by us.

Local Codex Agent

Already using Codex with your ChatGPT account? The plugin chat can run your own Codex as its model. Answers still use the knowledge base and the chat's tools, TDMCP and the simulator. On a Claude or Copilot plan instead? See Local Claude Agent and Coding agents.

Your turns run on your ChatGPT plan's Codex usage, the free plan's too (within its limits). You need no API key, and we don't bill them.

What you need

  • Codex on this PC: the Codex app, or the command line (npm install -g @openai/codex). See developers.openai.com/codex.
  • Codex signed in with your ChatGPT account: open the Codex app and sign in, or run codex login in a terminal.

ChopChat never sees that sign-in. It only checks whether Codex is installed and signed in, and runs your installed Codex.

Turn it on

  1. In the plugin chat, click This PC.
  2. Under Coding agents in this chat, click Turn on next to Codex.
  3. In the model menu, pick one of the Codex models ending in · this PC.

These chats also show up in your Codex history, named "ChopChat · …".

What Codex may do

Codex works in your TouchDesigner project folder (an unsaved project gets a scratch folder). It uses the same level as Files, enforced by Codex's own sandbox:

LevelCodex can
Readrun commands that read files, not change anything
Read & editalso change files in the project folder; no network
Shellrun any command, with your full user rights

On Windows, Codex can read files outside the project folder too, because Windows can't limit reading for it. Below Shell, it still changes files only in the project folder.

The first time Codex edits files in a new project folder, its sandbox prepares that folder once, which can take a moment.

At Shell, the first time in a chat, your PC asks whether this chat may run commands. If you answer after about 20 seconds, that answer counts from your next message. TDMCP's execute_code (Python in TouchDesigner) counts as a command, so Codex gets it only at Shell. More in Coding agents.

Its commands and file edits show up in the chat as tool cards, and its reasoning summary as reasoning.

Good to know

  • Only messages you send start Codex. Chat titles and tags are never generated on your ChatGPT plan.
  • For ChopChat's chats, your own Codex MCP servers, plugins and computer use are switched off: the chat brings its own tools.
  • Stop ends the run. A run nobody continues ends by itself after 15 minutes.
  • With Remote on, your other devices can use the same Codex as Codex · my PC, at the Remote level.
  • On a team plan you can let teammates use it on a PC you share with your team, as Codex · team PC. Only do that when the sign-in there allows use by your team (an API key, a Team or Enterprise seat): a personal plan is for you alone.

Troubleshooting

  • Codex is not installed / too old: install or update Codex, then click Check again.
  • Codex is not signed in: open the Codex app and sign in (or run codex login), then click Check again.
  • Usage limit reached: your plan's Codex usage is used up for now.
  • The model doesn't show up: on a self-hosted chat, check that the stack's relay runs and that this PC is linked in the This PC card (plugin 0.6.1 or newer).

Codex and ChatGPT are OpenAI's products, used under your own ChatGPT account and OpenAI's terms.