Skip to content

Set Up NextClaw on a Server with Localtonet

Install and verify NextClaw on a remote server, then access its local HTTP web interface securely through a Localtonet tunnel.

Summary in your language
In this article 9 sections
Tutorials · NextClaw Interactive Evaluation · Localtonet · 2026

Verify a foreground NextClaw session locally, inspect its listener, and add controlled remote access only after authentication is proven

This guide covers an interactive NextClaw evaluation on a server using the project's documented npm installation and nextclaw start workflow. It verifies the installed package version, checks the real listening address on Linux, macOS, or Windows, tests the local HTTP interface, and explains how a Localtonet HTTP tunnel can connect a verified local endpoint to a public HTTPS address. This is not a durable production deployment guide because the available first-party NextClaw evidence does not establish unattended startup, reboot persistence, application data locations, backup and restore, supported upgrades, log locations, or guaranteed clean shutdown behavior. Do not start a public tunnel unless authentication or another tested access-control layer protects the installed NextClaw release.

🔒 Public exposure requires verified access control 🌐 Local listener and remote path are tested separately ⚡ Scope is an interactive foreground evaluation
Remote browser connected to a NextClaw server through a Localtonet HTTP tunnel
Remote traffic should reach NextClaw through the tunnel only after the local service, listener binding, and access-control layer have all been verified.

What this server tutorial does and does not establish

NextClaw describes itself as a human-centered, long-term personal AI partner. Its current first-party repository presents capabilities that include conversations, file work, web research, generated documents, scheduled tasks, agents, skills, and model-provider configuration. The project repository also contains desktop, Docker, application, package, documentation, and workspace components. Review the current descriptions and installation choices in the official NextClaw repository before selecting a deployment method.

This article deliberately narrows the meaning of “set up on a server.” It establishes a foreground process that you start from an interactive shell, a local HTTP endpoint that you test from the same server, and an optional Localtonet HTTP tunnel. It does not claim to install NextClaw as an operating-system service or production daemon.

That distinction matters because a production server deployment normally needs verified answers to several operational questions: how the application starts after a reboot, how it receives shutdown signals, where it stores state, which files must be backed up, how a backup is restored, where logs are retained, how releases are upgraded, and how a failed upgrade is rolled back. The available NextClaw evidence does not establish those procedures for the npm installation covered here. Creating an unverified systemd unit, launchd job, Windows service, PM2 configuration, scheduled task, or container definition would hide those gaps rather than resolve them.

Interactive evaluation only

Do not rely on this procedure for unattended operation, scheduled work, durable data retention, disaster recovery, or automatic recovery after a reboot. Use the foreground session to evaluate the current release. Move to a persistent deployment only when current NextClaw documentation identifies the supported startup, shutdown, data, backup, restore, logging, and upgrade procedures for your chosen installation method.

Architecture showing a remote browser reaching a loopback NextClaw service through a Localtonet relay
The Localtonet client must run in a network context that can reach the verified NextClaw listener.

How the local-to-public path works

The NextClaw process provides the application and browser interface. The documented npm workflow identifies http://127.0.0.1:55667 as its local URL. The IPv4 address 127.0.0.1 is loopback, so it refers to the machine or network namespace in which the request is made.

Our Localtonet client runs on the device that can reach that endpoint. It establishes an outbound connection to a selected Localtonet relay. An HTTP tunnel then provides a public HTTPS address and forwards requests to the configured local IP address and port. This avoids inbound router port forwarding, an inbound firewall change, VPN setup, and the need for a public IP address.

🧠 Foreground NextClaw process The npm path starts NextClaw with nextclaw start. This guide keeps that process attached to an interactive session.
🔎 Verified listener An operating-system socket check confirms which address actually owns TCP port 55667. A printed URL alone does not prove the binding.
🔗 Outbound tunnel The Localtonet client connects outward to a relay and forwards the assigned public endpoint to the verified local target.
🔐 Separate access control Public HTTPS protects transport to the tunnel edge. It must not be mistaken for NextClaw user authentication or authorization.

This is an HTTP tunneling workflow, not a VPN deployment. Localtonet VPN Manager is a separate private mesh VPN feature. The HTTP tunnel described here publishes one configured local web target.

Verify the runtime, host, and exact NextClaw release

The current NextClaw repository includes both a .nvmrc file and package metadata. Those are the appropriate first-party locations for the project's expected Node.js runtime and any declared engine constraint. Check both against the exact repository revision or package release you intend to install.

Do not substitute a generic “current Node.js LTS” assumption

The evidence supplied for this revision confirms that .nvmrc and package.json exist, but it does not expose their current version values. We therefore cannot responsibly print a numeric Node.js requirement here. Read the values directly from the current first-party files, verify that they agree, and install that supported runtime. If they conflict, stop and resolve the conflict through current NextClaw release guidance before installing the package.

Version precision is also important for NextClaw itself. The supplied release evidence is internally easy to misread: the release URL uses tag v0.59.1-desktop.1, the page title displays “NextClaw Desktop 0.0.302,” and the release body identifies “NextClaw v0.59.1.” These values may represent different release layers. None should be silently treated as the globally installed npm package version.

The first-party release page is useful release context, but this tutorial does not claim that its desktop title, tag, and core version are interchangeable. Record the npm package version actually installed on your server. The commands below provide an auditable record without relying on an unverified NextClaw-specific version flag:

node --version
npm --version
npm list -g nextclaw --depth=0

Save the output with your deployment notes. This article's supplied evidence does not include the output of a completed live installation, so it does not invent a “tested package version.” Your recorded npm list result is the authoritative package version for the session you test.

Requirement Required verification Why it matters
Node.js runtime Compare node --version with the current .nvmrc and any engines constraint in package.json. A generic LTS release may not match the release being installed.
npm Run npm --version as the account that will install and start NextClaw. The documented installation path uses a global npm package.
Exact NextClaw package Record npm list -g nextclaw --depth=0 after installation. Repository, desktop, core, and npm package versions must not be conflated.
Supported environment Check the current repository for macOS, Windows, Linux, Docker, NAS, and cloud VM guidance applicable to the selected release. Installation and networking behavior can differ across packaging methods.
TCP port 55667 Confirm that no unrelated process already owns the port before startup. A browser can reach the wrong application if another service occupies the expected port.
Localtonet client Install it on a device that can reach the verified NextClaw listener. The target address is resolved from the client's network context.
Access-control layer Verify authentication and authorization with an unauthenticated test before public exposure. A public URL without access control can expose conversations, files, tasks, and provider settings.

Choose the operating account deliberately

Install and run NextClaw under the account intended to own the evaluation session. A global npm package may be installed in different locations depending on how Node.js was installed and which account ran npm. Avoid switching casually between an administrator account and an unprivileged account.

If the global installation reports a permission failure, fix the Node.js or npm installation for the intended account. Do not grant broad filesystem permissions merely to make the command succeed. Also avoid placing provider credentials, Localtonet device tokens, or other secrets in shell history or copied diagnostic output.

Do not open the application port

You do not need to open TCP port 55667 on a router or cloud firewall for this workflow. The intended topology keeps the application on a local listener and lets the Localtonet client reach it from the same host or another explicitly verified local network context.

Install and start an interactive NextClaw session

The current first-party NextClaw README is the authority for the npm installation command, startup command, local port, supported platforms, trial gateway, provider compatibility, and feature descriptions associated with the release you install. Check it immediately before installation because an actively developed project can change between article publication and use.

1

Verify the required Node.js version

Read the current repository's .nvmrc and package.json. Install the matching supported Node.js runtime using an approved method for your operating system. Then run node --version and npm --version from the same account and shell that will run NextClaw.

2

Install the documented global npm package

Run the npm installation command documented by NextClaw:

npm install -g nextclaw

Review the complete npm result. Resolve package, runtime, network, or permission errors before continuing.

3

Record the installed package version

Capture the actual global package version rather than inferring it from a desktop release title or Git tag:

npm list -g nextclaw --depth=0

Keep this output with the Node.js and npm versions. Repeat the check after any future package change.

4

Start NextClaw in the foreground

Use the documented startup command:

nextclaw start

Keep the terminal attached and inspect its startup output. This article does not place the process in the background or convert it into a service.

A command that remains running is not enough to prove that the expected application owns the expected port. Keep the startup terminal visible and perform the HTTP and listener checks in a second terminal.

Why Docker and desktop instructions are not mixed into this path

NextClaw's repository contains desktop and Docker-related components, and the project identifies multiple supported environments. Those packaging methods have different network, storage, startup, and lifecycle behavior. This tutorial does not invent an image name, container port publication, volume mapping, Compose file, desktop data path, or host-network configuration.

If you select Docker, follow the current first-party Docker instructions and verify the host endpoint actually published by that configuration. In particular, remember that 127.0.0.1 inside a container refers to that container, not automatically to the Docker host or another container.

Verify the HTTP response and the real listener binding

Start with the local URL documented for the npm workflow:

http://127.0.0.1:55667

If the server has no graphical browser, request the endpoint with an HTTP client already installed on the server. For example:

curl -i http://127.0.0.1:55667

An HTTP response confirms that something is answering at that endpoint. It does not by itself prove that NextClaw is the process, that the port is restricted to loopback, or that authentication protects the interface. Verify each condition separately.

Check the listener on Linux

On a Linux host with ss, inspect listening TCP sockets for the port:

ss -ltnp 'sport = :55667'

Examine the local address in the result. A listener on 127.0.0.1:55667 is restricted to IPv4 loopback. A listener on 0.0.0.0:55667 accepts connections on all IPv4 interfaces. An IPv6 wildcard such as [::]:55667 can also represent broader exposure depending on the operating system's socket behavior. Confirm the owning process where permissions allow.

Check the listener on macOS

lsof -nP -iTCP:55667 -sTCP:LISTEN

Review the process name and local address. Do not infer loopback-only behavior merely because the application printed a URL containing 127.0.0.1.

Check the listener on Windows

Get-NetTCPConnection -LocalPort 55667 -State Listen |
  Select-Object LocalAddress,LocalPort,OwningProcess

Get-Process -Id (Get-NetTCPConnection -LocalPort 55667 -State Listen).OwningProcess

Confirm that the expected process owns the listener and inspect LocalAddress. A value of 127.0.0.1 indicates IPv4 loopback, while 0.0.0.0 indicates all IPv4 interfaces.

Stop if the listener is broader than intended

If the process listens on every interface or an externally reachable server address, do not compensate by assuming the firewall will always block it. Check the installed NextClaw release for a documented bind-address setting. This article does not guess a flag or environment variable. Until the binding is understood and intentionally secured, do not proceed to public tunneling.

Observed result Meaning Next action
HTTP response and expected process on 127.0.0.1:55667 The local service and loopback listener are available. Complete initial setup and test access control.
Connection refused No process accepts connections at the tested address and port. Inspect the foreground startup output and confirm the process remains active.
Request times out The process may be stalled, locally filtered, or running in another network namespace. Confirm the process location and test from the same host context.
A different application responds Another process may own port 55667. Identify the listener owner. Do not guess an alternative NextClaw port.
Listener shows 0.0.0.0, [::], or a server interface The service may be reachable beyond loopback. Review documented bind controls and host firewall state before continuing.
nextclaw is not found The global npm executable directory is unavailable to the shell, or installation failed. Review npm's result, the current account, and the Node.js installation method.

Complete a low-risk NextClaw evaluation

Once the local interface loads, follow the setup presented by the exact NextClaw package version you recorded. The project's first-party description states that new installations can use a built-in free trial through a public gateway without first entering an API key. Availability, limits, and models can change, so verify them in the current NextClaw project instructions for your installed release.

Do not send confidential data through the public trial gateway

Local-first application hosting does not mean every model request remains on the server. The NextClaw project warns against sending sensitive or confidential material through its public trial gateway. Use harmless test prompts until you have reviewed the selected provider, destination, retention terms, credentials, and data-handling requirements.

NextClaw also describes support for OpenAI-compatible providers. The available evidence does not establish one permanent provider form, environment variable, secret file, or credential-storage path for every release. Enter provider credentials only through controls documented for the installed version. Never place a provider key in a public tunnel URL, repository, screenshot, shell example, or support message.

Test the application with non-sensitive material. Confirm that the interface loads, a harmless task can be submitted, and the expected result appears. If you enable files, skills, agents, schedules, messaging channels, or execution capabilities, treat each as a separate permission decision. Use a minimally privileged operating account and grant only the files and external accounts required for the evaluation.

Require verified access control before public exposure

A NextClaw workspace can contain conversations, files, generated documents, provider settings, task output, and integrations. A public HTTPS endpoint must therefore be treated as an application security boundary, not merely a connectivity convenience.

Deployment gate: do not expose an unprotected interface

The available evidence does not establish that every NextClaw npm release enables authentication by default. Before starting a public Localtonet tunnel, verify authentication in the installed release or place the application behind another access-control layer that you have configured and tested. If you cannot confirm protection, stop here and keep the interface local.

How to test the gate

  1. Identify the authentication and authorization mechanism documented by the exact NextClaw release or by your approved reverse proxy or access gateway.
  2. Confirm that an authorized session can reach the interface and perform only intended actions.
  3. Use a fresh private browser window with no existing cookies or stored credentials.
  4. Attempt to open the protected endpoint without authenticating.
  5. Confirm that the unauthenticated request is denied or redirected to a verified login flow before application content, files, conversations, or controls are displayed.
  6. Test logout and confirm that the old session no longer provides access.
  7. Record which component enforces access, how accounts are managed, and who is authorized.

Merely keeping the public URL secret is not authentication. Likewise, HTTPS encrypts transport but does not decide who may use the application. This guide does not claim that Localtonet adds application login controls, and it does not invent NextClaw authentication settings.

🔐 Deny unauthenticated access A clean browser session must not reveal the workspace before successful authentication.
🗝️ Protect credentials Keep model keys, messaging credentials, Localtonet device tokens, private endpoints, and session data out of screenshots and shared logs.
📁 Limit filesystem access Run the evaluation under an account that cannot read or modify unrelated server data.
🧩 Review integrations independently Providers, channels, skills, schedules, and agent runtimes introduce separate permissions and data flows.
⏹️ Minimize exposure time Start the tunnel only when remote access is needed, then stop or delete it afterward.
🧪 Use harmless test data Validate access controls, provider behavior, and remote connectivity before introducing sensitive workloads.

Configure the Localtonet HTTP tunnel

Localtonet dashboard showing a connected HTTP tunnel targeting the local NextClaw port
Before relying on any dashboard screenshot, compare it with the current interface and redact tokens, account details, private endpoints, and other secrets.

Continue only if the local HTTP test, listener inspection, and access-control gate all passed. Install and run our client on the server that can reach the verified target. When the target is 127.0.0.1:55667, the simplest topology places the Localtonet client on that same server and outside any isolated network namespace.

Current OS-specific Localtonet client installation commands were not included in the available evidence for this revision, so this article does not invent them. Obtain the appropriate client and current instructions through the official Localtonet documentation or the download path presented by your Localtonet account. Confirm the operating system and CPU architecture before installation.

The HTTP tunnel workflow below follows the maintained Localtonet sequence. Dashboard wording can evolve, while relay values, regions, address choices, and plan availability can differ. Use only values shown by the current product.

1

Install and run the Localtonet client

Install the appropriate current client on the device that can request the verified NextClaw endpoint. Keep the client running so it can establish its outbound connection to a Localtonet relay.

2

Authenticate or select the device

Use the device-specific authentication token for that client and select the corresponding device. Treat the token as a secret. Never copy it into an article, screenshot, repository, or public command.

3

Select an available relay server

Choose a server or region currently offered in the dashboard. Do not use a hardcoded server code from an old guide because available choices can change or vary by account, plan, or deployment.

4

Create the HTTP tunnel configuration

Choose the HTTP tunnel family. Select the available Process Type appropriate to your address requirements, select the authenticated device and relay, and configure the local target IP as 127.0.0.1 with local port 55667. This target is valid only when the client can reach that loopback listener.

5

Start the tunnel and use the assigned address

Creating a tunnel does not start it. Use the Start button, confirm that the selected device is connected, and use the public HTTPS address shown for the running tunnel. The tunnel is available only while the client is connected and the tunnel is running.

6

Stop or delete the tunnel when finished

Stop the tunnel to remove the active public route. Delete it when its saved configuration is no longer needed.

Compare the live interface with the current Localtonet HTTP tunnel documentation before saving the configuration. HTTP and File Server tunnels can use Random Sub Domain, Custom Sub Domain, or Custom Domain process types. Exact availability can vary. Custom-domain DNS values must come from current Localtonet instructions and the live dashboard rather than this tutorial.

Loopback belongs to the client host

If our client runs on another machine, in a container, or in a separate network namespace, its 127.0.0.1 is not the NextClaw server's loopback interface. Use a deployment-specific local address only after verifying that NextClaw actually listens there and that the network path is intentionally permitted.

Verify the complete remote path

Open the assigned HTTPS address from a device outside the server's local browser session. Start with a private browser window and confirm that the access-control gate behaves exactly as expected. The first visible result should be the verified authentication flow or an access denial, not an unprotected NextClaw workspace.

After authenticating, perform one harmless task and confirm that it reaches the same workspace tested locally. This checks the public address, Localtonet relay, connected client, local target, access-control layer, and NextClaw process.

If the local URL works but the public URL does not, inspect the selected Localtonet device, client connectivity, relay choice, tunnel state, local target, and whether the tunnel was explicitly started. If the public URL displays the workspace without requiring the protection you tested, stop the tunnel immediately and repair the access-control path.

Operate the interactive session and troubleshoot failures

Diagnostic checkpoints between the NextClaw process, local listener, Localtonet client, tunnel, and remote browser
Check the application, listener, access-control layer, client, and tunnel in order instead of changing several layers at once.

Starting an evaluation session

  1. Confirm the recorded Node.js, npm, and NextClaw package versions.
  2. Start NextClaw interactively with nextclaw start.
  3. Request http://127.0.0.1:55667 locally.
  4. Inspect the operating-system listener and owning process.
  5. Verify the access-control gate using a clean browser session.
  6. Confirm that the Localtonet client is connected.
  7. Start the saved HTTP tunnel and perform the remote test.

After a server reboot, assume none of these layers returned automatically. This guide has not configured persistence for NextClaw or established the Localtonet client's OS-specific startup behavior.

Stopping the session

Stop the Localtonet tunnel first so new public requests cannot arrive. Avoid stopping NextClaw while an agent action, file operation, or scheduled task is visibly in progress. Then request interruption from the foreground terminal using the normal terminal interrupt mechanism and observe the application's output.

The available project evidence does not guarantee how every NextClaw release handles shutdown signals or whether it performs a documented state flush. Verify that the process has exited and that port 55667 is no longer listening. If the release provides current shutdown instructions, follow those instead.

Data, backups, logs, upgrades, and persistence

Operational need Status for this npm evaluation Safe decision
Automatic startup No verified NextClaw service definition or background mode is available in the supplied evidence. Keep this as an interactive session. Do not invent a service wrapper.
Clean shutdown The documented startup command is known, but guaranteed signal and shutdown behavior is not established. Stop public access first, avoid active work, request interruption, and verify process exit.
Application data location No verified npm data directory is established by the supplied evidence. Do not assume a path or delete files during cleanup.
Backup and restore No verified file set, backup command, restore procedure, or consistency requirement is established. Do not treat copied directories as a proven recoverable backup.
Persistent logs No verified log directory or retention behavior is established. Observe foreground output and avoid claiming that it is a complete audit log.
Upgrade and rollback No supported npm migration and rollback sequence is established for all releases. Record the installed version and consult current release instructions before changing it.

These are deployment blockers for a durable service, not minor documentation omissions. Before promoting the evaluation to production, obtain current first-party procedures for all six areas and test them on non-production data. A backup is not proven until a restore has been completed successfully.

Troubleshooting checklist

Problem Checks Resolution direction
Node.js version does not match project metadata Compare node --version with the current .nvmrc and package.json. Install the supported runtime before diagnosing NextClaw.
nextclaw is not found Review the npm installation result, current account, and global executable path. Repair the Node.js or npm setup for the intended account.
NextClaw exits immediately Read the foreground output for runtime, configuration, permission, or port errors. Resolve the reported application problem before configuring a tunnel.
Local connection is refused Confirm that the process remains active and inspect the port with the operating-system command. Correct the local application state and retest.
Unexpected process owns port 55667 Compare the socket's owning process with the NextClaw process. Resolve the conflict without guessing an unsupported port option.
Listener is broader than loopback Look for 0.0.0.0, [::], or an external interface address. Review documented binding controls and do not expose the service until intentional.
Unauthenticated browser sees the workspace Repeat the test in a fresh private session and inspect the access-control routing. Stop the tunnel immediately and add or repair a tested protection layer.
Local access works but public access fails Check client connectivity, selected device, relay, target IP, target port, and tunnel state. Correct the tunnel layer and explicitly start it.
Interface loads but AI tasks fail Inspect provider selection, trial availability, credentials, model choice, and application output. Treat this as a NextClaw or provider issue rather than basic HTTP reachability.
Setup fails after a reboot Determine whether NextClaw, the access-control layer, the Localtonet client, and the tunnel are running. Restore the interactive test manually. Do not assume persistence was configured.

Frequently asked questions

Is this a production NextClaw server deployment?

No. It is an interactive foreground evaluation. The available evidence does not establish unattended startup, reboot persistence, data and log locations, backup and restore, supported upgrades, rollback, or guaranteed clean shutdown behavior for this npm path.

Which Node.js version does NextClaw require?

Verify the current value in NextClaw's .nvmrc and any engine constraint in package.json for the release you are installing. The evidence supplied to this article confirms those files exist but does not expose their numeric values, so printing a version here would be unsupported.

How do I record the installed NextClaw package version?

Run npm list -g nextclaw --depth=0 after installation and save the result with node --version and npm --version. Do not infer the npm version from a desktop release title or Git tag.

What command installs and starts NextClaw?

The documented npm path installs the package with npm install -g nextclaw and starts an interactive session with nextclaw start. Verify both commands against the current first-party README for the exact release you use.

Which local port does the npm workflow use?

The documented local URL is http://127.0.0.1:55667. Test it locally and inspect the actual operating-system listener before configuring Localtonet.

Does seeing 127.0.0.1 in the startup output prove loopback-only binding?

No. Use ss on Linux, lsof on macOS, or Get-NetTCPConnection on Windows to inspect the real listener. Confirm both the local address and owning process.

Do I need to open port 55667 on a router or cloud firewall?

No. Our client establishes an outbound connection to a Localtonet relay and forwards the configured local target. Do not create an additional inbound public path to port 55667.

Does a Localtonet HTTPS address add a NextClaw login?

Do not assume that it does. HTTPS protects transport, while login and authorization control application access. Verify NextClaw authentication or another tested access-control layer before starting a public tunnel. If you cannot confirm protection, keep the interface local.

Should I use an HTTP or TCP tunnel?

Use an HTTP tunnel for the documented browser interface. It points to the verified local HTTP address and port and provides a public HTTPS address. A raw TCP tunnel is unnecessary for this normal browser workflow.

Must the Localtonet client run on the same server?

It should run on the same server when the target is 127.0.0.1:55667. A client on another host or in an isolated container has a different loopback interface. Another placement can work only when it has a deliberately configured and verified network path to the actual NextClaw listener.

Can I use the NextClaw trial without an API key?

NextClaw's first-party project description states that new installations can use a built-in free trial through a public gateway. Availability, models, and limits can change. Do not send sensitive or confidential data through that gateway.

Can I make this setup persistent with systemd or PM2?

This guide does not provide such a configuration because the supplied NextClaw evidence does not establish a supported service definition, background mode, shutdown contract, working directory, environment requirements, or data persistence model. Use current first-party guidance before creating unattended operation.

Connect a verified and protected NextClaw session

After NextClaw responds locally, the listener is verified, and an unauthenticated browser is denied by a tested access-control layer, use Localtonet to create and start an HTTP tunnel to the confirmed local endpoint.

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