---
title: "IndexNow Route Binder: Key Route Automation"
slug: "indexnow-route-binder"
date: "2026-03-20"
category: "automation"
tags: ["codex-skill", "indexnow", "cloudflare", "routes"]
---

## What this skill does

This skill drives `bind_indexnow_key_routes.py` to bind `<domain>/<key>.txt` routes to the shared `indexnow-key-router` Worker.

## Why it is useful

IndexNow key files are only useful if each domain has a live route. This skill prevents silent no-zone/no-key drift with structured reports.

## Core commands

Dry-run safety check:

```bash
cd "<domain-management-root>"
python3 bind_indexnow_key_routes.py --dry-run --report-prefix indexnow_route_bind_precheck
```

Live bind:

```bash
python3 bind_indexnow_key_routes.py --fast-create-only --report-prefix indexnow_route_bind_live
```

## Inputs and outputs

- Inputs:
  - `domains/registry.json`
  - `reports/markdown_for_agents_rollout.json` (zone map)
  - `indexnow_keys/*_indexnow_key.txt`
- Outputs:
  - `reports/indexnow_route_bind_*.json`
  - `reports/indexnow_route_bind_latest.json`

## Compatibility

- Surface: `codex-cli`
- Requires network: yes
- Requires escalated permissions: no
- Required tools: `python3`, Cloudflare API token env

## Safety notes

- Uses explicit API token (`CF_API_TOKEN` or `CLOUDFLARE_API_TOKEN`).
- No destructive local operations.
- `--dry-run` mode available for preflight.

## Sources

- [Cloudflare Workers routes API](https://developers.cloudflare.com/api/resources/workers/subresources/routes/)
- [IndexNow protocol reference](https://www.indexnow.org/documentation)
