docs
docs/agents/codex

codex

picks are typed into your codex prompt as chips, and attached when you send.

on this page

set up#

terminal
$ el install --codex

this adds element's hooks (already trusted, so there's nothing to approve in /hooks). restart open codex windows afterwards.

chips#

codex has no way for extensions to edit its prompt, so element types the chip in through your terminal. that works when codex runs in tmux, iTerm2, cmux, WezTerm, herdr, Zellij, GNU screen, kitty, Konsole or Ghostty on macOS. kitty needs allow_remote_control socket-only and a listen_on line in kitty.conf, and Konsole 25.12 and later needs its security-sensitive D-Bus API turned on; el install --codex says what to set. cmux needs its automation socket on, and el install --cmux stores its socket password.

in other terminals (vs code's, Terminal.app, Ghostty) there's no chip: every waiting pick goes with your next message. running codex inside tmux there gets you chips. to turn chips off, set {"codexChips": false} in ~/.element/config.json.

sessions#

each codex window is its own session, named after its folder. a new window shows up after its first message (codex doesn't tell element sooner), and goes away when you close it.

remove#

el uninstall removes element's hooks.

suggest an editprivacyterms© 2026 Randy Yu Software LLC