Skip to main content
Set these in the agent you are connecting to Kindred.

Required

VariableRequiredDescription
LANGFUSE_PUBLIC_KEYYesLangfuse project public key.
LANGFUSE_SECRET_KEYYesLangfuse project secret key.
LANGFUSE_HOSTYesLangfuse host, for example https://us.cloud.langfuse.com.
KINDRED_AGENT_IDYesKindred agent id copied from the agent registration page.
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://us.cloud.langfuse.com
KINDRED_AGENT_ID=agt_...

Replay fields

You usually do not set replay fields manually. Kindred sends them to your replay endpoint when you click Run. Your replay endpoint should preserve these fields in Langfuse metadata if they appear in the request:
  • kindred_replay_run_id
  • kindred_original_session_id
  • kindred_include_prior_context
  • kindred_turn_trace_id
  • is_replay