Lanfuse Install
Manage a local Langfuse deployment and optional Hermes observability integration
without exposing secrets or deleting persistent data unexpectedly.
Required Context
Read these files before acting:
references/rules/env.md
references/rules/filetree.md
references/rules/state-rules.md
references/langfuse-installation.md
references/hermes-integration.md when Hermes is in scope
Reset STATE.md from references/template/STATE.template.md for a new run,
then record concrete evidence as each phase progresses.
Workflow
- Identify the target OS, Langfuse directory, Docker Compose file, requested
operation, and whether Hermes runs natively or in Docker. Inspect existing
containers, volumes,
.env files, and project data before mutation.
- For installation, follow
references/langfuse-installation.md: clone or
reuse the exact Langfuse checkout, prepare first-run initialization values
and unique secrets outside version control, review the checked-in Compose
file, then start its services.
- Validate the deployment with Compose service state, container health and
logs, the local HTTP endpoint, and an authenticated UI check. Do not infer
initialization success only from running containers.
- When Hermes integration is requested, follow
references/hermes-integration.md: install the SDK in Hermes' actual
environment, enable the plugin, write variables to the exact Hermes .env
path, select the URL for the runtime topology, restart only when required,
and prove that a new trace arrives.
- For rollback, distinguish stop-only, container removal with data retained,
volume deletion, image deletion, and checkout deletion. Require explicit
confirmation before deleting volumes, credentials, or the checkout.
- When validating this reversible workflow, use a disposable target and run
the exact lifecycle
install -> rollback/uninstall -> install again from
references/langfuse-installation.md. Record commands and observable
assertions in STATE.md; if it cannot run safely, mark validation blocked.
- Report the checkout path, Compose project, service and endpoint checks,
Hermes trace evidence when applicable, retained or removed state, and any
remaining manual login or credential action.
Guardrails
- Treat the checked-out
docker-compose.yml as the service source of truth.
- Never commit
.env, API keys, passwords, salts, or generated encryption
material. Redact them from logs and state evidence.
- Initialization variables only affect a genuinely empty database. Use the
Langfuse UI for keys and users after initialization.
- Do not replace user-modified Compose files or
.env files without approval.
docker compose down preserves named volumes; docker compose down -v does
not. Require explicit confirmation before using -v.
- Resolve and display the exact checkout path before deleting it. Never use an
unresolved variable, broad glob, home directory, or workspace root.
- Do not rebuild or restart Hermes when a native one-shot invocation will
reload configuration automatically.
Output
Report actions performed, validation results, the lifecycle phase reached,
data preservation or deletion decisions, and any blocked runtime check.
1---2name: lanfuse-install3description: Install, configure, validate, integrate, stop, reinstall, or uninstall a local self-hosted Langfuse deployment with Docker Compose, including Hermes observability setup. Use for Langfuse local deployment, first-run initialization, Docker Compose troubleshooting, Hermes Langfuse traces, Windows Hermes venv issues, and safe Langfuse cleanup.4---56# Lanfuse Install78Manage a local Langfuse deployment and optional Hermes observability integration9without exposing secrets or deleting persistent data unexpectedly.1011## Required Context1213Read these files before acting:1415- `references/rules/env.md`16- `references/rules/filetree.md`17- `references/rules/state-rules.md`18- `references/langfuse-installation.md`19- `references/hermes-integration.md` when Hermes is in scope2021Reset `STATE.md` from `references/template/STATE.template.md` for a new run,22then record concrete evidence as each phase progresses.2324## Workflow25261. Identify the target OS, Langfuse directory, Docker Compose file, requested27 operation, and whether Hermes runs natively or in Docker. Inspect existing28 containers, volumes, `.env` files, and project data before mutation.292. For installation, follow `references/langfuse-installation.md`: clone or30 reuse the exact Langfuse checkout, prepare first-run initialization values31 and unique secrets outside version control, review the checked-in Compose32 file, then start its services.333. Validate the deployment with Compose service state, container health and34 logs, the local HTTP endpoint, and an authenticated UI check. Do not infer35 initialization success only from running containers.364. When Hermes integration is requested, follow37 `references/hermes-integration.md`: install the SDK in Hermes' actual38 environment, enable the plugin, write variables to the exact Hermes `.env`39 path, select the URL for the runtime topology, restart only when required,40 and prove that a new trace arrives.415. For rollback, distinguish stop-only, container removal with data retained,42 volume deletion, image deletion, and checkout deletion. Require explicit43 confirmation before deleting volumes, credentials, or the checkout.446. When validating this reversible workflow, use a disposable target and run45 the exact lifecycle `install -> rollback/uninstall -> install again` from46 `references/langfuse-installation.md`. Record commands and observable47 assertions in `STATE.md`; if it cannot run safely, mark validation blocked.487. Report the checkout path, Compose project, service and endpoint checks,49 Hermes trace evidence when applicable, retained or removed state, and any50 remaining manual login or credential action.5152## Guardrails5354- Treat the checked-out `docker-compose.yml` as the service source of truth.55- Never commit `.env`, API keys, passwords, salts, or generated encryption56 material. Redact them from logs and state evidence.57- Initialization variables only affect a genuinely empty database. Use the58 Langfuse UI for keys and users after initialization.59- Do not replace user-modified Compose files or `.env` files without approval.60- `docker compose down` preserves named volumes; `docker compose down -v` does61 not. Require explicit confirmation before using `-v`.62- Resolve and display the exact checkout path before deleting it. Never use an63 unresolved variable, broad glob, home directory, or workspace root.64- Do not rebuild or restart Hermes when a native one-shot invocation will65 reload configuration automatically.6667## Output6869Report actions performed, validation results, the lifecycle phase reached,70data preservation or deletion decisions, and any blocked runtime check.