# Codex

> Codex is a bot list name for OpenAI's Codex coding agent. OpenAI's crawler page does not list it, and OpenAI documents no Codex robots.txt token.

Canonical: https://promptlyfound.com/crawlers/codex
Updated: 2026-11-29

## Short answer

Codex is the name that bot lists give the web requests of OpenAI's Codex coding agent. OpenAI says local Codex chats use cached search from an OpenAI index by default. **OpenAI's crawler page does not list Codex, so a Codex rule in robots.txt is only a request.** Known Agents reports the user agent codex-mcp-client, which OpenAI's Codex source code sets for its MCP client.

## Key findings

- OpenAI's crawler overview lists OAI-SearchBot, OAI-AdsBot, GPTBot and ChatGPT-User. It does not name Codex. [1]
- OpenAI says local Codex chats use cached search by default. Cached mode uses an OpenAI-maintained index instead of fetching arbitrary pages live. [2]
- OpenAI says Codex web search is a hosted tool, separate from sandboxed local command networking. When Codex runs with full access, web search defaults to live results. [2]
- OpenAI's Codex source code sets the user agent codex-mcp-client followed by a version number in the default headers of its MCP client. [3]
- Known Agents lists Codex as an OpenAI coding agent that a user action triggers. Its top user agents start with codex-mcp-client. It says Codex publishes no verification method. [4]

## What blocking it does

OpenAI has not documented a Codex crawler. Its [crawler overview](https://platform.openai.com/docs/bots) lists four agents: OAI-SearchBot, OAI-AdsBot, GPTBot and ChatGPT-User.[1] Codex is not on the list. OpenAI says each of its settings is independent of the others.[1]

OpenAI's [web search page](https://learn.chatgpt.com/docs/web-search) says local Codex chats use cached search by default. Cached mode uses an OpenAI-maintained index instead of fetching arbitrary pages live.[2] A developer can turn on live search. When Codex runs with full access, web search defaults to live results.[2] OpenAI says web search is a hosted tool, separate from sandboxed local command networking.[2] The page names no user agent for these searches.

[Known Agents](https://knownagents.com/agents/codex) lists Codex as an OpenAI coding agent. It says a user action triggers it and that it fetches documentation and other resources to help build software.[4] Known Agents expects it to follow robots.txt.[4] This is a third-party view, not an OpenAI statement.

## robots.txt rules

This group asks Codex to stay out of the whole site. OpenAI has not said that Codex reads it:

```
User-agent: Codex
Disallow: /
```

A rule for Codex does not name [ChatGPT-User](https://promptlyfound.com/crawlers/chatgpt-user), [OAI-SearchBot](https://promptlyfound.com/crawlers/oai-searchbot) or [GPTBot](https://promptlyfound.com/crawlers/gptbot). A firewall rule that matches "codex-mcp-client" in the user agent can refuse those requests. robots.txt can only ask.

## Verify a request

You cannot verify a Codex request. OpenAI's [Codex source code](https://raw.githubusercontent.com/openai/codex/main/codex-rs/rmcp-client/src/utils.rs) sets the user agent `codex-mcp-client/` plus a version number in the default headers of its MCP client.[3] Known Agents reports strings such as `codex-mcp-client/0.169.0-alpha.11.1`.[4] It says Codex publishes no verification method, so any client can send the name.[4] OpenAI publishes IP lists for its four documented agents.[1] It does not say that Codex uses those addresses. A match in your logs is only a clue.

## Sources

1. Overview of OpenAI Crawlers. OpenAI. https://platform.openai.com/docs/bots
2. Web search. ChatGPT Learn (OpenAI). https://learn.chatgpt.com/docs/web-search
3. codex-rs/rmcp-client/src/utils.rs. OpenAI (GitHub). https://raw.githubusercontent.com/openai/codex/main/codex-rs/rmcp-client/src/utils.rs
4. What Is Codex? User Agent & Robots.txt Blocking. Known Agents. https://knownagents.com/agents/codex

---

This is a plain-text copy of https://promptlyfound.com/crawlers/codex from Promptly Found. The web page is the canonical version and includes the charts.
