Skip to contentFree site check: see what stops Google and AI assistants reading your site

Documentation

Getting started: what to install and what to set up

Before your first Heddle command you need a few tools on your machine and a few accounts, and this page gives each one's install command for macOS, Windows and Linux. The minimum is Node.js 22 or later, git, the GitHub CLI and a Cloudflare account with your domain in it. Research and the agents add a Search Console property and a prepaid DataForSEO account, and email goes through Plunk. The rest is optional or off by default.

Install the tools first, then create the accounts. Each entry says what Heddle uses it for and which commands read it, so you can stop at what your install needs.

Tools

Node.js 22 or later, with npm

Heddle is a set of Node.js scripts. Every command runs on Node.js 22 or later, and npm installs Heddle's own dependencies.

System Install
macOS brew install node
Windows winget install OpenJS.NodeJS.LTS
Linux curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash (installs nvm), then nvm install 22 (in a new terminal)

Check it with node --version.

git

Heddle lives in a git repository beside your site's, and the agents work in branches and pull requests.

System Install
macOS xcode-select --install
Windows winget install Git.Git
Linux sudo apt install git (Debian, Ubuntu), or sudo dnf install git (Fedora)

Check it with git --version.

GitHub CLI (gh)

The agents open, read and merge pull requests with gh, heddle launch reads the repository's workflows and secret names with it, and you set the repository's secrets with gh secret set.

System Install
macOS brew install gh
Windows winget install GitHub.cli
Linux sudo apt install gh (Debian, Ubuntu; or the packages at cli.github.com), or sudo dnf install gh (Fedora)

Then:

gh auth login

Choose GitHub.com, HTTPS, and sign in with the browser. The account needs write access to the site's repository.

Check it with gh auth status.

Cloudflare's cf CLI (npm package cf, pinned at 1.0.0-beta.14)

Every Cloudflare step Heddle takes for you (DNS, Email Routing, KV, Worker secrets, Turnstile, tokens) goes through Cloudflare's own CLI, signed in once by a person.

It is pinned in Heddle's tools/cf folder, outside Heddle's own dependencies, so the agents and deploys never download it; the first launch or onboard installs that pinned copy, and every machine runs the same version.

Install it with npm ci --prefix tools/cf (in the Heddle folder (launch and onboard also do this on first use)).

Then:

npm run cf -- auth login

Run it in the Heddle folder. A browser opens; sign in to the Cloudflare account the site deploys to.

Heddle always passes the account the site's wrangler.jsonc names, so one sign-in that sees several accounts never picks the wrong one. When different accounts need different sign-ins, cf keeps named profiles and binds one to a folder.

npm run cf -- auth create <name>, then npm run cf -- auth activate <name> <path to the site>. Run heddle from that folder so the binding applies. npm run cf -- auth list shows the profiles and npm run cf -- auth whoami the one in use.

Beta. cf is in beta. Heddle pins one version (1.0.0-beta.14) and maps each Cloudflare API call it makes to a cf command, so an update cannot change what a step does until Heddle moves the pin.

When cf has no command for a call, Heddle falls back to the Cloudflare API with a token if one is set, and otherwise reports the step as not readable rather than done.

Check it with npm run cf -- auth whoami.

wrangler (Cloudflare's Workers CLI)

The site deploys to a Cloudflare Worker with wrangler, Worker secrets are set with wrangler secret put, and heddle media uploads to R2 with it. It is a dependency of the site, run with npx, so there is nothing to install globally.

Install it with npm install --save-dev wrangler (in the site's repository, once).

Then:

npx wrangler login

Check it with npx wrangler whoami.

Chromium or Google Chrome

heddle diagrams draws diagrams in a real browser with the brand's font, the diagrams check measures their labels on the built page, the phone check measures every page at 375px, and the a11y check runs axe-core (WCAG 2.1 AA) on the built pages.

Heddle looks for CHROMIUM_PATH, then Playwright's own download, then the usual install locations. Without one the a11y check fails. An accessibility check nobody ran is never a pass.

System Install
macOS brew install --cask google-chrome
Windows winget install Google.Chrome
Linux sudo apt install chromium (Debian), or npx playwright install chromium (Ubuntu, in the Heddle folder), or sudo dnf install chromium (Fedora)

Set CHROMIUM_PATH to the browser's executable if heddle diagrams or the a11y check says no Chromium could be launched.

ImageMagick, librsvg and zip

heddle brand draws the downloadable brand kit. rsvg-convert renders the SVG marks, magick sizes the PNGs and zip packs the kit.

System Install
macOS brew install imagemagick librsvg zip
Windows winget install ImageMagick.ImageMagick (and WSL for rsvg-convert and zip)
Linux sudo apt install imagemagick librsvg2-bin zip

Check it with magick -version && rsvg-convert --version.

ffmpeg

The video agent and heddle video render cut the narration and frames into a film with ffmpeg. Only needed when video is switched on.

System Install
macOS brew install ffmpeg
Windows winget install Gyan.FFmpeg
Linux sudo apt install ffmpeg

Check it with ffmpeg -version.

Get Heddle

Heddle ships as the private npm package @fabricorg/heddle, which your npm account or a token is given read access to. Unpack it beside your site's repository, so the site's scripts find it at ../heddle; set HEDDLE_DIR when it lives anywhere else.

npm pack @fabricorg/heddle
mkdir heddle && tar -xzf fabricorg-heddle-*.tgz -C heddle --strip-components=1
cd heddle
npm ci
npm link

The package is for the people who build Heddle. A site's workflows never need npm access. On every run they download the release heddle/install.json pins from the broker site's /heddle/release, with each job's GitHub Actions ID token.

If you were given read access to Heddle's git repository instead, clone it to the same place and run the same npm ci and npm link.

npm link puts the heddle command on your path. Without it, run node <path to heddle>/bin/heddle.mjs wherever the documentation says heddle. Check it with heddle on its own, which lists the 48 commands.

Accounts and keys

Cloudflare account and zone

The site runs on a Cloudflare Worker in your account, its domain is a zone in the same account, and the judging model (Workers AI) and the agents' Claude access (AI Gateway) are billed there.

Needed always; read by heddle agent, heddle install, heddle check, heddle deploy, heddle covers, heddle buyer, heddle score and heddle voice.

  1. Create a Cloudflare account, or use the one your sites already deploy to.
  2. Add the domain (Add a site) in that account and set the registrar's nameservers to the two Cloudflare gives you. Custom domains attach only from the zone's own account, so keep the zone and the Worker together.
  3. Copy the account id from the dashboard's Workers and Pages overview. It is an identifier that is safe to commit, so put it in wrangler.jsonc account_id as well.
Variable What it holds Where it is set
CLOUDFLARE_ACCOUNT_ID the account id your shell, GitHub secret

Workers AI token (the judging model)

The model gates (helpful, buyer, quality, answers) and every agent's self-checks read pages with a model on Workers AI. Without the token those checks report SKIPPED, which never counts as a pass, and in CI heddle check fails on them.

Needed for the model checks and the agents; read by heddle agent, heddle check, heddle deploy, heddle launch, heddle covers, heddle register, heddle buyer, heddle score and heddle voice.

  1. Cloudflare dashboard, My Profile, API Tokens, Create Token, the Workers AI template (Workers AI Read), limited to your account.
  2. site.json model.tokenEnv names the variable it is read from (CLOUDFLARE_API_TOKEN unless you set another, such as HEDDLE_AI_TOKEN); model.accountEnv names the account variable.
Variable What it holds Where it is set
CLOUDFLARE_API_TOKEN the default name for the Workers AI token your shell, GitHub secret
HEDDLE_AI_TOKEN a common name for a dedicated Workers AI token, when site.json model.tokenEnv says so; heddle score reads it first, then CLOUDFLARE_API_TOKEN your shell, GitHub secret

Cloudflare AI Gateway (Claude for the agents)

Agents that draft (the writer, the SEO agent's titles and answers, covers, ideas) call Claude through an AI Gateway on unified billing: Cloudflare pays from the gateway's credits, so there is no separate model-provider key.

Needed for the agents that draft; read by heddle agent, heddle ideas, heddle drafts, heddle covers and heddle sitecheck.

  1. Cloudflare dashboard, AI, AI Gateway, Create gateway. Note its name.
  2. Add credits to the gateway; the agents spend down to autonomy.json budget.floorUsd ($0 by default), and the watchdog warns the owner once a day under budget.lowCreditUsd ($15). With automatic top-up on, the balance never runs low, so the spend breaker's caps (autonomy.json budget.spend, lib/agents/spend.mjs) are what stop a runaway; set the gateway's own spend limits above them as a backstop.
  3. Create a token with AI Gateway Run, Account Analytics Read (the spend breaker reads each agent's spend from the gateway's analytics) and Workers AI Read, so one token serves all three. An existing token without Account Analytics Read. Edit it and add the permission.
  4. A 402 "insufficient credits" answer means the credits are empty; the token is fine.
Variable What it holds Where it is set
CF_AIG_TOKEN the gateway token your shell, GitHub secret
CF_AIG_GATEWAY the gateway's name your shell, GitHub secret
AIG_RUN_ID set by the spend breaker: the run a call belongs to, for finding it in the gateway's logs your shell, GitHub secret
GITHUB_RUN_ID set by GitHub Actions: the run id the spend governor attributes calls to GitHub secret

Databricks AI Gateway route (optional)

Off by default. With MODEL_ROUTE set to databricks, an agent that autonomy.json runtime.route.databricks maps to a serving endpoint sends its Claude calls through that endpoint first, so Databricks tracks and limits them, and the AI Gateway above stays the fallback and the bill.

A Databricks failure is retried once and then the call goes to Cloudflare unchanged (lib/agents/route.mjs).

Needed only to route Claude through Databricks.

  1. In the Databricks workspace, create a serving endpoint per routed agent with an external model of provider custom, pointing at a relay that restores the request's tf_relay headers and forwards it to the AI Gateway. Turn on AI Gateway usage tracking and rate limits on it.
  2. Create a service principal, give it CAN_QUERY on those endpoints and nothing else, and generate an OAuth secret for it.
  3. Map each agent to its endpoint in autonomy.json runtime.route.databricks.endpoints, keyed by repository then agent, and check it with heddle validate.
  4. Set the variables and the secret below, then the MODEL_ROUTE variable to databricks. heddle doctor warns while any of them is missing.
Variable What it holds Where it is set
DATABRICKS_CLIENT_ID the service principal's OAuth client id; a repository variable your shell, GitHub secret
DATABRICKS_CLIENT_SECRET the service principal's OAuth secret your shell, GitHub secret

Cloudflare launch token

heddle launch --apply creates what a launch is missing (KV namespaces, Email Routing, the DMARC record, Turnstile hostnames) with a token made for that and nothing else. It never borrows another token to make changes.

Needed for heddle launch --apply; read by heddle launch and heddle app.

  1. My Profile, API Tokens, Create Token, Custom token. Add Zone: Zone Read, DNS Edit, Email Routing Rules Edit, Zone Settings Edit, and Account: Email Routing Addresses Edit, Turnstile Edit, Workers KV Storage Edit, Workers Scripts Read, and, for site.json analytics, Account Settings Edit (Web Analytics sites).
  2. Account Resources. The account the sites deploy to. Zone Resources. All zones from that account.
  3. Keep it on your own machine. Launches run from a person's machine and never from CI, so it belongs in no repository and no GitHub secret.
Variable What it holds Where it is set
CLOUDFLARE_LAUNCH_TOKEN the launch token your shell

Cloudflare Turnstile

Turnstile is the contact form's spam check, and its widget must list the domain, or every enquiry from it is refused from the minute the domain goes live.

Needed for the contact form.

  1. Cloudflare dashboard, Turnstile, Add widget, with the domain and www as hostnames.
  2. The site key goes in the site's .env.local; the secret key is a Worker secret (npx wrangler secret put TURNSTILE_SECRET_KEY).
Variable What it holds Where it is set
NEXT_PUBLIC_TURNSTILE_SITE_KEY the widget's site key (public) your shell
TURNSTILE_SECRET_KEY the widget's secret key Worker secret

The free site check

A public URL box that reads a visitor's site and reports Google rankings, ChatGPT and Perplexity answers, what blocks crawlers and the five fixes that matter most (worker/heddle-sitecheck.ts, site.json worker.sitecheck). It runs in the site's Worker, as a Workflow, and costs about $0.30 a check in DataForSEO answers.

Needed for site.json worker.sitecheck.

  1. Bind a KV namespace as SITECHECK, a Workflow as HEDDLE_SITECHECK with class_name HeddleSiteCheck and a D1 database as SITECHECK_DB (npx wrangler d1 create <site>-sitecheck; its tables are made on first use) in wrangler.jsonc, and export the Workflow class from the Worker's main module (export { HeddleSiteCheck } from "./heddle";).
  2. Set DATAFORSEO_LOGIN, DATAFORSEO_PASSWORD and CF_AIG_TOKEN as Worker secrets, and CF_AIG_GATEWAY and CLOUDFLARE_ACCOUNT_ID as vars; a missing one leaves its section of the report saying it is unavailable.
  3. Optional: TURNSTILE_SECRET_KEY (the contact form's) makes the check ask for a Turnstile token, and site.json worker.sitecheck.monthly sets the month's paid checks (150 by default). worker.sitecheck.ai: "plan" spends nothing on an anonymous check. Its Google, buyer-question and AI-answer sections come back locked, for the report page to offer a plan.
  4. Optional, with ai: "plan": worker.sitecheck.signin: true lets a visitor sign in by an emailed link and gives their check one sample AI answer a day (POST /api/check/signin, /api/check/verify, GET /api/check/session, POST /api/check/signout; templates/worker/README.md). Set HEDDLE_SESSION_SECRET as a Worker secret (openssl rand -base64 32 | npx wrangler secret put HEDDLE_SESSION_SECRET) and the contact form's PLUNK_API_KEY and MAIL_FROM; without the secret nobody can sign in, and changing it signs everyone out.
Variable What it holds Where it is set
HEDDLE_SESSION_SECRET for worker.sitecheck.signin: signs the site check's session cookie (32 random bytes or more); unset, sign-in is refused Worker secret

Google Search Console property and service account

Positions, clicks, indexing and the weekly reports come from Search Console, read with a service account that has restricted (read-only) access to the property.

Needed for research, indexing and the SEO agent; read by heddle agent, heddle indexing, heddle research, heddle templates, heddle launch, heddle legacy and heddle data.

  1. Search Console. Add a Domain property for the domain and verify it with the TXT record, added in Cloudflare DNS.
  2. Google Cloud console. Create a project, enable the Google Search Console API, then IAM and admin, Service accounts, Create service account. Open it, Keys, Add key, JSON, and keep the downloaded file outside any repository (chmod 600).
  3. Search Console, Settings, Users and permissions, Add user, with the service account's email address and the Restricted permission.
  4. Check it. heddle research <site> gsc check lists the properties the key can read.
Variable What it holds Where it is set
GSC_KEY_FILE the path to the key file, on your machine your shell
GSC_SERVICE_ACCOUNT_JSON the whole key file's contents, for the agents GitHub secret

OpenRouter (the Google-guidelines panel)

Two of the panel's three decision models, Jev and Microsoft-Decision-1, answer on OpenRouter's Decisions API. Without the key they are reported as not configured; once the install has calibrated a question on them, a draft waits until they answer.

Needed for the guidelines panel; read by heddle guidelines.

  1. Create a key at openrouter.ai (Keys) and add credit. It is prepaid. An empty balance answers 402, not a wrong key.
Variable What it holds Where it is set
OPENROUTER_API_KEY the API key your shell, GitHub secret

DataForSEO

Search volume, cost per click, live results pages and position tracking. Prepaid. It fails by running out, and an empty balance answers exactly like a wrong password.

Needed for research and the agents that measure demand; read by heddle agent, heddle research, heddle propose, heddle templates, heddle collect, heddle data and heddle sitecheck.

  1. Sign up at dataforseo.com and add funds. The API login and password are on the API Access page; the password is not your account password.
  2. Before blaming the key, check the balance with heddle research <site> balance. autonomy.json budget.dataFloorUsd stops the agents' data calls under that balance.
Variable What it holds Where it is set
DATAFORSEO_LOGIN the API login your shell, GitHub secret
DATAFORSEO_PASSWORD the API password your shell, GitHub secret

OpenSEO (optional)

An alternative source for search data, declared in site.json data.providers. Heddle reads it and never starts a paid run or creates a project on it.

Needed optional.

  1. Take the API URL and key from your OpenSEO account, and declare it in site.json data.providers.
Variable What it holds Where it is set
OPENSEO_API_KEY the OpenSEO key your shell, GitHub secret

Bing Webmaster Tools

Bing's index feeds Bing, Copilot and ChatGPT search, and Google's tools see none of it. IndexNow submissions report into the same account.

Needed recommended at launch.

  1. bing.com/webmasters, sign in, Import from Google Search Console. It verifies the domain and brings the sitemap with it.
  2. Check that the sitemap is listed, then read Search Performance and AI Performance there each week.
Variable What it holds Where it is set
BING_WEBMASTER_API_KEY an API key from Bing Webmaster Tools, Settings, API access, when site.json data.providers declares bing your shell, GitHub secret

PageSpeed Insights API key (optional)

The design and development agent reads Core Web Vitals from PageSpeed Insights. It works without a key at a low volume; a key raises the quota.

Needed optional; read by heddle data.

  1. In the Google Cloud console project that holds the service account, enable the PageSpeed Insights API, then Credentials, Create credentials, API key. Restrict it to that API.
Variable What it holds Where it is set
PAGESPEED_API_KEY the API key GitHub secret

Plunk (email out)

The contact form, the agents' reports and the signed approval links are sent through Plunk, from your own domain.

Needed for email from the site and the agents; read by heddle agent, heddle indexing, heddle ideas and heddle launch.

  1. Create a project at useplunk.com and copy its secret API key (sk_).
  2. Project settings, Domains, Add the domain. Add the DKIM, SPF and bounce records it shows in Cloudflare DNS as DNS only, then press Verify. Leave out the inbound MX at the bare domain, which stops Cloudflare Email Routing from enabling.
  3. The key is a Worker secret for the contact form and a GitHub secret for the agents' reports.
Variable What it holds Where it is set
PLUNK_API_KEY the secret API key your shell, GitHub secret, Worker secret
PLUNK_PROJECT_ID optional: lets heddle launch read the domain's status from Plunk's API your shell

GitHub repository, secrets and tokens

The agents run as GitHub Actions in the site's repository, and open, push and merge as the site's own GitHub App, so their pull requests run the repository's real checks.

They need that app, Heddle itself (served by the broker to a client site; an npm token or a repository credential on Heddle's own sites) and, for ideas by email, a token the Worker uses to start a run.

Needed for the agents.

  1. Copy templates/github/heddle-agents.yml into the site's .github/workflows/.
  2. Install the public Heddle Agents GitHub App on the site's repository (its page on GitHub, Install, Only select repositories), and set site.json identity.broker to the broker's origin; heddle launch <site> --apply then sets the HEDDLE_AGENT_BROKER repository variable. The agent jobs trade their GitHub Actions ID token at the broker for a one-hour token scoped to this repository alone, so no key is stored in the repository. heddle doctor <site> --github checks the app is installed.
  3. Or, instead, the site's own "<Site> Site Agents" GitHub App. heddle launch <site> --agent-app. You click Create GitHub App, then Install on the site's repository; Heddle stores the app's id and key as repository secrets and never shows them. Its secrets win over the broker when both are set. Without either the agents still run, on a self-certified fallback that heddle doctor warns about.
  4. Give the site Heddle. A client site needs no token. With identity.broker set and a release pinned in heddle/install.json, every workflow downloads that release from the broker's /heddle/release with its GitHub Actions ID token, once the broker's operator has granted the repository's owner releases (heddle app grant <broker-site> <owner> on the broker site). The package @fabricorg/heddle stays private to the people who build Heddle: Heddle's own sites may instead hold a read-only npm token as HEDDLE_NPM_TOKEN, or read Heddle's repository with a fine-grained token (Contents read-only) as HEDDLE_REPO_TOKEN or a read-only deploy key as HEDDLE_DEPLOY_KEY.
  5. Set every other secret the same way, without echoing a value.
Variable What it holds Where it is set
HEDDLE_NPM_TOKEN Heddle's own sites only, never a client's: a read-only npm token for @fabricorg/heddle, tried after the broker; every workflow downloads Heddle from npm at install.json's version GitHub secret
HEDDLE_REPO_TOKEN or: read access to the Heddle repository, used when there is no HEDDLE_NPM_TOKEN or no release is pinned GitHub secret
HEDDLE_DEPLOY_KEY or: a read-only deploy key on the Heddle repository GitHub secret
ACTIONS_ID_TOKEN_REQUEST_TOKEN set by GitHub Actions in every step of a job with id-token: write, never a secret you add: with ACTIONS_ID_TOKEN_REQUEST_URL, the agent token asks GitHub for the job's ID token, with the broker's origin as its audience, each time it needs a fresh token GitHub secret
HEDDLE_NPM_READ_TOKEN on the broker site only: a read-only npm token that can read @fabricorg/heddle, a Worker secret a person sets with npx wrangler secret put HEDDLE_NPM_READ_TOKEN. The broker reads releases from npm with it and serves them to granted clients' workflows; until it is set /heddle/release answers 503 Worker secret
HEDDLE_GITHUB_APP_KEY on the broker site only: the public Heddle Agents app's private key as PKCS#8, a Worker secret set by heddle app create-public, never shown and never in any client's repository Worker secret
HEDDLE_AGENT_APP_ID or: the Site Agents GitHub App's id, set by heddle launch <site> --agent-app. With its key, every agent, ideas and approve run mints a one-hour token for this repository alone, carrying only the permissions that workflow declares (the update agent's adds workflows: write) GitHub secret
HEDDLE_AGENT_APP_PRIVATE_KEY the Site Agents GitHub App's private key (the whole PEM), set by heddle launch <site> --agent-app from GitHub's manifest conversion, never shown. Without both app secrets the agents run on the self-certified fallback GitHub secret
HEDDLE_UPDATE_TOKEN retired on 15 October 2026: the update agent's hand-made token in an older heddle-agents.yml. That template still uses it for the one update that brings in the Site Agents app; delete it once the app is set up GitHub secret
HEDDLE_STATUS_TOKEN set by heddle-agents.yml to the job's own token, never a secret you add: on the self-certified fallback (no Site Agents app) the agents set the gates status with it, so the status comes from the GitHub Actions app GitHub secret
GITHUB_DISPATCH_TOKEN the Workflow runner and ideas by email: a fine-grained token on the site's repository only, with Actions read and write, so the Worker can start the agents' and the ideas workflows. The one credential no CLI can make: heddle launch gives the steps Worker secret

Secrets you generate

Shared secrets between the agents and the site's Worker. Nobody issues these; make each one a long random string, for example with openssl rand -hex 32, and set it in both places.

Needed for approvals, leads and ideas; read by heddle forms, heddle ideas, heddle templates and heddle drafts.

  1. heddle launch <site> --apply makes HEDDLE_LEADS_TOKEN, HEDDLE_IDEAS_TOKEN and HEDDLE_RUNNER_SECRET at random and sets each on the Worker (cf) and in GitHub (gh) at once, never showing the value. By hand. Generate the value, then npx wrangler secret put <NAME> in the site and gh secret set <NAME> -R <owner>/<site>.
Variable What it holds Where it is set
HEDDLE_APPROVAL_SECRET signs the approval links; the Worker verifies them GitHub secret, Worker secret
HEDDLE_LEADS_TOKEN lets the follow-up agent read new enquiries from the Worker your shell, GitHub secret, Worker secret
HEDDLE_IDEAS_TOKEN ideas by email: signs the approve and withdraw links and reads the ideas the Worker holds GitHub secret, Worker secret
HEDDLE_MCP_TOKEN the site's MCP server: signs a person's one-time confirmations, and is what the heddle-mcp job reads the queue and records a check's result with. No MCP client ever holds it GitHub secret, Worker secret
HEDDLE_RUNNER_SECRET the Workflow runner: signs the job's report to the Worker and the watchdog's read of the runner's records GitHub secret, Worker secret
HEDDLE_FORM_PROBE_SECRET the form monitor: signs its probe of the contact form, which the Worker runs without sending or storing anything GitHub secret, Worker secret

Sign-in for the site's MCP server

Authors sign in to write from their own agents. An app at the install's identity provider (Microsoft Entra ID, or any OpenID Connect issuer), named in site.json mcp.auth. Who may write is people.json authors, or, with site.json mcp.auth.openAuthorship on Entra, any member account in mcp.auth domains. Reading the site needs no sign-in.

Needed only with site.json mcp.enabled, for authors to write.

  1. Register a web app at the provider with the redirect URI https://<your site>/oauth/callback (https://<mcp.origin's host>/oauth/callback when site.json mcp.origin is set), and put its client id in site.json mcp.auth. On Entra, single-tenant, with the optional ID token claims acct, email and upn. A token without acct is refused.
  2. Set the client secret as a Worker secret. Wrangler versions secret put MCP_AUTH_CLIENT_SECRET.
Variable What it holds Where it is set
MCP_AUTH_CLIENT_SECRET the identity provider's client secret, for the Worker's half of the sign-in Worker secret

Reddit API app (optional)

heddle research <site> reddit quotes buyers' own words from Reddit threads. Hacker News needs nothing.

Needed optional; read by heddle research.

  1. reddit.com/prefs/apps, create an app of type script, and use its client id and secret with your username.
Variable What it holds Where it is set
REDDIT_CLIENT_ID the app's client id your shell
REDDIT_CLIENT_SECRET the app's secret your shell
REDDIT_USERNAME your Reddit username, for the user agent your shell

ElevenLabs (video narration, off by default)

The video agent narrates explainers with an ElevenLabs voice. Video is off until this is set.

Needed for video; read by heddle video.

  1. Copy an API key from your ElevenLabs profile. To use a cloned voice, put its id in the variable autonomy.json runtime.video.voiceIdEnv names.
Variable What it holds Where it is set
ELEVENLABS_API_KEY the API key GitHub secret
ELEVENLABS_VOICE_ID optional: the voice id GitHub secret

YouTube channel (video publishing, off by default)

heddle video publish uploads a merged, rendered film to your channel. A person runs it; no agent uploads.

Needed for heddle video publish; read by heddle video.

  1. Google Cloud console. Enable the YouTube Data API v3 and create an OAuth client with the youtube.upload and youtube.force-ssl scopes. The channel's owner authorises it once and you keep the refresh token. Until Google's API audit passes, uploads stay private.
Variable What it holds Where it is set
YOUTUBE_CLIENT_ID the OAuth client id your shell
YOUTUBE_CLIENT_SECRET the OAuth client secret your shell
YOUTUBE_REFRESH_TOKEN the channel's refresh token your shell

Where the values live

Values live in three places, and never in a repository.

  • Your shell, for commands you run. Keep the values in a file outside every repository with permissions 600, and load it only in the shell that needs it with set -a; . <file>; set +a. Check that the file ends with a newline before you append to it.

  • GitHub Actions secrets, for the agents, set with gh secret set <NAME> -R <owner>/<site>, which reads the value without echoing it.

  • Worker secrets, for the site itself, set with npx wrangler secret put <NAME> in the site's repository.

heddle research <site> check says which data sources are configured, and heddle launch <site> lists every secret the Worker and the repository still lack.

Generated from the Heddle repository at 4ccdf8b.

Questions

Do I need every account on this page?

No. Node.js, git, the GitHub CLI and a Cloudflare account are needed for any install. Search Console and DataForSEO are needed for research and for the agents that measure. The rest are optional, or for video, which is off by default.

Where should the keys live?

Keys you use from your own machine live in your shell's environment, loaded from a file outside every repository. The agents read theirs from GitHub Actions secrets, and the site's Worker from its own secrets. None of them is ever committed.