ChatGPT and Codex agent detection: crawlers versus browser sessions
Distinguish GPTBot, OAI-SearchBot, ChatGPT-User, and interactive browser agents. Verify request identities and investigate sessions in Marshy.
Obaid Ahmed4 min read
Detect ChatGPT and Codex website activity by separating documented OpenAI crawlers from interactive browser agents. Verify claimed GPTBot, OAI-SearchBot, and ChatGPT-User requests against current provider information. For signed-in browser work, use Marshy session evidence and task outcomes; a crawler token does not identify every ChatGPT or Codex browser journey.
That separation lets you permit useful public discovery while applying ordinary permissions to customer-account operations.
Know which OpenAI surface you are observing
OpenAI's crawler documentation distinguishes three relevant identifiers:
| Identifier | Documented purpose | Appropriate interpretation |
|---|---|---|
OAI-SearchBot |
Finding content for search | Search-crawler activity |
GPTBot |
Crawling content that may be used for model training | Training-crawler activity |
ChatGPT-User |
Certain user-initiated ChatGPT or custom GPT visits | User-triggered retrieval |
The settings for search and training are independent. OpenAI also publishes address lists for those services. ChatGPT-User is not an automatic crawler, and its user-initiated requests may not follow robots.txt rules in the same way.
These identifiers do not cover every browser session operated through Codex or ChatGPT. Avoid using GPTBot as a synonym for all OpenAI agents.
Browser agents may use signed-in sessions
The official browser documentation describes a built-in browser with a separate profile and browser control available to ChatGPT Work or Codex. It also describes cloud browser work in ChatGPT Work. The browser-extension documentation covers supported access through the user's existing browser.
The implication for your product is that an agent can operate a browser that already has an account session, or use a separate browser where the customer signs in. The account is relevant evidence about the customer; it does not identify the operator or establish approval for every action.
A coding agent can also use a configured HTTP client, connector, or tool integration. Those paths require server-side observation because your website's JavaScript may not run.
Verify declared crawler requests at the server
Treat a declared user agent as a routing hint. If you need to attribute a crawler request to OpenAI, validate the source address against the current provider-published list for that specific service.
In a deployment behind a CDN or proxy, use the client address derived by your trusted edge configuration. Do not accept an arbitrary incoming X-Forwarded-For value as verified identity.
Your result should retain its evidence:
{
"surface": "crawler",
"claimed_operator": "openai",
"verification": "provider_ip_list",
"verification_result": "matched",
"action": "read_public_page"
}
This is an illustrative log design, not an OpenAI response or a ready-made verifier. Refresh provider data, handle verification failures explicitly, and avoid broad rules that trust unrelated traffic from the same hosting network.
Detect interactive agent activity inside your product
For browser sessions, collect a coherent view of the journey: navigation, interaction, authenticated account, and completed operations. Look for automation evidence across the session rather than assuming a recognizable browser string is enough.
Use a detector's classification as one field in that record. Keep provider attribution separate. A class such as browser automation cannot, on its own, tell you whether Codex, another assistant, or your QA runner directed the browser.
With Marshy AI agent detection, use your Marshy integration's snippet to observe browser sessions, then inspect the advisory verdict alongside your account and operation records. The technical overview explains the detection approach. The browser-side classification should not be copied directly into a trusted authorization decision.
Build a task record that establishes the operator
Run an owned staging task through the specific OpenAI access path you want to evaluate. Record the product and version, browser or API path, account permissions, task window, and server-confirmed result. Match the browser visit to the task rather than guessing the operator from a familiar user-agent string.
A browser task, a direct tool request, and a search fetch are separate cases. Include a customer takeover and an interrupted journey. Use the evaluation run sheet to compare known human and automation tasks without turning a few successful examples into a universal provider fingerprint.
Keep search access and product permissions separate
You might permit search crawling on public documentation while requiring scoped credentials for account exports. You might also allow a customer-assisted browser journey while refusing an unapproved destructive change.
Those policies can coexist. They are easier to maintain when your logs distinguish the crawler, browser, and API surfaces.
For a detailed discovery policy, read robots.txt, llms.txt, and MCP. For a product rollout, use what to do when AI agents use your product. Create your website integration in Marshy; the implementation documentation covers the technical installation details.
Can I allow ChatGPT search but restrict agent actions?
Yes. The provider documents independent search and training crawler settings. Express your public crawling preferences with the documented tokens, then enforce authenticated operations separately. An allowed search request does not receive account export permission. Use the website protection guide to keep discovery and private actions in different policy rows.
Official documentation checked October 8, 2026. Log formats and test cases are editorial examples, not provider contracts or measured accuracy results.