[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [ChatGPT and Codex documentation search](https://spiral.ai/integrations/codex/chatgpt-and-codex-documentation-search)

# How to Use ChatGPT and Codex documentation search in Codex

Returns matches from OpenAI's documentation search restricted to the ChatGPT Learn site. Use it to locate guidance for a specific question before reading the relevant page or section.

|  |  |
| --- | --- |
| Model | ChatGPT and Codex documentation search |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with ChatGPT and Codex documentation search in Codex

- Use ChatGPT and Codex documentation search to find official guidance on Codex hooks, then identify which results are relevant to this project's lifecycle handlers.
- Use ChatGPT and Codex documentation search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from ChatGPT and Codex documentation search and tell me what changed since last week.
- Check ChatGPT and Codex documentation search and summarize what you find in three bullet points.
- Pull the newest data from ChatGPT and Codex documentation search and give me the result as a table.

## How to set up ChatGPT and Codex documentation search in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run ChatGPT and Codex documentation search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "learn-chatgpt-com/developer-documentation/search_docs",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: Codex finds ChatGPT and Codex documentation search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## ChatGPT and Codex documentation search tools and prices

- [ChatGPT and Codex docs · Search docs](https://spiral.ai/tools/alexandria/learn-chatgpt-com/developer-documentation/search_docs) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 50 | 10 | Results to return (default 10). |
| cursor |  | — | next_cursor from an earlier result, to continue the same query. Pattern: ^[0-9]{1,6}\.[0-9]{1,3}\.[A-Za-z0-9+/=_-]{1,480}$. |

## What can you do with ChatGPT and Codex documentation search in Codex?

Review a project's Codex guidance against official documentation for hooks, AGENTS.md, and plugins. A coding agent can turn the relevant passages and dated changes into proposed edits with source links.

### Review an onboarding guide

Map the relevant ChatGPT Learn topics, find guidance for the guide's claims, read the source passages, and check dated updates for changes that require a rewrite.

### Prepare a Codex migration assessment

Find the documentation for the workflow being migrated, assemble the related reading list, inspect exact instructions, and use changelog entries to explain relevant changes over time.

### Maintain a support knowledge base

Compare support answers with official passages, discover missing documentation topics, and review release notes for fixes that make an old workaround unnecessary.

### Build a topic-specific update briefing

Use hooks or plugins as the briefing topic. Combine dated announcements with a map of relevant guides and source passages that explain how the documented behavior works.

### Check a hooks implementation

Locate the official hooks guidance and read the relevant sections before reviewing a project's lifecycle handlers. Use the passages to explain which implementation choices need attention.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## ChatGPT and Codex documentation search in other agents

- [Amp](https://spiral.ai/integrations/amp/chatgpt-and-codex-documentation-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/chatgpt-and-codex-documentation-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/chatgpt-and-codex-documentation-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/chatgpt-and-codex-documentation-search)
- [Cline](https://spiral.ai/integrations/cline/chatgpt-and-codex-documentation-search)
- [Cursor](https://spiral.ai/integrations/cursor/chatgpt-and-codex-documentation-search)
- [Devin](https://spiral.ai/integrations/devin/chatgpt-and-codex-documentation-search)
- [dots](https://spiral.ai/integrations/dots/chatgpt-and-codex-documentation-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/chatgpt-and-codex-documentation-search)
- [Gemini](https://spiral.ai/integrations/gemini/chatgpt-and-codex-documentation-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/chatgpt-and-codex-documentation-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/chatgpt-and-codex-documentation-search)
- [goose](https://spiral.ai/integrations/goose/chatgpt-and-codex-documentation-search)
- [Grok](https://spiral.ai/integrations/grok/chatgpt-and-codex-documentation-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/chatgpt-and-codex-documentation-search)
- [Hermes](https://spiral.ai/integrations/hermes/chatgpt-and-codex-documentation-search)
- [Instinct](https://spiral.ai/integrations/instinct/chatgpt-and-codex-documentation-search)
- [Manus](https://spiral.ai/integrations/manus/chatgpt-and-codex-documentation-search)
- [Muse](https://spiral.ai/integrations/muse/chatgpt-and-codex-documentation-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/chatgpt-and-codex-documentation-search)
- [n8n](https://spiral.ai/integrations/n8n/chatgpt-and-codex-documentation-search)
- [Notion](https://spiral.ai/integrations/notion/chatgpt-and-codex-documentation-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/chatgpt-and-codex-documentation-search)
- [opencode](https://spiral.ai/integrations/opencode/chatgpt-and-codex-documentation-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/chatgpt-and-codex-documentation-search)
- [Raycast](https://spiral.ai/integrations/raycast/chatgpt-and-codex-documentation-search)
- [VS Code](https://spiral.ai/integrations/vscode/chatgpt-and-codex-documentation-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/chatgpt-and-codex-documentation-search)
- [Zapier](https://spiral.ai/integrations/zapier/chatgpt-and-codex-documentation-search)

## More Codex guides

- [ChatGPT and Codex documentation page](https://spiral.ai/integrations/codex/chatgpt-and-codex-documentation-page)
- [Claude (claude.com) Search docs](https://spiral.ai/integrations/codex/claude-claude-com-search-docs)
- [ChatGPT and Codex documentation index](https://spiral.ai/integrations/codex/chatgpt-and-codex-documentation-index)
- [Claude API endpoint reference](https://spiral.ai/integrations/codex/claude-api-endpoint-reference)
- [ChatGPT and Codex changelog](https://spiral.ai/integrations/codex/chatgpt-and-codex-changelog)
- [Claude API release notes](https://spiral.ai/integrations/codex/claude-api-release-notes)

## Questions about ChatGPT and Codex documentation search in Codex

**Can Codex use ChatGPT and Codex documentation search?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run ChatGPT and Codex documentation search like any built-in tool.

**How much does ChatGPT and Codex documentation search cost in Codex?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an Alexandria account to use ChatGPT and Codex documentation search in Codex?**

No. Spiral runs ChatGPT and Codex documentation search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up ChatGPT and Codex documentation search in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while ChatGPT and Codex documentation search runs?**

ChatGPT and Codex documentation search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**What documentation does this source cover?**

It covers the ChatGPT and Codex guides and references published on ChatGPT Learn. The documentation index identifies a combined export for those two products.

**Does the documentation search cover the wider web?**

The search uses OpenAI's own documentation search restricted to the ChatGPT Learn site. It is suitable for finding official guidance rather than community discussions or third-party tutorials.

**Can the documentation be read as Markdown?**

Yes. ChatGPT Learn publishes Markdown versions by appending .md to documentation page URLs, and provides llms.txt as its complete documentation index.

**How often does the source publish feature summaries?**

The documentation index describes What's new as a weekly digest. That describes the feature summary, rather than a guaranteed refresh schedule for every guide.

**Where does OpenAI document smaller fixes and API changes?**

What's new points to the ChatGPT and Codex changelog for versioned updates, bug fixes, and minor improvements. It links a separate API changelog, so ChatGPT and Codex update entries should not be treated as a complete API change history.

