Codex Account Banned? 5 Automation Rules and How to Appeal (2026)
If your Codex account has been banned, don't rush to sign up again. First, confirm exactly what notice you received. Second, check your usage against OpenAI's usage policies and terms of service. Third, go through the official appeal channel. If you need long-running automation, shared use across a team, or high-frequency calls, switching to an API key with pay-as-you-go billing is usually safer than stretching a personal subscription.
This article describes the general reading of OpenAI's official terms. It is not a judgment on any specific account. OpenAI updates its terms, and the exact wording and outcomes are determined by the official pages and OpenAI's replies. This article is current as of October 2026.
Is a banned Codex account the same as a banned ChatGPT account?
Codex can sign in with a ChatGPT account or use an API key. The terms that apply differ depending on how you sign in:
- Signing in with a ChatGPT account means your quota comes from your ChatGPT subscription, and the consumer terms of service and usage policies apply.
- Using an API key means the API-related terms apply, and you are billed by usage.
So when something goes wrong, first work out whether your ChatGPT account is restricted as a whole, or whether Codex has simply run out of quota, your login has expired, or the service is down. The latter cases are not bans and need no appeal. You can check /en/down/codex and /en/status/openai for public outages.
Which automation habits tend to cross the line?
Below are the common situations. Whether something is a violation is ultimately OpenAI's call; this list only points out what to watch for when reading the terms.
1. Handing your account credentials to other people or systems
Login sessions, tokens, and API keys are all credentials. Sharing a personal account with others, or putting credentials in a public repository or public service, risks both violating the terms and having the credentials stolen. For related discussion, see Does sharing an OpenAI API key violate the terms? and The risks of sharing a ChatGPT account.
2. Using a personal subscription to serve others or resell access
The quota in a personal subscription is for your own use. Packaging it as a service sold to third parties, or letting a group of users send requests through one subscription account, most likely falls outside what a personal subscription allows. Check the official terms for specifics. To offer a service to others, use the API and follow the API terms.
3. Driving usage in bulk with high-frequency scripts
Codex is itself an automation tool, and normal agent runs are fine. The thing to watch for is different: looping calls from an external script, running unattended for long stretches to burn through your quota, or using that approach to get around official usage limits. For the specific requirements on automation and rate, rely on the official documentation.
4. Violating content and usage policies
Content that Codex generates or processes is subject to the usage policies as well. Having an agent bulk-process data you have no right to access, or carry out tasks that violate the policies, can also trigger enforcement. See OpenAI usage policies explained.
5. Compromised accounts or unusual sign-ins
Sometimes the cause isn't a violation by you; someone else is using your account. If you see logins or conversations you don't recognize, change your password and turn on two-factor authentication first, then contact OpenAI.
What to do after a ban: self-check and appeal
Follow these steps in order, and keep a record at each one.
- Save the original text and timestamp of the notice email. The wording determines which channel to use next. For example, an Access deactivated email is handled differently from an ordinary content warning.
- Distinguish between an account restriction and a service outage, exhausted quota, or an expired login.
- Think back over recent changes: Did you share credentials? Did you connect the subscription to a third-party tool or script? Did you run large batches of automated tasks?
- Submit through the official appeal entry in the OpenAI Help Center. State the facts, don't exaggerate, and don't submit multiple duplicate appeals. For how to write one, see How to write a ChatGPT account appeal.
- Wait for OpenAI's reply. Don't register another account to keep using the service while you wait. That doesn't comply with the terms and may complicate your case.
Before deciding whether to sign up again, read My ChatGPT account was banned. Can I still use the OpenAI API? and rely on OpenAI's official guidance.
How to set things up more safely
Use the table below to see which billing approach fits your scenario.
| Scenario | Recommendation |
|---|---|
| Interactive personal use of Codex on your own machine | Sign in with your own ChatGPT account and follow the subscription terms |
| Shared team use, CI, or scheduled jobs | Use an API key with usage-based billing, and manage keys separately |
| Offering a product or service to others | Use the API and follow the API terms |
| Want to know when your quota resets | See the Codex usage limit reset timeline |
When using an API key, keep it in an environment variable or a secrets manager and never commit it to a repository. Create separate keys for separate projects, and revoke a key immediately if it leaks.
What if you don't have an overseas payment method?
If your difficulty is mainly with subscription payment and account requirements (many users in China can't easily pay for these services with a mainland card), AGI Plan is one option. Disclosure: AGI Plan is a commercial partner of cdnping, and the following is based on information published on its official site:
- Monthly subscription, billed in RMB, with no overseas credit card needed.
- Compatible with both the OpenAI and Anthropic API formats. For tools such as Claude Code and Codex, you only need to change one endpoint address, and Codex doesn't need a ChatGPT account.
- One subscription can switch between multiple capability groups. Plan prices and quotas are as listed at agiplan.dev/pricing.
- The service states clearly that it is not an officially authorized channel. Some models are marked as available only outside mainland China; check agiplan.dev/models for details.
It can't handle an appeal for an existing account for you, and it doesn't mean you can bypass any service's terms. To learn the setup steps, start at agiplan.dev/startup. For how the two tools can share quota, see Can Claude Code and Codex share one quota?
Next steps
- Already banned: save the notice, check yourself against the five boundaries above, then appeal through the official channel.
- Not banned yet: check whether you have ever shared credentials, and move automation and multi-user scenarios to an API key.
- Want to compare a similar situation with another tool: read Why Claude Code accounts get banned. The logic around credentials and automation is similar.
- Want a broader self-audit: see the beginner self-check list.