codex - ๐Ÿ’ก(How to fix) Fix Provide `/help` in Codex cli [1 participants]

Official PRs (โ€ฆ)
ON THIS PAGE

Recommended Tools

ร—6

Utilities matched from this issueโ€™s tags and category โ€” try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful ยท Quick feedback

Loadingโ€ฆ
GitHub stats
openai/codex#19968โ€ขFetched 2026-04-29 06:24:35
View on GitHub
Comments
0
Participants
1
Timeline
9
Reactions
0
Author
Participants
Timeline (top)
labeled ร—5unlabeled ร—3renamed ร—1

Fix Action

Fix / Workaround

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

RAW_BUFFERClick to expand / collapse

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:

ย - documented slash command: /mode (help.openai.com

ย (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

extent analysis

TL;DR

The /help command is not recognized in Codex CLI, and the user is seeking a way to access available commands and operate the tool effectively.

Guidance

  • The issue seems to stem from a lack of documentation on available slash commands for Codex CLI. The official documentation only mentions /mode as an in-session slash command.
  • To verify the available commands, try typing / in the Codex CLI to see if it lists supported commands.
  • As a workaround, the user can refer to the official OpenAI documentation for non-slash CLI flags, such as --login, --upgrade, and approval-mode flags.
  • The user has discovered that ^J (Ctrl+J) works as a newline character without sending the message, which can be useful for multiline input.

Example

No code snippet is provided as the issue is related to CLI commands and usage.

Notes

The issue highlights the need for more comprehensive documentation on Codex CLI commands. The user's discovery of ^J as a newline character is a useful workaround but may not be officially documented.

Recommendation

Apply workaround: Use ^J (Ctrl+J) for newline input and refer to official documentation for non-slash CLI flags, as the /help command is not recognized.

Vote matrix ยท Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loadingโ€ฆ

Still need to ship something?

ร—6

Another batch ranked right after the header list โ€” different links, same matching logic.

Back to top recommendations

TRENDING

codex - ๐Ÿ’ก(How to fix) Fix Provide `/help` in Codex cli [1 participants]