Spiral gives your agent every tool with one account. Browse the tools →

Grok · Developer

How to Use ChatGPT and Codex documentation search in Grok

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.

Prompts to try with ChatGPT and Codex documentation search in Grok

Copy an example into Grok, or ask in your own words.

Use ChatGPT and Codex documentation search to find official explanations of Codex hooks and show the most relevant source links.

ChatGPT and Codex documentation searchGrok
Try asking
  • Use ChatGPT and Codex documentation search to look this up and give me the result as a table.

  • 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 Grok

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

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok 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.

    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.

    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: Grok finds ChatGPT and Codex documentation search on Spiral, shows the price and runs it.

ChatGPT and Codex documentation search providers and prices

Spiral runs ChatGPT and Codex documentation search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaDeveloper
ChatGPT and Codex docs · Search docs
learn-chatgpt-com/developer-documentation/search_docs

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 5010

Results to return (default 10).

Every API field of ChatGPT and Codex docs · Search docs is on its tool page: open its card above.

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

Get an explanation of a ChatGPT or Codex feature backed by official source passages. A chat app can organize the relevant reading and explain how dated updates relate to the guidance.

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.

Questions about ChatGPT and Codex documentation search in Grok

Can Grok use ChatGPT and Codex documentation search?

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

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

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

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

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 Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while ChatGPT and Codex documentation search runs?

ChatGPT and Codex documentation search runs in the background. Grok 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.

Get started

Start using ChatGPT and Codex documentation search in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options