Invalid prompt: your prompt was flagged as potentially violating our usage po licy.

Open 💬 2 comments Opened Apr 6, 2026 by liaojiexin

What version of Codex CLI is running?

codex-cli 0.118.0

What subscription do you have?

free

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 24.6.0 arm64 arm

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

Terminal.app,

What issue are you seeing?

<img width="1302" height="742" alt="Image" src="https://github.com/user-attachments/assets/e610becf-18bc-434c-868a-f45405045b81" />
Regardless of the account or API I use, and regardless of the mode, I get the error message: "Invalid prompt: your prompt was flagged as potentially violating our usage policy. Please try again with a different prompt: https://platform.openai.com/docs/guides/reasoning#advice-on-prompting". Codex simply doesn't work on my computer.

What steps can reproduce the bug?

Uploaded thread: 019d6315-ee8d-73a3-bd5e-b44627ce0e5b
I'm not entirely sure. After automatically installing CodeX, it only worked the first time, and then started acting like this the next day. I've tried uninstalling and reinstalling it. Changing accounts or APIs doesn't work either.

What is the expected behavior?

Normal operation

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗