Skip to content

Self-Host Onyx and Publish It with Localtonet

Install and verify the Onyx AI platform, then publish its web interface securely through a Localtonet HTTP tunnel.

Summary in your language
In this article 10 sections
Self-Hosting · Onyx AI Platform · Localtonet

Verify your Onyx deployment locally, then publish its web interface with controlled remote access

Onyx connects AI chat and agents to models, tools, and organizational knowledge. With Localtonet, you can make a working Onyx web interface reachable through a public HTTPS address without inbound router port forwarding. This guide explains deployment choices, local acceptance checks, the documented HTTP tunnel setup, and remote security testing. It also identifies the release-specific installation, authentication, and recovery details that must be confirmed before treating a deployment as production-ready.

🔒 Authenticate before public exposure 🌐 Publish the verified web endpoint ⚡ Diagnose application and tunnel layers separately
Remote browser traffic reaching a locally hosted Onyx interface through a Localtonet HTTP tunnel.
Publish the application only after its local endpoint and access controls have passed verification.

Understand the application and connectivity layers

Onyx provides chat, agents, connected knowledge, and related application workflows. Localtonet provides network reachability to the web interface. Keeping those responsibilities separate makes deployment safer and troubleshooting faster: a tunnel cannot supply a missing model credential, repair an index, or decide which Onyx user may read a document.

Request path from a public browser through Localtonet to a locally hosted Onyx web interface.
The local target must be reachable from the Localtonet client's network environment. A loopback target is appropriate only when that environment shares the service's network namespace.

Our client establishes an outbound connection to a Localtonet relay server. An HTTP tunnel provides a public HTTPS address and forwards requests to the configured local IP address and port. The endpoint works only while the selected client is connected and the tunnel is running. This is HTTP tunneling, not a VPN, and it does not bypass application authorization or organizational network policy.

💬 Onyx application Manages users, chat, agents, model access, knowledge, and application permissions.
🐳 Deployment stack Runs the application and the supporting services required by the selected mode and release.
🔗 Localtonet client Connects outward to our platform and must be able to reach the intended Onyx web endpoint.
🌐 HTTP tunnel Publishes a public address with configurable transport and additional access controls.

Deployment modes are not product editions

The current Onyx introduction distinguishes Community, Business, and Enterprise editions. Community is described as free and open source and includes core features such as Chat, Internal Search, Agents, Projects, and Plugins. Business adds Craft and other capabilities for growing teams. Enterprise adds SSO, permission synchronization, groups and access controls, usage analytics, and more.

Do not infer licensing terms or a complete premium-feature matrix from that summary. Check the license files for the exact code and release you deploy in the official Onyx repository. We do not assert a universal MIT license for every component or edition here. Current documentation also announces a move to group-based permissions; existing deployments should review the permissions migration details rather than apply an older RBAC description unchanged.

Prepare the deployment and access prerequisites

Scope and verification limit

The available Onyx documentation confirms a guided Docker Compose installer, but does not establish a tested release, supported host OS list, precise resource sizes, installer source behavior, account-creation procedure, or recovery commands. Those details have not been independently verified for this revision. Accordingly, this is a publication and validation guide for a separately verified Onyx installation, not a tested, copy-and-paste Onyx deployment or disaster-recovery recipe.

Before installing, use the current Onyx documentation index to locate the installation, resourcing, configuration, authentication, model-provider, persistence, and upgrade pages for your deployment. The deployment overview is the confirmed entry point for the guided installer and resourcing guidance. Exact downstream page URLs and their procedures are not established by the available evidence, so this guide does not guess them.

Host preparation

Use an administratively controlled host with a maintained container runtime. A Linux Docker Engine installation and a Docker Desktop installation do not have identical prerequisites, filesystem behavior, or networking. Select the host OS and architecture only after confirming support in the current Onyx installer and Docker instructions for that environment. This guide does not certify a particular Linux distribution, macOS version, Windows version, or WSL configuration.

For the Compose deployment path, verify the Docker client, Compose plugin, and daemon independently:

docker --version
docker compose version
docker info

The first two commands confirm that the commands are installed. The third confirms access to a running Docker daemon. A permission error is not fixed by repeatedly rerunning the installer. Resolve it through the host's approved Docker administration procedure. Access to the Docker daemon is highly privileged and should not be granted casually.

  • Confirm the shell and download tools required by the current installer rather than assuming every OS can execute it unchanged.
  • Allow authorized outbound access to the required image registries, model endpoints, and connector services.
  • Budget CPU, memory, disk capacity, and disk performance for the selected mode and workload.
  • Reserve storage for growth, temporary processing, image updates, and backups, not only the initial containers.
  • Have approved model credentials and a non-sensitive test document ready.
  • Choose a backup destination separate from the running application and restrict access to its contents.

Localtonet prerequisites

Before beginning the five tunnel setup steps, install and run our client on a device that can reach Onyx, and connect it using its device-specific AuthToken. The HTTP tunnel documentation includes the prerequisite Quick start link. Keep the token out of screenshots, repositories, logs, and shared runbooks.

You also need a working Onyx web endpoint and its actual port. For a Custom subdomain, your Localtonet account needs balance. For a Custom domain, it additionally needs your domain already added in DNS Manager. Use the current domain instructions for that configuration; no DNS record values are assumed here.

Choose Lite or Standard without assuming component names

The current Onyx overview describes Lite as a lower-resource chat-oriented deployment and Standard as the full platform. It does not substantiate a fixed “under 1 GB” memory promise. Size the host using current resourcing guidance and validate it under the intended workload.

CapabilityLiteStandard
Chat-oriented workflowsLLM chat, tools, file uploads, and ProjectsIncludes Lite capabilities plus the broader knowledge stack
Knowledge indexingNo indexing or vector databaseVector and keyword index for RAG
Connector synchronizationNo background connector workersBackground containers synchronize connected knowledge
Model serversDocker Compose Lite skips both model serversIncludes model inference services used during indexing and inference
Additional infrastructureReduced stackObject-store file storage and Redis performance optimizations
Resource planningLower resource usage, not a fixed numeric guaranteeAdditional capacity needed for indexing, synchronization, and workload growth

The model-server statement is specifically about Docker Compose Lite. The overview says Helm Lite still starts the inference model server unless it is explicitly disabled. Do not transfer Compose assumptions directly to Helm.

Standard is appropriate when your goal includes indexing connected organizational knowledge. Lite is appropriate when the immediate goal is chat and agents without that indexing stack. Neither choice automatically grants Business or Enterprise features. Similarly, an object store is a documented architectural capability, but MinIO and exact container or volume names must be checked against your selected release rather than treated as timeless requirements.

Establish a reproducible Onyx installation record

Onyx recommends a guided installation script supporting both Lite and Standard. The earlier command using https://onyx.app/install_onyx.sh and the earlier default-port claim of 3000 are not confirmed by the available installer source or quickstart evidence. This does not establish that they are wrong. It means neither should be presented as a verified executable instruction in this revision.

Obtain the installer command through the current deployment overview, inspect the linked script, and pin or record the version it actually installs. Downloading from a moving URL is not, by itself, a reproducible release selection. A successful script exit also does not prove that authentication, provider access, persistence, and public-origin handling are configured correctly.

Record the exact deployment contract

Before continuing, record the following in a private runbook:

  • Onyx release or immutable image identifiers and the selected Lite or Standard mode.
  • Supported host OS, architecture, Docker version, and Compose version used.
  • The installer revision or reviewed script and its actual startup invocation.
  • The deployment directory and Compose project name.
  • Every Compose file in order, every enabled profile, and every environment-file argument.
  • Configuration-file and secret locations without copying secret values into the runbook.
  • The published web address, port, and upstream protocol.

Do not assume that changing into a generated directory makes bare docker compose select the correct stack. Multiple files, profiles, project names, or environment files can change which services and volumes Compose operates on.

Use one verified Compose invocation throughout operations

The examples below use a Bash helper named onyx_compose. It is a local convention for this guide, not an Onyx command. Define it only after you have confirmed the release's invocation. Replace the marked line with that exact command prefix, retaining all required arguments and appending "$@".

# Template only: replace the marked line before use.
onyx_compose() {
  # Run from the verified deployment directory if required.
  # Insert: docker compose [all verified project/file/env/profile arguments] "$@"
  printf '%s\n' 'Configure the verified Compose invocation first.' >&2
  return 1
}

This intentionally refuses to operate until configured. It is safer than silently selecting an unrelated Compose project. Once configured, all examples using the helper inherit the same deployment arguments. The initial installer startup command remains release-specific and is not replaced by this helper.

Account, authentication, and model-provider configuration

The available documentation excerpts do not establish the installed release's initial administrator creation sequence, authentication variable names, provider settings location, or callback paths. No tested provider configuration can therefore be claimed here, including for OpenAI or a self-hosted endpoint. Finish those steps using the chosen release's documented configuration before publishing.

For an OpenAI-backed deployment, for example, verify that the installed version documents that provider, locate its supported administrative configuration, and supply an authorized key and an accessible model there. Do not guess a settings route or place credentials in browser-visible configuration. The acceptance test is concrete: sign in as a normal user, select the configured model, submit a harmless prompt such as “Reply with exactly READY,” and confirm a completed response without provider authentication or model-access errors.

Public-origin configuration is a release-specific gate

This guide does not verify Onyx public-URL variables, trusted proxy settings, cookie settings, OAuth redirect paths, or authentication callback requirements. Confirm them for the installed release and enabled authentication method before exposure. A working local login does not demonstrate correct HTTPS proxy integration.

Verify every local layer before publishing

Onyx displayed in a local browser alongside running service status.
Container status, HTTP reachability, authentication, and application workflows are separate acceptance checks.

After configuring the helper above, inspect the active service set and running containers:

onyx_compose config --services
onyx_compose ps
onyx_compose logs --tail=200

Investigate exited, restarting, or unhealthy services before proceeding. Initial startup can take time, but repeated dependency errors, migration failures, or storage errors require diagnosis. Use service names from the active configuration rather than copying names from another release.

Set a local URL from the verified published endpoint. This interactive Bash example deliberately avoids assuming a port:

read -r -p 'Verified local Onyx URL, including scheme and port: ' ONYX_LOCAL_URL
curl --silent --show-error --output /dev/null \
  --write-out 'HTTP %{http_code}\n' "$ONYX_LOCAL_URL"

A response demonstrates reachability, not full health. A redirect to login can be expected. A refusal or timeout means the endpoint is not yet usable from that environment. A server error means the HTTP route responds but the application needs investigation.

Run application acceptance checks

  • Complete initial account setup locally without exposing an unclaimed administrator flow.
  • Open a fresh private browser window and verify the expected unauthenticated behavior.
  • Sign in as an intended user, refresh the page, and navigate directly to a permitted conversation.
  • Send the harmless model prompt and observe both response progress and completion.
  • If uploads are enabled, upload a small non-sensitive file and exercise the intended file workflow.
  • For Standard connectors, synchronize a small approved dataset and verify retrieval and access boundaries.
  • Test a user who should not see the protected content, not only an administrator who can see everything.

Record expected and actual results. A provider request can fail even when login succeeds, and indexing can fail even when ordinary chat works. This baseline lets you compare the same workflow locally and publicly instead of guessing which layer failed.

Loopback means the same network namespace

127.0.0.1 is appropriate only when the Localtonet client can reach Onyx through that same loopback environment. A containerized client can share a physical host with Onyx while having a different network namespace. Test the endpoint from the client's actual environment. A client on another LAN device needs the reachable private address of the Onyx host.

Create the Localtonet HTTP tunnel in five steps

Public browser requests forwarded through Localtonet to the local Onyx web endpoint.
Configure the target using the endpoint already tested from the connected client, not an assumed Onyx default port.

The following sequence follows our current HTTP tunnel documentation. Client installation and token connection are prerequisites, not additional tunnel-creation steps. Complete the Onyx authentication and public-origin checks first. Keep any initial public test restricted to authorized testers.

1

Open the HTTP page

Open My Tunnels > HTTP and select Create HTTP Tunnel to open the form.

2

Choose the URL type

Choose Random subdomain, Custom subdomain, or Custom domain. Random subdomain generates a name. Custom subdomain requires account balance and accepts letters, digits, and hyphens. Custom domain requires balance and a domain already added in DNS Manager.

3

Choose the device and region

In Device token, select the token used by the connected Localtonet app. In Server region, select an available region close to that device. Use current dashboard choices rather than a hardcoded server code.

4

Enter the local address and create the tunnel

Select Domain and, for a Custom subdomain, enter Subdomain. Enter the verified Local IP address and Local port. The address accepts IPv4, IPv6, or localhost; the port range is 1 to 65535. Select Create tunnel. The entry appears under Your tunnels with its tunnel ID.

5

Start from the Actions column

Select the start button in Actions. When running, the address in the URL column becomes a link. If the client is offline, connect it before testing; choosing Start anyway does not make an offline device reachable.

Creating and starting are separate actions. Stopping and starting an HTTP tunnel preserves its subdomain until the tunnel is deleted. That stability is useful for configured application origins and callbacks, but you must still verify Onyx's exact requirements before depending on the address.

Remote testing and shutdown are operational tasks outside this five-step sequence. Stop the tunnel after temporary access ends. Delete it only when the configuration and address are no longer needed.

Configure HTTPS and test the public application

Use the correct public and upstream transport settings

Open the tunnel settings using the settings button in the Actions column. Enable Is Only Https? for Onyx login and private-data traffic. This redirects HTTP visitors to the same HTTPS address; without it, the public address answers on both protocols.

Localtonet provides and renews the public certificate. TLS terminates at the Localtonet server. Requests then travel through the tunnel to the client, which connects to the local service. Do not describe an HTTP tunnel as browser-to-Onyx TLS termination at your own server.

A plain HTTP Onyx upstream does not need Is SslStream?. Enable that setting only if the local service itself genuinely speaks HTTPS. The client accepts that service's certificate as presented, including a self-signed certificate. This should not be described as strict certificate-identity validation. Changing Is SslStream? on a running tunnel restarts it and requires the client to be connected.

Keep Host behavior and authentication aligned

By default, Onyx receives the hostname the visitor used, which is the tunnel hostname. Our HTTP tunnel supports a Host override under Headers for servers that require a particular virtual host. No Onyx-specific requirement for such an override is verified here. Leave the preserved Host behavior in place unless investigation establishes a concrete application requirement.

Replacing Host with localhost as a generic troubleshooting trick can interfere with origin handling, generated links, and authentication. Instead, inspect the failing redirect or request and confirm the installed release's supported public-origin configuration. Do not disable cookie, origin, or callback validation to make a test pass.

Basic Authentication? and IP Restriction are documented optional tunnel controls. Where available for your account and configuration, they can provide an additional gate during testing or ongoing operation. They do not replace Onyx authorization, connector permission synchronization, or document access checks. Do not assume every control is included in every plan.

Run an authenticated and unauthenticated remote test

Use a different network when possible and a fresh browser session. Verify that an unauthenticated visitor sees only the intended sign-in flow and cannot read a protected conversation or uploaded document. Then sign in as an authorized non-administrator and repeat the local tests.

  • Confirm redirects remain on the intended public HTTPS origin.
  • Refresh after login and open a permitted deep link directly.
  • Confirm session cookies work without weakening their security configuration.
  • For enabled OAuth or SSO, verify the exact registered callback and complete sign-in and sign-out.
  • Send a streamed chat request and observe progress, completion, and behavior after refresh.
  • Repeat enabled upload and connector-backed retrieval workflows with non-sensitive content.
  • Check that a user outside the permitted group cannot retrieve protected knowledge.

A static login page is not sufficient evidence that Onyx works behind the tunnel. Record the release, authentication mode, URL, browser, and workflows tested. If the public-origin configuration remains unresolved, keep the deployment private rather than present the integration as tested.

Operate carefully and define recovery coverage

Status, logs, and restarts

Use the configured helper so every command retains the verified Compose file, environment, project, and profile arguments:

onyx_compose ps
onyx_compose logs --tail=200
onyx_compose logs --follow

Logs can contain usernames, document titles, internal addresses, and credentials. Share only redacted, relevant excerpts. Stop following logs with your terminal's interrupt command; that does not stop the stack.

onyx_compose restart

Compose restart does not apply changed container configuration. It restarts existing containers. Changes to environment, ports, mounts, or image configuration generally require container recreation through the supported deployment procedure. For an already verified Compose configuration, onyx_compose up -d reconciles services with that configuration, but it is not a substitute for release-specific migration or upgrade instructions.

Inventory persistence without exposing secrets

Inspect the active configuration privately to identify mounts, external stores, and secret dependencies:

onyx_compose config
Rendered configuration can contain resolved secrets

Do not paste full docker compose config output into tickets, public logs, or this article's examples. It can expand environment values containing credentials. Protect saved output and restrict access to deployment and environment files.

The available evidence does not establish a release-specific authoritative-store list or restore procedure. This guide therefore cannot tell you that a particular database dump, object-store copy, or index snapshot is sufficient. Container images are not application backups, and a list of mounted volumes alone does not explain consistency requirements.

For the selected release, identify which stores are authoritative for users, conversations, documents, uploaded files, connector state, and configuration. Determine which indexes are recoverable from source data and which must be preserved. Do not assume an index can be rebuilt without source access, connector credentials, processing cost, or loss of deleted upstream content.

Require an isolated recovery rehearsal

A recovery plan should preserve matching application configuration, secret material, encryption keys where applicable, release identifiers, and consistent persistent data. Copying live database files while application and workers continue writing is not automatically a valid backup. Use the datastore's supported backup method and the release's required write-quiescing or snapshot coordination.

The exact restore order and whether Onyx indexes should be restored or rebuilt remain unverified here. Do not improvise those commands. Establish them from the release's persistence instructions, then rehearse on an isolated host without connecting production users.

  • Prevent the rehearsal from unintentionally running production connector jobs, notifications, or integrations.
  • Restore matching configuration and required secrets using controlled access.
  • Restore stores in the documented dependency order before admitting application writes.
  • Start the matching application release and complete the documented index recovery process.
  • Verify users, conversation history, files, permissions, chat, and retrieval against known samples.
  • Record the recovery time and any unrecoverable state before approving the backup plan.

This is a recovery acceptance checklist, not a verified Onyx restore recipe. Until the missing store-specific procedure has been confirmed and tested, do not describe the installation as recoverable merely because a backup job completes.

Gate upgrades on migrations

Read the notes covering the installed and proposed releases before pulling new images. The historical Onyx v4.6.3 release warning specifically says not to upgrade to that release when preserving existing indexed documents unless the document-index migration has already been run; it states that migration can be performed from any v3.x version. This is a release-specific warning, not a claim that v4.6.3 is current or a universal rule for every upgrade.

No complete supported upgrade command sequence is verified for a selected release here. In particular, a generic pull-and-recreate sequence may skip required configuration changes or migration steps. Approve an upgrade only after confirming the target files and images, required intermediate releases, migration gates, restorable backup, and rollback or recovery path. Image rollback alone may be unsafe after a schema migration.

After maintenance, repeat local health, login, chat, file, permission, and retrieval tests before restarting public access. Keep the tunnel stopped when the application's integrity is uncertain.

Troubleshoot from the application outward

Layered troubleshooting route from Onyx services through local networking and Localtonet to a remote browser.
Start with containers and local HTTP, then test client reachability, tunnel state, and public browser behavior.

First reproduce the same action locally. If chat fails both locally and publicly, investigate Onyx and the provider. If it works locally but not from the Localtonet client's environment, investigate the bind address and network namespace. If it works from that environment but not publicly, inspect the device selection, tunnel lifecycle, transport settings, and browser request path.

SymptomFirst checkNext action
Local connection refusedVerified port and onyx_compose psInspect startup logs, port conflicts, and unhealthy dependencies.
Works on the host, not from the clientClient network namespace and target addressTest the reachable private endpoint from the client's actual environment.
Device disconnectedSelected token and client processRestore authorized outbound connectivity and confirm the intended device connects.
Tunnel exists but URL is unavailableActions column and running stateStart the tunnel and keep the selected client connected.
Local HTTP works but upstream TLS failsIs SslStream? versus actual upstream protocolUse TLS upstream only for a genuinely HTTPS service.
Login loops or redirects to a private addressPublic origin, cookies, Host, and callbacksResolve the installed release's supported configuration without disabling protections.
Long response fails only publiclyRequest duration, stream behavior, and HTTP TimeoutCompare local and public traces and investigate the failing layer.

The documented HTTP Timeout setting ranges from 1 to 600 seconds and controls how long the server waits for a response from the local application. If a legitimate operation exceeds the configured wait, adjust it within that range and repeat a controlled test. Increasing it does not repair provider errors, broken callbacks, buffering, dropped client connections, or every streaming failure.

HTTP tunnels pass WebSocket connections, but that fact alone does not verify a particular Onyx streaming implementation. Inspect the actual failed browser request and corresponding application logs. Avoid deleting volumes or reinstalling as an initial response to a network symptom.

Frequently asked questions

What port should I enter for Onyx?

Use the published web port confirmed by your installed release, active Compose configuration, and a successful request from the Localtonet client environment. This revision does not verify 3000 as the installer default.

Does Lite require less than 1 GB of memory?

The current overview establishes lower resource use, not that numeric guarantee. Use current sizing guidance. Lite omits indexing and background connector workers; Docker Compose Lite also skips both model servers.

Can the client run on another computer or in a container?

The client must reach the Onyx endpoint from its own network environment. Another computer usually needs the host's reachable private address. A container on the same physical host does not necessarily share loopback with Onyx.

Will stopping the tunnel change its subdomain?

No. An HTTP tunnel preserves its subdomain across stops and starts until deletion. Requests still require a connected client and running tunnel.

Does public HTTPS require HTTPS on the local Onyx service?

No. The public certificate terminates TLS at the Localtonet server, and the local service can use plain HTTP. Enable Is Only Https? for login traffic. Enable Is SslStream? only if the local service itself uses HTTPS.

Does Localtonet replace Onyx authentication or backups?

No. Our platform supplies connectivity and optional additional access controls. Onyx authentication, document permissions, provider credentials, persistence, and release-specific recovery remain deployment responsibilities.

Publish a verified Onyx endpoint with Localtonet

Confirm your Onyx release, authentication, local workflows, and public-origin requirements first. Then connect our client, create the HTTP tunnel, enable HTTPS-only access, and test with authorized users. Stop the tunnel whenever remote access is no longer appropriate.

Get Started Free →

Corrections & updates

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

Updated the deployment guidance, clarified current Onyx requirements, and corrected the Localtonet setup sequence and security settings.

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