# Connecting CrawlGenie to the LLM platforms people already use

CrawlGenie is an engine, not a chat product. Adoption happens where people already work: ChatGPT, claude.ai, Claude Code,
Cursor, Codex, Gemini CLI, the OpenAI Agents SDK, LangChain / Vercel AI SDK, n8n and Zapier. One key works on every surface below.
(Snippets with your URL and key pre-filled: dashboard →
**Connect your AI**.)

## Why web access is expensive inside LLM platforms (and what CrawlGenie changes)

| Pattern today | Where the tokens go | What CrawlGenie does instead |
|---|---|---|
| "Browse" tools paste page HTML or a full accessibility tree into context on every step | 10k–180k tokens per look (measured: Playwright repo page = 175,436 HTML tokens) | Ranked **interactive snapshot** with refs: about 6,000 tokens on average (measured 19× fewer over whole tasks) |
| Every step re-reads the whole page even if nothing changed | A 10-step task pays 10 full pages | **Delta** observations: 21–127 tokens after a scroll |
| Agent reads a long article or PDF to answer one question | 25k–140k tokens, mostly irrelevant | **`q=` focus**: only the matching passages (98.0% saved on a 73,964-token Wikipedia article, 99.1% on a 152-page annual report) |
| The same job (prices, jobs, reviews) is browsed again every day | Full browsing cost × days | **Extractors and routines**: structured rows, zero model tokens, scheduled, "what changed" |
| Retries after CAPTCHAs, timeouts, stale selectors | Tokens for every failed attempt | Challenge detection stops the loop; approvals and takeover hand the step to a human |
| Tool results have no budget | Context fills, model truncates unpredictably | **`maxTokens`** on snapshot/text/scrape: exact BPE truncation |
| Secrets and logins live in prompts | Re-login every run, risk | Profiles with locks; `{{secret:name}}` substituted server-side |

Everything above is metered with a real tokenizer and shown on the **Token savings** page and the homepage ROI calculator.

## Chat platforms (no code)

### ChatGPT (custom connector) · claude.ai · Claude Desktop · Claude mobile
1. ChatGPT (Business, Enterprise, Edu, on the web; Business: an admin or owner): **Plugins** → + → **Add custom MCP server** → URL
   `https://crawlgenie.com/mcp/chat`, auth **OAuth**, tick the risk warning, **Create as a plugin**; in a chat type @CrawlGenie.
   Claude (all plans; Free allows one): Customize → **Connectors** → + Add → Add custom connector → same URL; switch it on in a
   chat from + → Connectors; so Claude stops asking before each use, set the read-only tools to **Always allow** under
   Customize → Connectors → CrawlGenie → Tool permissions. Perplexity (Pro, Max, Enterprise): Plugins (or Customize → Connectors) → Add custom → Add MCP connector → Remote → same URL.
   `/mcp/chat` is the lean profile for chat apps: the tools a chat reaches for (read one or several pages, research, site answers, search,
   extractors, company profiles, monitor, your agents, work memory, AI visibility on Team, compress, help, and the browser tools for signing in and clicking). Chat
   apps send every tool definition with every message, so the shorter list is a saving on each turn. `https://crawlgenie.com/mcp`
   lists every tool and is what coding agents use.
   **No account yet?** crawlgenie.com/try hands you a personal trial address (`https://crawlgenie.com/mcp/try/<code>`) that works
   with no sign-in at all: reading, research, compress and help, 10 calls an hour and 30 a day per address for 30 days, at the
   lowest priority. Choose "No sign in" / "No authentication" when adding it, and start questions with "Use CrawlGenie". Every answer ends with how many trial calls are left and how to create a free
   account. After signing up, change the address to `/mcp/chat`.
2. The platform opens CrawlGenie's consent page: sign in or paste an API key, click **Allow**. CrawlGenie mints a key named
   `oauth:<platform>` for your workspace; revoke it any time under API keys. (OAuth 2.1 with PKCE and Dynamic Client
   Registration; `/.well-known/oauth-authorization-server`, `/.well-known/oauth-protected-resource`.)
3. If a platform only supports "no auth / token in URL", use `https://crawlgenie.com/mcp/chat?token=<key>`. Prefer OAuth where it
   exists: a token in a URL can end up in the platform's logs; if you must use it, mint a dedicated key so it can be revoked alone.
4. Then just ask: *"Use CrawlGenie to list every open product-manager role at Stripe"*, *"watch r/SaaS for mentions of
   Acme"*, *"read this PDF and tell me the refund policy"*, *"log in to my supplier portal (profile 'acme') and download the invoice"*.

### Claude Code plugin
One install adds the CrawlGenie MCP server and five skills: `web` (Claude picks the cheapest CrawlGenie call for any web job instead of raw fetches), `/crawlgenie:new-agent` (a hosted web agent from one sentence, run once, saved as its own test), `/crawlgenie:test-agent` (why an agent failed, run its tests, accept a changed site), `/crawlgenie:watch` (alerts only when a plain-words condition holds) and `agent-definition` (the definition file when words are not enough).
```bash
export CRAWLGENIE_API_KEY=<key>
claude plugin marketplace add crawlgenie/crawlgenie-plugins
claude plugin install crawlgenie@crawlgenie
```
The plugins live in the public repository [github.com/crawlgenie/crawlgenie-plugins](https://github.com/crawlgenie/crawlgenie-plugins); `claude plugin marketplace update` brings new versions. Without GitHub, download `crawlgenie-claude-code-plugin.zip` from **Connect your AI**, unzip it and use `./crawlgenie-claude-code-plugin` in place of the repository name; for one session only: `claude --plugin-dir ./crawlgenie-claude-code-plugin`. The plugin holds no code: a server address, a key reference and text; every call goes to crawlgenie.com with your key.

**Automatic savings (hooks).** Connected tools alone are a suggestion Claude may ignore; the plugin's hooks act on their own. Before a web search, CrawlGenie answers it in one step with the passages and their links (a fast read without a browser, so it never waits long). Before a fetch of a PDF, an Office file, a YouTube video or a site WebFetch failed on, CrawlGenie reads it instead. After a fetch that failed or hit a block page, CrawlGenie reads the same page and Claude gets that. At the start of a session, a small script in the plugin brings one line saying the tools are there, with this project's work-memory notes when there are any. Ordinary pages still go through WebFetch. Every hook steps aside when CrawlGenie is slow, over your plan or unreachable. `/crawlgenie:savings-line on` puts the tokens CrawlGenie saved today and in the last 30 days in Claude Code's status line (totals only, asked once a minute). `/crawlgenie:auto-compress on` shortens Bash and PowerShell outputs over about 4,000 tokens on your machine, leaving code and diffs exactly as they were and keeping the whole output in a local file for a day (off until you turn it on; outputs are never sent). The hooks send the search query, or the page address and its prompt, and the project folder's name at session start. `/crawlgenie:brief on` adds one more instruction at session start: answer first, no preamble or recap, code and error messages exact.

**Automatic savings in Codex, Gemini CLI and Cursor.** These agents run hooks as commands, so one small script carries each event to CrawlGenie. Download it and add it to your agent: `curl -LO https://crawlgenie.com/downloads/crawlgenie-hook.mjs`, then `node crawlgenie-hook.mjs install codex` (or `gemini-cli`, or `cursor`), with your key in `CRAWLGENIE_API_KEY`. It adds its entries to that agent's hook file, keeps a copy of the old file, and `uninstall` takes them out. What it does differs by agent, because their hooks differ: in Gemini CLI web searches are answered by CrawlGenie and documents read by it; in Cursor, tools that search or fetch the web are matched by name; in Codex, whose web search cannot be hooked, a plain `curl` of a web page is read by CrawlGenie instead. All three get this project's work-memory notes at session start. Codex asks you to trust new hooks with `/hooks` first.

### Claude Code · Cursor · VS Code · Windsurf · Google Antigravity · Codex · Gemini CLI
```bash
claude mcp add --transport http crawlgenie https://crawlgenie.com/mcp --header "Authorization: Bearer <key>"
gemini mcp add --transport http --header "Authorization: Bearer <key>" crawlgenie https://crawlgenie.com/mcp
```
Cursor `mcp.json`: `{ "mcpServers": { "crawlgenie": { "url": "https://crawlgenie.com/mcp", "headers": { "Authorization": "Bearer <key>" } } } }`.
VS Code `.vscode/mcp.json`: `{ "servers": { "crawlgenie": { "type": "http", "url": "https://crawlgenie.com/mcp", "headers": { "Authorization": "Bearer <key>" } } } }`.
Windsurf and Google Antigravity `mcp_config.json` (Antigravity: agent panel ⋯ → MCP Servers → Manage MCP Servers → View raw config): `{ "mcpServers": { "crawlgenie": { "serverUrl": "https://crawlgenie.com/mcp", "headers": { "Authorization": "Bearer <key>" } } } }`.
Claude desktop adds remote servers as connectors (Customize → Connectors), the same as Claude on the web.
Codex `config.toml`: `[mcp_servers.crawlgenie] url = "https://crawlgenie.com/mcp" http_headers = { Authorization = "Bearer <key>" }`.
Agents also understand `curl https://crawlgenie.com/skill.md` — the onboarding file tells them which call to use for which job.

### Claude plugin (chat and desktop app)
Download `crawlgenie-claude-plugin.zip` from **Connect your AI** (its files are also in [github.com/crawlgenie/crawlgenie-plugins](https://github.com/crawlgenie/crawlgenie-plugins)) and upload it in Claude under Customize → Plugins → Add → Upload plugin, then connect CrawlGenie from the plugin's Connectors tab (you sign in on CrawlGenie's page; the plugin holds no keys). Its three skills (web, watch, remember) tell Claude when to use CrawlGenie, so web searches, links, documents, watches and decisions go to CrawlGenie without being asked. Claude Code has its own plugin with hooks.

### Chrome extension
For people who never write code. Download it from the dashboard (**Connect your AI → Get the extension**), load it in Chrome
(chrome://extensions, Developer mode, Load unpacked) and paste the extension key from the same page into its Settings. It shows a notice when a newer version is out: download it again, unzip it over the same folder and press ↻ on its card in chrome://extensions.
Actions: *Read this page for my AI* (clean text or the passages that answer a question, copied with the token savings), *Use what I see*
(sends the text on your screen, so pages behind your own logins work), *Save to Memory*, *Watch this page* (daily), *Open in a
CrawlGenie browser*, plus right-click menus, including *copy this image as text for my AI* and *copy what I see as text for my AI* (the text of an image or of your screen, to paste into a chat instead of a screenshot). Nothing is sent until you click an action.

**Smaller files in ChatGPT and Claude** (on by default, no key needed): a PDF, Word, PowerPoint or Excel file you attach on chatgpt.com or claude.ai goes in as text plus pictures of only its charts, photos and figures, converted on your computer (see [Documents](/docs/documents#files-attached-inside-chatgpt-or-claude)). Untick it in the popup or in Settings to send files as they are. It works the same in Microsoft Edge.

**Read blocked pages** (Settings, off until you tick it): while Chrome is open, a page your AI asks for that blocks CrawlGenie's servers is read from your own Chrome and handed back, in every connected app (Claude, ChatGPT, Cursor, the API). Pages are read without your cookies, except on the sites you list under *Sites where my sign-in may be used*, which open in a minimised window with your sign-in. It only reads, refuses your own network's addresses and paces itself per site. Without Chrome, `node crawlgenie-hook.mjs relay` does the same from any machine (no cookies, no logins) until you stop it.

## Agent frameworks (code)

| Framework | How |
|---|---|
| OpenAI Agents SDK / Responses API | hosted MCP tool: `{ type: "mcp", server_label: "crawlgenie", server_url: "https://crawlgenie.com/mcp", headers: { Authorization: "Bearer <key>" } }`, or `GET /v1/tools?format=openai` as plain functions |
| Anthropic Messages API | `GET /v1/tools?format=anthropic` → `tools`; execute with `POST /v1/tools/{name}` |
| Gemini | `GET /v1/tools?format=gemini` → `functionDeclarations` |
| Vercel AI SDK / LangChain JS | `const tools = await cg.tools.executable()` → `[{ name, description, parameters, execute }]` |
| LlamaIndex / LangChain Python | `v.tools("openai")` + `v.call_tool(name, args)` |
| n8n / Zapier / Make | HTTP Request node → any `/v1/...` endpoint; watches post webhooks (`watch.run`, `session.challenge`, `approval.pending`) back into the workflow |
| Custom GPT Actions | import `https://crawlgenie.com/openapi.json` (bearer auth) |
| Playwright / Puppeteer code you already have (Pro, isolated tier) | `connectOverCDP('wss://crawlgenie.com/v1/sessions/<id>/cdp?token=<key>')` |

## What a day-to-day user does with it

| Role | Monday morning with CrawlGenie |
|---|---|
| Founder / marketer | ChatGPT: *"what did competitors ship this week?"* → sitemap + Product Hunt + HN watches already ran; the answer costs a few hundred tokens |
| Recruiter | Greenhouse/Lever/Ashby/LinkedIn-jobs watches → one CSV of new roles; Claude drafts outreach from the rows |
| Sales | tech-stack + website-contacts extractors on a list of domains → enrichment without a per-row vendor |
| Analyst | SEC filings, stock quotes, Federal Register watches with alerts; `q=` to answer one question from a 200-page PDF |
| Support / ops | routine replays the supplier-portal export nightly; approvals gate anything that pays or sends |
| Developer | MCP in Cursor/Claude Code; `maxTokens` budgets per tool call; Token savings page as the proof in the cost review |

## Measuring it on your own account

`packages/server/scripts/ab-connector.sh` runs the same three questions through Claude Code's built-in web tools and
through the CrawlGenie connector and prints cost, tokens, turns and the answers side by side (needs `claude login` and
`claude mcp add … crawlgenie`). The Token savings page separates savings per surface — API, MCP, tools API, dashboard,
built-in agents and each OAuth connector — so a ChatGPT or claude.ai user sees their own line.

## Remembering instead of re-reading (Knowledge) and asking CrawlGenie about itself

Through the connector or MCP, `knowledge_add` stores a page, document or video once and `knowledge_search` answers later questions from the. `work_memory` with `action: "delete"` and a collection's name removes it when you ask.
stored passages (a few hundred tokens). `crawlgenie_help` answers "how do I…" questions about CrawlGenie from the built-in docs — the same retrieval
engine that powers the dashboard's **Ask CrawlGenie** and that you can embed on your website (`POST /help/ask`, no key, no model).

## Uploaded files inside ChatGPT / Claude

A file attached directly in the chat is processed and billed by the platform; connectors never see it. The Chrome
extension makes PDF and Office attachments smaller before the chat gets them (above). Without it, give documents to CrawlGenie first (Playground → Parse drop zone, `/v1/parse`, or a URL via `web_answer`): PDF
(text layer or OCR), DOCX, XLSX, PPTX and images come back as text or as the passages that answer your question, and
YouTube links come back as transcripts. Video and audio files are not transcribed (no speech model).
