Every site, one status each
Switch between domains without stacking dashboards or mixing one site’s evidence into another.
Self-healing 404s for AI agents & crawlers
agent-404 answers dead URLs at the HTTP layer — docs, product, pricing, any page in your sitemap. Cursor, Claude, and search bots get the closest live page in a Link header and JSON-LD, while your 404 stays an honest 404. Three lines of middleware, under 25ms at the edge.
Free to start · no credit card · sitemap sync included
/api/v1/authentication40496.4% · movedLink + JSON-LD/api/v2/authHTTP/1.1 404 Not Found
Link: </api/v2/auth>; rel="alternate"
X-Agent-404-Match: moved
X-Agent-404-Score: 0.964The recovery contract
Keep the correct HTTP status. Attach the evidence an automated client needs to recover in one hop. Measure whether it followed.
The adapter runs only after your application resolves the request as missing.
Path, language, metadata, and semantic signals pick the closest live document.
Standards-based hints work across crawlers instead of requiring a product-specific client.
The dashboard connects the suggestion to the follow so you can see what was actually saved.
Install at the boundary
Keep the integration beside routing. agent-404 handles sitemap synchronization, matching, telemetry, and operator diagnostics.
Inspect a live responseimport { agent404 } from "@agent404/next";
export const proxy = agent404({
publicKey: process.env.AGENT404_PUBLIC_KEY!,
siteId: process.env.AGENT404_SITE_ID!,
});Your next broken link can recover itself