claude-code-langfuse-template
Self-hosted Langfuse for Claude Code session observability
File Explorer
Download Latest Version (.zip)- test.yml
- bug-fix-concurrent-sessions.md
- trace-analysis.md
- __init__.py
- langfuse_hook.py
- analyze-traces-sdk.py
- analyze-traces.sh
- generate-env.sh
- install-hook.sh
- validate-setup.sh
- cloud-settings.json
- global-settings-uv.json
- global-settings.json
- project-opt-out.json
- test_env_generation.sh
- test_full_integration.sh
- test_hook_integration.py
- test_hook_unit.py
- test_syntax.sh
- .env.example
- .gitignore
- docker-compose.test.yml
- docker-compose.yml
- LICENSE
- pyproject.toml
- README.md
# Installation Guide
git clone https://github.com/doneyli/claude-code-langfuse-template
Downloads the entire project code from GitHub to your computer.
cd claude-code-langfuse-template
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommendedpip install langfuse
Installs the package published on PyPI directly β no need to clone the source.
brew install python@3.12
Installs the pre-built package via Homebrew β no source build required.
sudo apt install python3.12
Installs directly from the APT package repository (Debian/Ubuntu-based).
Pulled directly from this repo's README.
3. Docker
Easy- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up -d
Builds and starts all defined containers (server, database, etc.) at once, in the background.
export LANGFUSE_PUBLIC_KEY=$(docker exec langfuse-web printenv LANGFUSE_INIT_PROJECT_PUBLIC_KEY)
Type this command into your terminal and run it.
export LANGFUSE_SECRET_KEY=$(docker exec langfuse-web printenv LANGFUSE_INIT_PROJECT_SECRET_KEY)
Type this command into your terminal and run it.
docker compose logs -f langfuse-web
Runs the command against the services defined in the compose file.
docker compose logs -f
Runs the command against the services defined in the compose file.
Pulled directly from this repo's README.
4. Python
Easypip install langfuse
Installs the package published on PyPI directly β no need to clone the source.
Pulled directly from this repo's README.
