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

# How to Use ChatGPT and Codex documentation page in Google Antigravity

Returns an official documentation page as Markdown, with a heading outline and section reads. Use it to inspect exact guidance on hooks, AGENTS.md, or plugins after finding the relevant page.

|  |  |
| --- | --- |
| Model | ChatGPT and Codex documentation page |
| 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 page in Google Antigravity

- Use ChatGPT and Codex documentation page to read https://learn.chatgpt.com/docs/hooks and review our .codex/hooks.json against the relevant passages.
- Use ChatGPT and Codex documentation page to read https://learn.chatgpt.com/docs/agent-configuration/agents-md and suggest corrections to this repository's Codex instructions.
- Use ChatGPT and Codex documentation page 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 page and tell me what changed since last week.
- Check ChatGPT and Codex documentation page and summarize what you find in three bullet points.

## How to set up ChatGPT and Codex documentation page in Google Antigravity

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

### Use Spiral's MCP server

1. **Open the MCP config**: * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit `~/.gemini/config/mcp_config.json`.

2. **Add the server**: Add Spiral under `mcpServers`:

```json
{
  "mcpServers": {
    "spiral": {
      "serverUrl": "https://api.spiral.ai/mcp"
    }
  }
}
```

3. **Sign in**: In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

### Use the Spiral skill

1. **Send Google Antigravity 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 page**: 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/get_page",
    "input": {
      "slug": "<slug>"
    }
  }'
```

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

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

## ChatGPT and Codex documentation page tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Alternatively a page URL: https://learn.chatgpt.com/docs/hooks, its .md twin, or a legacy https://developers.openai.com/codex/... URL (resolved through the site redirect). A #anchor selects that section. Pattern: ^https?://. |
| slug |  | — | Docs slug after /docs/, e.g. hooks, agent-configuration/subagents, whats-new/devday-2026 (a trailing .md is accepted). list_pages and search_docs return slugs. Pattern: ^/?[A-Za-z0-9][A-Za-z0-9._-]*(/[A-Za-z0-9][A-Za-z0-9._-]*)*/?$. |
| section |  | — | Return only this heading and its subsections: heading text or anchor, case-insensitive (e.g. Matcher patterns or matcher-patterns). Overrides a URL anchor. Unknown sections are not_found. |
| max_chars | 200 to 2000000 | — | Truncate content to this many characters. |

## What can you do with ChatGPT and Codex documentation page in Google Antigravity?

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.

### Create a documentation reading list

Browse the documentation index for AGENTS.md, hooks, and plugins, then read the selected pages to write short descriptions of what each guide helps a developer accomplish.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Google Antigravity guides](https://spiral.ai/integrations/antigravity)

## ChatGPT and Codex documentation page in other agents

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

## More Google Antigravity guides

- [ChatGPT and Codex documentation index](https://spiral.ai/integrations/antigravity/chatgpt-and-codex-documentation-index)
- [ChatGPT and Codex documentation search](https://spiral.ai/integrations/antigravity/chatgpt-and-codex-documentation-search)
- [ChatGPT and Codex changelog](https://spiral.ai/integrations/antigravity/chatgpt-and-codex-changelog)
- [Claude (claude.com) Search docs](https://spiral.ai/integrations/antigravity/claude-claude-com-search-docs)
- [CVE.org vulnerability record](https://spiral.ai/integrations/antigravity/cve-org-vulnerability-record)
- [Claude API endpoint reference](https://spiral.ai/integrations/antigravity/claude-api-endpoint-reference)

## Questions about ChatGPT and Codex documentation page in Google Antigravity

**Can Google Antigravity use ChatGPT and Codex documentation page?**

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

**How much does ChatGPT and Codex documentation page cost in Google Antigravity?**

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

**Do I need an Alexandria account to use ChatGPT and Codex documentation page in Google Antigravity?**

No. Spiral runs ChatGPT and Codex documentation page 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 page in Google Antigravity?**

About two minutes: open the MCP config, then add the server, then sign in.

**Does Google Antigravity wait while ChatGPT and Codex documentation page runs?**

ChatGPT and Codex documentation page runs in the background. Google Antigravity 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.

