Skip to content

OpenAI Codex

  1. Install the Val Town CLI and log in
  2. Install OpenAI Codex and log in

The most reliable way to let Codex write vals for you is with vt watch, which will automatically sync your changes to Val Town.

  1. vt create, vt remix, or vt clone a val. Select “Yes” to add editor files*
  2. cd into your val’s directory
  3. vt checkout -b <branch> to isolate changes (optional)
  4. vt watch to sync with Val Town
  5. codex to start your Codex session

* Running vt create|remix|clone will prompt you to add editor files, including AGENTS.md with our system prompt, which Codex should recognize.