Skip to content

Self-Host Langfuse and Access It with Localtonet

Install and verify Langfuse with Docker Compose, then securely expose its web application and HTTP API using a Localtonet HTTP tunnel.

Summary in your language
In this article 11 sections
AI and LLM Infrastructure · Langfuse v4.62.0 · Localtonet · 2026

Build a reproducible Langfuse deployment, validate trace ingestion, and publish it through a controlled HTTP tunnel

Langfuse is an open-source platform for tracing, evaluating, and improving AI applications. This guide deploys the verified Langfuse v4.62.0 release with its checked-in Docker Compose file, replaces the evaluation credentials, completes the first-run account flow, and verifies both the web interface and ingestion API. After Langfuse works locally, we configure its public origin and use a Localtonet HTTP tunnel to make the same service reachable without inbound router port forwarding, firewall changes, VPN setup, or a public IP address.

🔒 Replace every checked-in example secret before exposure 🌐 Local web endpoint at http://localhost:3000 ⚡ Reproducible deployment based on Langfuse v4.62.0
Self-hosted Langfuse running in Docker and connected to remote web and API clients through a Localtonet tunnel.
Langfuse runs locally in Docker Compose while Localtonet provides a public route to its web application and ingestion API.

What this deployment contains

Langfuse combines observability, evaluation, prompt management, datasets, experiments, and related LLM engineering workflows. Its tracing model can capture LLM generations together with retrieval, tool invocation, embedding, agent, and other application activity. The platform provides a browser interface, APIs, and SDK integrations for applications written in different languages and frameworks.

The Langfuse repository includes a Docker Compose deployment intended as the quickest self-hosting path. The v4.62.0 Compose project runs more than one container because the web application depends on persistent and supporting services. The checked-in stack includes the Langfuse web and worker services together with PostgreSQL, ClickHouse, Redis, and S3-compatible object storage provided by MinIO.

🖥️ Langfuse web application Provides the browser interface and public HTTP API. The checked-in Compose file publishes this service on host port 3000.
⚙️ Background worker Handles asynchronous work associated with ingestion and other platform operations. A responsive web container does not prove that the worker is healthy.
🗃️ PostgreSQL and ClickHouse Store application metadata and observability data. Both are persistent components and must be included in a recovery plan.
📦 Object storage The supplied stack uses MinIO for S3-compatible storage. Its credentials and persistent data require the same care as the databases.
🔄 Redis Supports queued and transient application work. Its health affects ingestion processing even when the web page remains reachable.
🌐 Localtonet HTTP tunnel Forwards a public HTTPS address to the verified Langfuse host address and port while the selected Localtonet client and tunnel are running.

This tutorial separates deployment from publishing. Docker must first produce a healthy local Langfuse endpoint at http://localhost:3000. Only after local account creation, secret replacement, and API verification should the endpoint be exposed through Localtonet.

Self-hosting also transfers operational responsibility to you. That includes release selection, resource sizing, secret management, authentication, backups, retention, monitoring, upgrades, and recovery. A set of running containers is useful evidence, but it is not by itself a production-readiness assessment.

Evaluation deployment versus production deployment

The repository Compose file is convenient for evaluation and single-host deployment. It also contains readable example credentials so that the stack can start without an external secret manager. Those defaults are not suitable for an internet-reachable installation. A production deployment needs unique credentials, controlled signup, persistent backups, resource monitoring, tested upgrades, and an availability design appropriate to the workload.

Langfuse documents Docker Compose, Kubernetes with Helm, and cloud Terraform paths for self-hosting. The project presents Kubernetes with Helm as its preferred production deployment path. Docker Compose can still be useful on a managed virtual machine, but the single host remains a shared failure domain for the application, databases, storage, Localtonet client, and tunnel.

Prepare the Docker host

For the self-hosted Docker Compose deployment, Langfuse documents a baseline of at least 4 CPU cores, 16 GB of RAM, and 20 GB of disk space. Treat these values as a starting requirement, not a sizing guarantee. Trace volume, media payloads, data retention, evaluation activity, concurrent users, and database growth can require substantially more capacity.

Requirement Verified baseline or purpose Validation
CPU At least 4 CPU cores for the Compose deployment. Check the host or VM allocation before downloading images.
Memory At least 16 GB of RAM. Confirm available memory and leave room for the operating system.
Disk At least 20 GB initially, with additional capacity for images, databases, payloads, and logs. Review free disk space and configure ongoing filesystem monitoring.
Git Retrieves the repository and allows a release tag or commit to be recorded. Run git --version.
Docker Engine Runs the application and supporting containers. Run docker version and confirm the client reaches the engine.
Docker Compose Creates and coordinates the checked-in multi-container project. Run docker compose version.
Outbound registry access Required to download the images referenced by the Compose file. Confirm DNS, HTTPS egress, and organizational proxy settings.
Localtonet client device Must be able to reach the Langfuse host on TCP port 3000. Test the Langfuse URL from that device before creating the tunnel.
git --version
docker version
docker compose version

A successful docker --version only confirms that a command-line client exists. docker version also attempts to contact the engine, which catches a stopped daemon, inaccessible socket, or permission problem before the deployment begins. Docker installation procedures differ by operating system, so use the applicable instructions in the Docker Engine installation documentation.

Keep port 3000 private during initial setup

Complete secret replacement, first-user creation, signup controls, and local verification before starting a public tunnel. If the host is on a shared network, also review its existing host firewall and network policy. Do not broadly disable security controls to make the service reachable.

Choose and record a reproducible Langfuse release

Langfuse publishes frequent releases. A shallow clone of the moving main branch is convenient for a short-lived evaluation, but the same command can retrieve different code on different days. This guide uses the named Langfuse v4.62.0 release, whose release commit begins with d6fc677.

Reproducible release checkout

Clone the release tag directly, then record the complete commit identifier returned by Git:

git clone --branch v4.62.0 --depth 1 https://github.com/langfuse/langfuse.git
cd langfuse
git describe --tags --exact-match
git rev-parse HEAD

The tag check should print v4.62.0. The full commit identifier should begin with d6fc677. Save the complete output in your deployment record. The exact v4.62.0 Docker Compose file can then be reviewed independently of later changes to main.

Official moving-branch quick start

The repository quick start may also be used for disposable evaluation:

git clone --depth 1 https://github.com/langfuse/langfuse.git
cd langfuse
docker compose up

If you use this path, immediately run git rev-parse HEAD and record the result. Do not describe the deployment only as “latest.” A commit identifier is necessary when reproducing a bug, reviewing a configuration change, or planning an upgrade.

Replace evaluation defaults and configure authentication

The checked-in Compose file is designed to start easily and therefore includes example secrets and service credentials. Before any public exposure, replace those values with unique generated values. Keep every producer and consumer of a credential synchronized. For example, changing a database password without changing the application connection URL will prevent Langfuse from connecting.

Checked-in example Used for Required action
NEXTAUTH_SECRET Application authentication and session security. Replace mysecret with a long random value.
SALT Application cryptographic operations. Replace mysalt with a separate random value.
ENCRYPTION_KEY Encrypts sensitive application data. Replace the all-zero example with a 64-character hexadecimal key.
PostgreSQL password Authenticates Langfuse to PostgreSQL. Replace postgres in the database service and every matching connection URL.
ClickHouse password Authenticates Langfuse and migrations to ClickHouse. Replace clickhouse in the service and all ClickHouse URLs or variables.
Redis password Protects access to Redis. Replace myredissecret everywhere it is referenced.
MinIO credentials Protect S3-compatible object storage. Replace minio and miniosecret, including matching S3 access variables.

Generate separate values rather than reusing one secret for every component. On a host with OpenSSL, these commands produce suitable random material for the authentication secret, salt, and hexadecimal encryption key:

openssl rand -base64 32
openssl rand -base64 32
openssl rand -hex 32

Store the resulting values in your approved secret-management workflow. Do not commit them to Git, paste them into issue reports, include them in screenshots, or save them in shared shell history. If you maintain a deployment-specific Compose override or environment file, restrict its filesystem permissions and include it in the backup and recovery documentation without exposing its contents.

Changing an encryption key can make stored secrets unreadable

Record the active encryption key securely and back it up separately from the application data. Do not casually rotate or lose it. A database backup without the required application secrets may not provide a usable recovery.

Set the canonical application URL

In the checked-in local configuration, NEXTAUTH_URL uses http://localhost:3000. That is correct for initial local verification. For an internet-facing deployment, set it to the final HTTPS origin assigned to the tunnel, with no extra path, for example:

NEXTAUTH_URL=https://your-assigned-public-host

This setting is relevant to authentication URLs, redirects, and generated application links. After changing it, recreate the Langfuse web and worker services with Compose. The v4.62.0 self-hosting configuration does not require a separate Localtonet-specific trusted-proxy variable. Do not add an undocumented proxy option simply because the service is behind a tunnel.

SDKs and applications sending telemetry need their Langfuse base URL set to the origin they can reach. A process on the Docker host can use http://localhost:3000. A remote process should use the Localtonet HTTPS URL after the tunnel is running. Project public and secret keys remain the Langfuse credentials for ingestion. The Localtonet device token is never used as a Langfuse API key.

Plan the first user and public signup

On the first visit, the default self-hosted interface presents the account creation flow. Create the initial administrative account locally, create the intended organization and project, and verify login before exposing the service. Use a strong unique password and an email address controlled by the deployment owner.

By default, leaving signup enabled can allow additional visitors who reach the application to create accounts. Once the intended users have been provisioned, set the documented AUTH_DISABLE_SIGNUP=true control and recreate the affected Langfuse services. Existing users can continue to authenticate, while the public signup route is disabled.

If your organization uses a supported SSO provider or automated initialization, follow the current Langfuse self-hosting documentation for the exact release and identity provider. Do not expose the site first and postpone authentication design until later.

Start Langfuse with Docker Compose

Three-step Docker Compose flow for preparing, starting, and checking a local Langfuse deployment.
Start the versioned Compose project, watch initialization, and verify every required container rather than relying on one startup message.

After checking out v4.62.0 and replacing the example credentials, follow the repository quick-start sequence. Run these actions from the repository directory containing docker-compose.yml.

1

Clone the selected Langfuse revision

Use the v4.62.0 release checkout shown above, or use the official shallow quick-start clone and record its complete commit identifier.

2

Enter the repository directory

Run Compose from the directory containing the checked-in project definition so that Docker uses the intended services, networks, volumes, and port mappings.

3

Start the Compose project

Run the project in the foreground for the first startup. Docker downloads images, creates persistent volumes and networks, initializes the data services, and starts Langfuse.

docker compose up

Keep this terminal open during the first initialization. The web service may start before PostgreSQL, ClickHouse, Redis, object storage, migrations, or the worker are ready. Wait for the stack to settle, then inspect it from a second terminal.

After a successful first run, you can stop the foreground process with the normal terminal interrupt and restart in detached mode:

docker compose up -d

Detached mode only changes where logs are displayed. It does not make the services healthier or more persistent. Use docker compose ps and docker compose logs after every start.

Verify the web application and API ingestion

A complete verification checks container state, HTTP health, first-run authentication, cross-device connectivity, and actual trace ingestion. Perform these checks locally before starting the public tunnel.

1. Inspect container state and health

docker compose ps
docker compose logs --tail=200

Required services should remain running rather than repeatedly restarting or exiting. Where the Compose file defines a health check, healthy means that container's configured health command succeeded. A temporary starting state can be normal during initialization. An extended unhealthy state or a restart loop requires investigation.

Health is service-specific. A healthy PostgreSQL container does not prove that ClickHouse migrations completed, and a responsive web container does not prove that asynchronous ingestion is working. Review the worker and dependency states together.

2. Check the local HTTP endpoint

The v4.62.0 Compose file publishes Langfuse on host port 3000. Open this URL on the Docker host:

http://localhost:3000

Before login, a browser may receive a redirect to an authentication or signup page. That redirect is an expected application response. You can inspect the response without following it:

curl -I http://localhost:3000

A 200 response or an HTTP 3xx redirect to an authentication route proves that an HTTP application answered. A connection refusal means nothing accepted the connection on that address and port. A timeout usually points to routing, binding, filtering, or an unresponsive host.

Langfuse also exposes a public health endpoint:

curl -i http://localhost:3000/api/public/health

A healthy service should return HTTP 200 with a JSON response indicating an OK status and the running version. Use the version field to confirm that the application matches the release you intended to deploy.

3. Complete the first-run account flow

Open http://localhost:3000 in a browser, create the first account, and sign in. Create an organization and a project through the interface. Generate project API credentials only for the project that will receive the verification event. Keep the project secret key private.

After confirming that the intended account can sign in, apply AUTH_DISABLE_SIGNUP=true if public self-registration is not required. Recreate the services, sign out, and confirm that ordinary login remains available while new public account creation is no longer offered.

4. Test from the Localtonet client device

If Localtonet runs on the Docker host, test http://127.0.0.1:3000 from that host. If the client runs on another device, replace the loopback address with the Docker host's LAN address:

curl -i http://DOCKER_HOST_LAN_IP:3000/api/public/health

Replace DOCKER_HOST_LAN_IP with the actual address. Do not type the placeholder literally. The result should again be HTTP 200. This cross-device check is important because localhost always refers to the machine on which the command is executed.

5. Send a verified ingestion event

The following request uses Langfuse's documented ingestion API. Set the project keys in a private local shell. Do not paste real credentials into the command itself, a shared terminal transcript, or a screenshot.

export LANGFUSE_PUBLIC_KEY='your-project-public-key'
export LANGFUSE_SECRET_KEY='your-project-secret-key'
export LANGFUSE_BASE_URL='http://localhost:3000'

EVENT_ID="$(python3 -c 'import uuid; print(uuid.uuid4())')"
TRACE_ID="$(python3 -c 'import uuid; print(uuid.uuid4())')"
TIMESTAMP="$(python3 -c 'from datetime import datetime, timezone; print(datetime.now(timezone.utc).isoformat().replace("+00:00", "Z"))')"

curl -i \
  -u "$LANGFUSE_PUBLIC_KEY:$LANGFUSE_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -X POST "$LANGFUSE_BASE_URL/api/public/ingestion" \
  --data "{\"batch\":[{\"id\":\"$EVENT_ID\",\"timestamp\":\"$TIMESTAMP\",\"type\":\"trace-create\",\"body\":{\"id\":\"$TRACE_ID\",\"timestamp\":\"$TIMESTAMP\",\"name\":\"localtonet-ingestion-check\"}}]}"

The batch ingestion endpoint can return HTTP 207 Multi-Status. Inspect the JSON body rather than treating 207 as a failure. A successful result identifies the event as accepted and contains no per-event ingestion error. Because processing is asynchronous, allow the worker a short time, refresh the Langfuse traces view, and locate the trace named localtonet-ingestion-check.

An HTTP 401 response means the request reached Langfuse but the project credentials were missing, incorrect, or mismatched. A connection failure means the request did not reach the HTTP service. If the API accepts the event but it never appears, inspect worker, Redis, ClickHouse, and object-storage logs.

Remove the temporary values from the current shell when the test is complete:

unset LANGFUSE_PUBLIC_KEY LANGFUSE_SECRET_KEY LANGFUSE_BASE_URL
unset EVENT_ID TRACE_ID TIMESTAMP
Use separate browser and API checks

A successful login proves that the web and authentication path works. An accepted ingestion event proves that project authentication and the ingestion route work. Confirm both because they exercise different parts of the deployment.

Expose Langfuse with a Localtonet HTTP tunnel

Remote browser and API requests traveling through a Localtonet HTTP tunnel to Langfuse on a private Docker host.
The Localtonet client creates an outbound connection and forwards the assigned public HTTPS address to the verified Langfuse host endpoint.

Our HTTP tunnel points to the local IP address and port that already passed verification. The Localtonet client establishes an outbound connection to a selected relay server, so this workflow does not require inbound router port forwarding, firewall changes, VPN setup, or a public IP address.

HTTP and File Server tunnels can use a generated random subdomain, a custom subdomain, or a custom domain where supported. These process types serve the same content at a public HTTPS address. Available options can vary, so use the values shown in your current dashboard and do not assume that every option is included with every plan.

1

Install and run the Localtonet client

Run our client on the Docker host or another device that can reach the verified Langfuse address and port.

2

Select the client device

Authenticate with the device-specific token from your Localtonet account and select the corresponding device. Keep the token private.

3

Select an available relay server

Choose a server or region currently offered in the dashboard. Do not copy a hardcoded server code from an older tutorial.

4

Create the HTTP tunnel

Select the required process type and enter the verified local target. Use 127.0.0.1 and port 3000 when the client runs on the Docker host, or the Docker host's reachable LAN address and port 3000 when it runs elsewhere.

5

Record the assigned public HTTPS URL

Creating the tunnel reserves or displays its public address, but creation alone does not mean that the tunnel is running. Keep it stopped while updating Langfuse's canonical URL.

6

Update the Langfuse public origin

Set NEXTAUTH_URL to the exact assigned HTTPS origin, recreate Langfuse, and repeat the local health and login tests before enabling public traffic.

7

Start and verify the tunnel

Use the Start button, wait for the selected device and tunnel to show as connected, and then test the public URL. Stop or delete the tunnel when remote access is no longer required.

The exact dashboard sequence and current interface are documented in our HTTP tunnel documentation. The important lifecycle distinction is that configuring or creating a tunnel does not start it. The public endpoint works only while the selected client is connected and the tunnel is running.

Verify the public endpoint

First test the non-secret health endpoint from a device outside the Docker host:

curl -i https://your-assigned-public-host/api/public/health

Expect HTTP 200 and an OK JSON response. Then open the root URL in a private browser window. An unauthenticated visitor should be redirected to login rather than seeing a signed-in workspace. If signup was disabled, the public flow should not offer unrestricted account creation.

Sign in with an authorized test account and confirm that redirects remain on the public HTTPS origin. If a redirect unexpectedly points to localhost:3000, recheck NEXTAUTH_URL and recreate the Langfuse services.

To validate remote ingestion, temporarily set LANGFUSE_BASE_URL in the earlier ingestion test to the public HTTPS origin and send a new uniquely identified event. Expect the same accepted multi-status response and a new trace in the intended project. Do not place the project secret key in a browser URL, front-end bundle, log message, or public CI output.

The public URL is an internet-facing application endpoint

Localtonet supplies connectivity to Langfuse, not Langfuse authorization. Disable unwanted signup, use least-privilege accounts and project credentials, minimize sensitive telemetry, and stop the tunnel when public access is unnecessary.

Operate, back up, and upgrade the deployment

Run routine Compose commands from the same versioned repository directory. Understand which operations affect only containers and which can remove persistent state.

Operation Command Effect
Show state docker compose ps Lists service state, health information, and published ports.
Follow logs docker compose logs -f Streams output while reproducing an application or ingestion problem.
Stop containers docker compose stop Stops existing project containers without removing them.
Start stopped containers docker compose start Starts containers previously created by the project.
Remove containers and network docker compose down Removes project containers and networks without explicitly requesting volume deletion.
Reconcile configuration docker compose up -d Creates or recreates services to match the current Compose configuration.
Do not add the volume-deletion option casually

A teardown command that removes volumes can destroy PostgreSQL, ClickHouse, and object-storage data. Confirm exactly what is stored in every volume and verify a restorable backup before performing destructive cleanup.

Back up the complete persistent state

A useful Langfuse recovery plan must cover PostgreSQL, ClickHouse, object storage, deployment configuration, and the secrets needed to decrypt and access that data. Backing up only the repository is insufficient because the repository does not contain the live databases. Backing up only PostgreSQL is also incomplete because observations and payloads depend on other persistent components.

Prefer the database and object-storage backup mechanisms documented for those systems rather than copying live volume directories while services are writing to them. Coordinate backups so that related PostgreSQL metadata, ClickHouse observations, and object-storage payloads represent a recoverable point in time. Protect backup credentials and encrypted application secrets separately.

A restore test should use an isolated host, the same Langfuse release, the saved deployment configuration, and the required application secrets. Restore all persistent components, start the stack without public exposure, run the health check, sign in, open historical traces, and submit a new test event. A backup has not been proven until that restoration succeeds.

Control Docker log growth

The repository notes that the Compose deployment inherits the Docker daemon's logging configuration. Docker's commonly used json-file driver does not rotate logs unless rotation is configured. Set appropriate max-size and max-file limits in the Docker logging configuration, or intentionally use another supported logging backend.

Do not rotate or truncate Docker-managed JSON files with an unrelated file tool. When changing daemon-wide logging defaults, restart Docker and recreate existing containers so that the new settings apply. Plan for the resulting interruption.

Container stdout retention is only one storage concern. Also monitor PostgreSQL, ClickHouse data and internal logs, MinIO objects, Docker images, and filesystem free space. Application data retention should be selected according to your privacy, compliance, investigation, and capacity requirements. Do not delete underlying database files as an improvised retention mechanism.

Use a controlled upgrade and rollback process

Before upgrading, record the current release tag, full commit, image references, configuration, secrets, and persistent-volume inventory. Read the target release notes and self-hosting migration guidance, then create a verified backup.

Test the target release against a restored copy of representative data. Confirm migrations, login, historical trace access, new ingestion, worker health, and the Localtonet public-origin behavior. Only then schedule the production change.

Do not assume that checking out an older tag reverses a database migration. A safe rollback may require restoring the pre-upgrade PostgreSQL, ClickHouse, and object-storage backups together with the previous configuration and secrets. Define that procedure before applying the upgrade.

Troubleshoot from the inside out

Diagnose the stack in this order: container state, local health endpoint, local login, API ingestion, cross-device access, Localtonet client state, tunnel state, public health endpoint, and public authentication flow. This keeps an application failure from being mistaken for a tunnel failure.

Docker Compose cannot start

Run docker version and verify that the engine responds. Confirm that the host meets the documented resource baseline and has enough free disk space. Run the command from the checked-out Langfuse repository directory. For image download failures, inspect DNS, HTTPS egress, proxy settings, registry messages, and disk capacity.

A service is unhealthy or repeatedly restarts

docker compose ps
docker compose logs --tail=200 SERVICE_NAME

Replace SERVICE_NAME with the actual service listed by Compose. Find the first persistent error rather than only the final restart message. Check for mismatched credentials, dependency failures, migration errors, occupied ports, memory pressure, and full filesystems.

Port 3000 is already in use

Another host process may already be listening on the port that the checked-in Compose file publishes. Identify that process and decide which service should own the port. If you intentionally change the Langfuse host-side mapping, use the new host port consistently for browser checks and the Localtonet target. The container-side configuration should not be changed merely to resolve a host conflict.

The health endpoint works but the dashboard does not

Inspect the browser redirect chain and Langfuse web logs. Confirm that NEXTAUTH_URL matches the origin being tested. For initial local setup it should be http://localhost:3000. Before public login it should be the exact Localtonet HTTPS origin.

Login redirects to localhost through the public URL

This indicates that the canonical application URL is still local or that the updated configuration was not applied. Correct NEXTAUTH_URL, run docker compose up -d to recreate affected services, and test again in a private browser context to avoid stale cookies.

Langfuse works on the host but not from the Localtonet device

Test http://DOCKER_HOST_LAN_IP:3000/api/public/health from the device running our client. If that fails, resolve host binding, routing, or approved firewall policy before changing the tunnel. Do not use 127.0.0.1 as the target when Localtonet runs on a different machine, because that address would refer to the client machine itself.

The Localtonet URL does not respond

  • Confirm that http://localhost:3000/api/public/health still works on the Docker host.
  • Confirm that the same endpoint works from the Localtonet client device.
  • Verify that the client is running and connected as the intended device.
  • Verify that the tunnel targets the tested local IP address and host port.
  • Confirm that the configured tunnel was started rather than only created.
  • Confirm that the selected relay server is still the one shown in the current configuration.

The ingestion request returns 401

The request reached Langfuse, but authentication failed. Verify that the public and secret keys belong to the same project and that the Basic authentication order is public key followed by secret key. Do not print the secret while debugging. Generate replacement project credentials if exposure is suspected.

The ingestion API accepts an event but no trace appears

Allow for asynchronous processing, refresh the correct project, and inspect the worker, Redis, ClickHouse, and object-storage services. Confirm that the event response contains no per-event error. A healthy web endpoint alone does not validate the queue and worker path.

Plan beyond a single-host evaluation

Deployment path Typical context Main responsibility
Local Docker Compose Development, evaluation, and learning. The local machine owns all persistence, resources, updates, and uptime.
Docker Compose on a VM Managed single-host deployment. Requires deliberate host hardening, backups, monitoring, maintenance, and failure recovery.
Kubernetes with Helm Langfuse's preferred production deployment path. Requires Kubernetes expertise and careful operation of persistent dependencies.
Cloud Terraform templates Provisioning on supported cloud platforms. Requires review of networking, credentials, generated resources, availability, and ongoing cost.

Before treating a deployment as production-ready, define ownership, monitoring, alerting, incident response, backup frequency, restoration targets, retention, capacity planning, access review, release management, and credential rotation. Test representative ingestion volume and query patterns rather than extrapolating from one trace.

A Localtonet HTTP tunnel can provide remote reachability without inbound router configuration, but it does not make a single-host Compose stack highly available. Availability still depends on the Docker host, every required Langfuse service, the Localtonet client, outbound network connectivity, and the running tunnel.

Frequently asked questions

What local port does Langfuse v4.62.0 use?

The checked-in v4.62.0 Docker Compose file publishes the Langfuse web application on host port 3000. The local browser URL is http://localhost:3000, and the public health endpoint is http://localhost:3000/api/public/health.

Why should I use a release tag instead of the main branch?

The main branch changes over time. A named release and recorded commit allow you to reproduce the Compose file, configuration, images, and behavior that were actually deployed. This tutorial uses v4.62.0 and verifies that its commit begins with d6fc677.

Can I expose the default Compose deployment immediately?

No. Replace the example authentication, encryption, database, Redis, ClickHouse, and MinIO credentials first. Create the initial authorized user locally, disable public signup if it is not required, configure the public NEXTAUTH_URL, and verify login and ingestion before starting the tunnel.

Does Localtonet need to run inside a Langfuse container?

No. Run our client on the Docker host or another device that can reach the published host endpoint. Use 127.0.0.1:3000 when the client is on the Docker host, or the host's reachable LAN address and port 3000 when the client is elsewhere.

Does creating a Localtonet tunnel start it?

No. Tunnel creation and tunnel startup are separate lifecycle actions. Configure the target, record the public URL, update Langfuse's canonical URL, and then use the Start button. The endpoint remains available only while the selected device is connected and the tunnel is running.

Does the tunnel replace Langfuse authentication?

No. The tunnel provides network reachability. Langfuse remains responsible for user authentication, authorization, project access, and API credentials. Disable unwanted signup and use least-privilege accounts and project keys.

Can remote SDKs send traces through the Localtonet URL?

Yes. Set the SDK or ingestion client's Langfuse base URL to the assigned HTTPS origin and use valid project credentials. Verify the health endpoint and one non-sensitive test trace first. Never put a Langfuse secret key in browser-side code or a public repository.

What must be backed up?

Preserve PostgreSQL, ClickHouse, object-storage data, deployment configuration, and the secrets required to access and decrypt that state. Use coordinated, supported backup methods and test a complete restoration with the same Langfuse release before relying on the backup.

Is Docker Compose the preferred production deployment?

Docker Compose is the quick self-hosting path and can be operated on a single virtual machine. Langfuse identifies Kubernetes with Helm as its preferred production deployment. Choose based on your availability, scaling, persistence, recovery, and operational requirements.

Connect your verified Langfuse deployment with Localtonet

Deploy a versioned Langfuse release, replace its evaluation defaults, verify login and trace ingestion locally, and then publish port 3000 through a Localtonet HTTP tunnel when authorized remote access is required.

Get Started Free →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Reviewed and updated for accuracy and completeness.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support