Provide `/help` in Codex cli

Resolved 💬 1 comment Opened Apr 28, 2026 by moddyfire Closed Jul 1, 2026

What version of Codex CLI is running?

0.123

What subscription do you have?

from my company

Which model were you using?

5.4

What platform is your computer?

macos, linux - same problem

What terminal emulator and version are you using (if applicable)?

Terminal.app

What issue are you seeing?

the /help command doesn't work, and codex doesn't seem to know how to operate itself.

Here is a conversation I had:

_ › what / commands are available in codex-cli_

• Searching the web _

• Searched site:openai.com Codex CLI slash commands /help /model /approval-mode /status

• Searching the web

• Searched site:openai.com/docs codex cli /help /init /status /model /approval slash commands

────────────────────────────────────────────────────────────────────────────────────────────────────

• Official OpenAI docs only explicitly mention /mode as an in-session slash command for Codex CLI;
 it toggles approval mode instead of restarting with --suggest, --auto-edit, or --full-auto. (help
 .openai.com
 (https://help.openai.com/en/articles/11096431-openai-codex-ci-getting-started?utm_source=openai))

 I did not find an official OpenAI page that lists all slash commands for Codex CLI. The docs I fo
 und point to using the CLI interactively and mention /mode, but don’t publish a complete slash-co
 mmand table. (help.openai.com
 (https://help.openai.com/en/articles/11096431-openai-codex-ci-getting-started?utm_source=openai))

 So the safest answer is:

 (https://help.openai.com/en/articles/11096431-openai-codex-ci-getting-started?utm_source=openai))

  • for the full list in your installed version: type /help inside Codex CLI

 If you want, I can also give you the non-slash CLI flags (--login, --upgrade, -m, approval-mode
 flags, etc.) from the official docs.

so I typed

_ /help_

Unrecognized command '/help'. Type "/" for a list of supported commands.`

or

_how can i go go to the next line (CR) without sending you a message?_

• Use Shift+Enter to insert a newline without sending.

If that doesn’t work in your client, tell me where you’re using Codex/chat from and I’ll give the
exact keybinding.

_it doesn't work_

• Then this client likely doesn’t support Shift+Enter.

Try:

  • Ctrl+J
  • Alt+Enter
  • Option+Enter on Mac

If none of those work, this interface probably sends on Enter only. In that case, type in a local
editor first and paste it here.

If you want, tell me exactly where you’re chatting with me (terminal app, browser app, IDE, etc.)
and I’ll narrow it down.

• If you want, send me the app name and I’ll check the exact behavior.

_› codex cli_

(thinking a lot ...)

• In codex cli, there doesn’t appear to be an officially documented “insert newline without submit”
shortcut in OpenAI’s Codex CLI getting-started docs, which describe the CLI at a high level but d
on’t list a multiline keybinding. (help.openai.com
(https://help.openai.com/en/articles/11096431-openai-codex-ci-getting-started?utm_source=openai))

I also checked the local codex --help on this machine, and it doesn’t expose a multiline input
option or keybinding either.

So the practical answer is: in the current CLI/TUI, you should assume Enter submits, and use one
of these workarounds:

  • Write multi-line text in your shell editor first, then paste it into Codex.
  • If you need short line breaks, paste the whole block at once instead of typing it interactively.
  • If you want, I can help you set up a fast shell workflow for this, like opening $EDITOR and

pasting the result into Codex.

This is not true. ^J actually works. I also don't understand how come it does know it is running codex-cli.

What steps can reproduce the bug?

Told in the description

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗