Skip to main content
The replay URL is the endpoint Kindred calls to rerun a selected turn. Replay URLs must be public HTTPS endpoints reachable from the Kindred backend. If your agent is not deployed, run it locally and expose it with a public HTTPS tunnel.

Fastest local setup

  1. Add a POST /replay endpoint to your agent.
  2. Start your agent locally.
  3. Expose the local port with a tunnel.
  4. Paste the public tunnel URL into Kindred as Target URL (replay_url).
  5. Click Run.
You can use any solution that gives you a publicly reachable HTTPS URL, including ngrok, Cloudflare Tunnel, or a deployed staging endpoint. If ngrok gives you:
and your endpoint is /replay, paste this into Kindred:

Coding-agent prompt

Paste this into Cursor, Claude Code, Codex, or another coding agent if your agent does not have a replay endpoint yet.
Copy the public HTTPS replay URL the coding agent reports. Paste it into Kindred as Target URL (replay_url) when you click Replay turn.

Requirements

Your replay endpoint should:
  • Accept a JSON request body.
  • Accept Kindred replay metadata from headers or body.
  • Preserve session_id, run_id, and replay IDs in Langfuse metadata.
  • Return JSON.
  • Flush Langfuse before returning in short-lived serverless or function environments.
  • Respect kindred_include_prior_context if your agent supports replaying with prior context.

Replay metadata to preserve

Headers Kindred may send

Response

Return JSON. If possible, include:
Kindred uses the replay metadata to locate the replay trace in Langfuse after the replay request completes.