Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs(agents): set CLICKHOUSE_USER in the preview seed command (#18072)

langfuse-bota44ba91e28c0
diff --git a/.agents/skills/langfuse-previews/SKILL.md b/.agents/skills/langfuse-previews/SKILL.md
index 23a9ddbca9..792a98be37 100644
--- a/.agents/skills/langfuse-previews/SKILL.md
+++ b/.agents/skills/langfuse-previews/SKILL.md
@@ -109,7 +109,7 @@ CHPW=$(kubectl -n $NS get secret langfuse-secrets -o jsonpath='{.data.clickhouse
# NEXTAUTH_URL makes the CLI's printed deep links point at the preview UI
cd packages/shared
DATABASE_URL="postgresql://postgres:$PGPW@localhost:5432/postgres_langfuse" \
-CLICKHOUSE_URL="http://localhost:8123" CLICKHOUSE_PASSWORD="$CHPW" \
+CLICKHOUSE_URL="http://localhost:8123" CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD="$CHPW" \
NEXTAUTH_URL="https://pr-<N>.preview.langfuse.com" \
pnpm run seed:scenario -- deep-chain --v4
```
@@ -117,6 +117,10 @@ pnpm run seed:scenario -- deep-chain --v4
- `pnpm run seed:scenario -- list` shows every scenario and flag; add
`--dry-run` to predict counts and write nothing. Full catalog: the
`seed-test-data` skill.
+- **`CLICKHOUSE_USER=default` is not optional.** Previews run ClickHouse as
+ `default`, while local `docker-compose.dev.yml` uses `clickhouse` — so without
+ the override your local `.env` wins and the seed fails with
+ `Code: 516 ... AUTHENTICATION_FAILED`. Postgres needs no equivalent override.
- The last stdout line is a JSON summary with `verified` and clickable `links`
straight into the preview UI.
- Run from a checkout whose **migrations match the PR** — scenario code and the