* feat(skills): add nanobot documentation guide with bundled docs * docs: prefer graphical setup and align bundled guides with runtime * docs: lead provider setup with built-in endpoint defaults * fix: preserve documentation packaging and lookup across install paths * fix(skills): narrow documentation loading to relevant sections * refactor(skills): keep documentation guidance concise * fix(docs): complete first-use workflows and clarify runtime boundaries * style(docs): remove manual paragraph wrapping * docs: guide first-run users to conversational setup help * docs: fold README installation alternatives and details * docs: separate README alert marker from its body * docs: clarify README onboarding and runtime boundaries
2.1 KiB
2.1 KiB
How to Configure Langfuse Observability for nanobot
nanobot can trace supported OpenAI-compatible provider calls through Langfuse's OpenAI SDK wrapper.
What you will build
- Langfuse installed in the same Python environment as nanobot
- Langfuse environment variables set before startup
- one traced nanobot model call
When to use this
Use Langfuse when you need observability for model requests, latency, errors, cost, or prompt behavior during development or production operation.
Install
Complete Quick Start if nanobot is not installed or cannot reply yet. Continue with the same working instance.
Install Langfuse:
nanobot plugins enable langfuse
Minimal working example
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!"
Production notes
- Langfuse is configured with environment variables, not
config.json. - Start services from an environment that exports the same variables.
- Add tracing after the provider works; it should not be the first setup step.
- Native providers that do not use the OpenAI-compatible client path may not produce Langfuse OpenAI-wrapper traces.
Security notes
- Treat Langfuse projects as observability stores for sensitive prompts and outputs.
- Use separate projects for personal, staging, and production traffic.
- Keep Langfuse keys out of committed service files.
Troubleshooting
- If no traces appear, confirm the service process sees the environment variables.
- Confirm the provider path is OpenAI-compatible.
- Run one local
nanobot agent -m "Hello!"call before debugging service logs.