docs/guides/configure-langfuse-observability.md
nanobot can trace supported OpenAI-compatible provider calls through Langfuse's OpenAI SDK wrapper.
Use Langfuse when you need observability for model requests, latency, errors, cost, or prompt behavior during development or production operation.
Install nanobot and prove the agent works:
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot agent -m "Hello!"
Install Langfuse:
python -m pip install langfuse
Set credentials before starting nanobot:
export LANGFUSE_SECRET_KEY="sk-lf-..."
export LANGFUSE_PUBLIC_KEY="pk-lf-..."
export LANGFUSE_BASE_URL="https://cloud.langfuse.com"
nanobot agent -m "Hello!"
PowerShell:
$env:LANGFUSE_SECRET_KEY = "sk-lf-..."
$env:LANGFUSE_PUBLIC_KEY = "pk-lf-..."
$env:LANGFUSE_BASE_URL = "https://cloud.langfuse.com"
nanobot agent -m "Hello!"
config.json.nanobot agent -m "Hello!" call before debugging service logs.