Skip to content

API keys and secrets

EdgeFetch works without any third-party key: scraping, crawling, site adapters and robots-checked fetching need none. The keys below each add one capability, such as open-web search engines, an LLM for the agent tool, or rendering fallbacks. The same text appears behind the i button next to each key in the hub’s /admin page.

Keys are always yours: EdgeFetch never ships a shared key, and requests that use a key are billed to your account with that provider.

Provider keys and settings (set in /admin)

Owners can set these from the hub’s /admin page (Secrets & Provider Keys). Secret values are sealed with AES-256-GCM and only a fingerprint is shown afterwards; config values are shown in full. A value saved in /admin overrides the deployment environment within about 30 seconds.

SERPER_API_KEYsecret

What it does
Google results for the search tool through Serper.dev's SERP API.
Benefit
Broad, fresh open-web results; the default first engine for search. Each query costs one Serper credit.
Where to get it
Sign up at Serper.dev and copy the API key from the dashboard. serper.dev

BRAVE_API_KEYsecret

What it does
Brave Search API results for the search tool, from Brave's independent index.
Benefit
A second independent index for better coverage and fallback when another engine is rate limited.
Where to get it
Subscribe to a Brave Search API plan and create a key in the API dashboard. brave.com/search/api/

TAVILY_API_KEYsecret

What it does
Tavily Search API as a search fallback (basic depth, one credit per query).
Benefit
Keeps search answering when the primary engines fail or return too few results.
Where to get it
Create an account at Tavily and copy the API key. app.tavily.com

CERAMIC_API_KEYsecret

What it does
Direct Ceramic.ai search, used only when a request asks for providers: ["ceramic"].
Benefit
Lets you compare or use Ceramic's index explicitly; never used by default.
Where to get it
Request an API key from Ceramic.ai. ceramic.ai

SEARXNG_URLconfig

What it does
Base URL of a SearXNG metasearch instance you run, queried through its JSON API.
Benefit
Keyless, self-hosted open-web search with no per-query cost. http:// is allowed only for localhost.
Where to get it
Deploy SearXNG (with the json output format enabled) and enter its base URL. docs.searxng.org

EDGEFETCH_LLM_PROVIDERconfig

What it does
Which LLM provider the agent tool and /v1/agent use when a request does not name one.
Benefit
Pins research and JSON-schema extraction to the provider you pay for or trust.
Where to get it
Plain config: enter a provider name supported by your deployment (for example openai or anthropic).

EDGEFETCH_LLM_BASE_URLconfig

What it does
Base URL of an OpenAI-compatible chat API for the agent tool (Ollama, LM Studio, vLLM, a gateway).
Benefit
Runs agent research on your own or a self-hosted model; per-request llm.baseUrl must match this prefix.
Where to get it
Plain config: the /v1 base URL of your OpenAI-compatible server.

EDGEFETCH_LLM_API_KEYsecret

What it does
API key sent to EDGEFETCH_LLM_BASE_URL.
Benefit
Authenticates the agent tool to a hosted OpenAI-compatible endpoint.
Where to get it
From the provider behind EDGEFETCH_LLM_BASE_URL (leave unset for a local Ollama).

EDGEFETCH_LLM_MODELconfig

What it does
Default model name for the agent tool.
Benefit
Chooses the cost and quality trade-off for research and extraction without per-request settings.
Where to get it
Plain config: a model id your configured provider serves.

OPENAI_API_KEYsecret

What it does
OpenAI models for the agent tool and LLM-assisted extraction.
Benefit
Enables multi-step research and semantic JSON-schema extraction using OpenAI models.
Where to get it
Create a secret key in the OpenAI platform dashboard. platform.openai.com/api-keys

OPENROUTER_API_KEYsecret

What it does
OpenRouter as the LLM provider for the agent tool.
Benefit
One key for many hosted models, so you can switch models without new accounts.
Where to get it
Create a key in your OpenRouter account. openrouter.ai/keys

ANTHROPIC_API_KEYsecret

What it does
Anthropic Claude models for the agent tool and LLM-assisted extraction.
Benefit
Enables multi-step research and JSON-schema extraction using Claude.
Where to get it
Create an API key in the Anthropic Console. console.anthropic.com/settings/keys

GEMINI_API_KEYsecret

What it does
Google Gemini models for the agent tool and LLM-assisted extraction.
Benefit
Enables agent research using Gemini models.
Where to get it
Create an API key in Google AI Studio. aistudio.google.com/apikey

OLLAMA_HOSTconfig

What it does
URL of an Ollama server for local models in the agent tool.
Benefit
Offline, no-cost agent research on your own hardware. http:// is allowed only for localhost.
Where to get it
Install Ollama and enter its URL (default http://127.0.0.1:11434). ollama.com

FIRECRAWL_API_URLconfig

What it does
Firecrawl endpoint for the heavy-SPA scrape fallback (defaults to Firecrawl's cloud API when a key is set).
Benefit
Lets a self-hosted Firecrawl handle JavaScript-heavy pages when no browser node is available.
Where to get it
Plain config: the base URL of your self-hosted Firecrawl, or leave unset for the cloud API. docs.firecrawl.dev

FIRECRAWL_API_KEYsecret

What it does
Firecrawl API key for the heavy-SPA scrape fallback.
Benefit
Rescues JavaScript-only pages that return empty HTML. Never used on robots.txt blocks, 403/429 responses or challenges.
Where to get it
Create an API key in the Firecrawl dashboard. www.firecrawl.dev/app/api-keys

CRAWL4AI_API_URLconfig

What it does
URL of a self-hosted Crawl4AI server used as a rendering fallback.
Benefit
Adds a self-hosted browser renderer for JavaScript-heavy pages.
Where to get it
Plain config: deploy Crawl4AI and enter its base URL. docs.crawl4ai.com

CRAWL4AI_API_TOKENsecret

What it does
Bearer token for an authenticated Crawl4AI instance.
Benefit
Lets EdgeFetch call a Crawl4AI server that requires authentication.
Where to get it
The API token configured on your Crawl4AI deployment.

PDF_OCR_URLconfig

What it does
Endpoint of an OCR service for scanned PDFs (used together with PDF_OCR_TOKEN).
Benefit
Turns image-only PDF pages into text instead of returning them empty.
Where to get it
Plain config: the base URL of your OCR service.

PDF_OCR_TOKENsecret

What it does
Bearer token for the PDF OCR service at PDF_OCR_URL.
Benefit
Authenticates OCR requests so scanned PDFs can be read.
Where to get it
The token issued by your OCR service.

OTEL_EXPORTER_OTLP_HEADERSsecret

What it does
Headers (for example an API key) sent with OpenTelemetry traces to your OTLP collector.
Benefit
Ships request traces to your own observability backend (Honeycomb, Grafana, etc.).
Where to get it
From your observability vendor, in key=value form (for example x-honeycomb-team=...). opentelemetry.io/docs/specs/otel/protocol/exporter/

WEBHOOK_SECRETsecret

What it does
Default HMAC-SHA256 signing secret for async /v1/crawl webhooks.
Benefit
Receivers can verify that webhook deliveries really came from this hub.
Where to get it
Generate a random value (for example openssl rand -hex 32) and share it with the receiver.

GOOGLE_MAPS_API_KEYsecret

What it does
Google Places API (New) Text Search for the company tool when no Google Maps MCP is connected.
Benefit
Adds business addresses, phone numbers and ratings to company lookups. Billed to your Google Cloud project.
Where to get it
Enable the Places API (New) in Google Cloud and create an API key. developers.google.com/maps/documentation/places/web-service/get-api-key

GLAMA_API_KEYsecret

What it does
Glama MCP directory search for discover_mcps (skipped without a key).
Benefit
Finds more remote MCP connectors than the official MCP Registry alone.
Where to get it
Request API access from Glama. glama.ai

CLOUDFLARE_ACCOUNT_IDsecret

What it does
Cloudflare account that owns the Web Search (AI Gateway) usage, paired with CLOUDFLARE_WEBSEARCH_API_TOKEN.
Benefit
Enables Cloudflare Web Search over REST when the Worker has no AI binding.
Where to get it
Copy it from the Cloudflare dashboard (account home or any zone overview). developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/

CLOUDFLARE_WEBSEARCH_API_TOKENsecret

What it does
Cloudflare API token for the Web Search API.
Benefit
Adds Cloudflare Web Search (Ceramic, Exa or Linkup engines) as a search provider.
Where to get it
Create a Cloudflare API token with AI Gateway permissions. dash.cloudflare.com/profile/api-tokens

CLOUDFLARE_AI_GATEWAY_IDconfig

What it does
AI Gateway id that Cloudflare Web Search requests go through (default: "default").
Benefit
Routes search usage through the gateway where you track logs and spend.
Where to get it
Plain config: the gateway name in Cloudflare AI > AI Gateway. developers.cloudflare.com/ai-gateway/

CLOUDFLARE_WEBSEARCH_PROVIDERconfig

What it does
Engine behind Cloudflare Web Search: ceramic, exa or linkup.
Benefit
exa or linkup joins the default search fallback chain; ceramic stays opt-in per request.
Where to get it
Plain config: choose one of ceramic, exa, linkup.

CLOUDFLARE_WEBSEARCH_BYOK_ALIASconfig

What it does
Alias of your own engine key stored in AI Gateway (bring your own key).
Benefit
Bills Web Search to your own Exa or Linkup account instead of Cloudflare's.
Where to get it
Plain config: the alias you gave the provider key in AI Gateway. developers.cloudflare.com/ai-gateway/

Deployment secrets (set at deploy time only)

These protect the hub itself, so /admin shows only whether they are set and never lets them be changed from a browser session. Set them with wrangler secret put, your container environment, or your service manager.

CALLER_TOKENdeployment

What it does
Owner token for /admin, the REST API (/v1/*) and /mcp.
Benefit
Required: it is how you and your tools authenticate to the hub.
Where to get it
Generate 24+ random characters (openssl rand -hex 24) and set it at deployment.

CALLER_TOKEN_PREVIOUSdeployment

What it does
Previous owner token, still accepted while you rotate CALLER_TOKEN.
Benefit
Rotate the owner token without breaking clients that still use the old one; remove it after the switch.
Where to get it
Set it to the old CALLER_TOKEN value during rotation.

MCP_TOKENdeployment

What it does
Separate bearer token accepted by /mcp and the API.
Benefit
Give MCP clients their own token so you can revoke it without changing the owner token.
Where to get it
Generate 24+ random characters and set it at deployment.

VAULT_MASTER_KEYdeployment

What it does
Master key that encrypts stored MCP connector credentials, per-user API keys and these overrides (AES-256-GCM).
Benefit
Required to save any secret from /admin. Changing it makes previously stored secrets unreadable.
Where to get it
Generate 24+ random characters, set it at deployment and keep a backup.

SESSION_SECRETdeployment

What it does
HS256 signing secret for admin session tokens (falls back to CALLER_TOKEN when unset).
Benefit
Lets you rotate sessions independently of the owner token.
Where to get it
Generate 24+ random characters and set it at deployment.

GITHUB_CLIENT_SECRETdeployment

What it does
GitHub OAuth App client secret for multi-user sign-in.
Benefit
Lets teammates sign in to /admin with GitHub instead of sharing the owner token.
Where to get it
Create a GitHub OAuth App (Settings > Developer settings) and generate a client secret. github.com/settings/developers

AGENT_TOKENdeployment

What it does
Shared token crawler nodes present when they connect to the hub (WSS /agent/ws).
Benefit
Required for your own crawler nodes to join; keeps strangers from registering workers.
Where to get it
Generate 24+ random characters; use the same value on the hub and each node.

AGENT_TOKENSdeployment

What it does
Per-node tokens as a JSON map {"site-id": "token"}, instead of one shared AGENT_TOKEN.
Benefit
Revoke one node without re-keying the whole fleet.
Where to get it
Generate a 24+ character token per node and set the JSON map at deployment.

BOT_SIGNING_PRIVATE_KEYdeployment

What it does
Ed25519 private key for RFC 9421 Web Bot Auth request signatures.
Benefit
Sites can cryptographically verify that requests come from your EdgeFetch deployment.
Where to get it
Generate it with edgefetch keygen-bot-auth and publish the public key it prints. datatracker.ietf.org/doc/draft-meunier-web-bot-auth-architecture/