Skip to content

Set Up Atomic Chat on macOS for Remote API Access

Install Atomic Chat on macOS, verify its OpenAI-compatible API on port 1337, then reach it remotely over HTTP with Localtonet.

Summary in your language
In this article 11 sections
MacBook running a local AI chat app, with a smartphone on the desk nearby
Atomic Chat runs models locally on a Mac and can serve them to other devices.
AI & Local LLMs · Atomic Chat OpenAI-compatible API · Localtonet · 2026

Run open-weight models on your Mac, confirm the local API on port 1337, then reach it from anywhere over HTTPS

Atomic Chat is an open-source desktop app and inference engine that runs open-weight LLMs on your own computer and serves them through an OpenAI-compatible HTTP API at http://localhost:1337/v1. That API is only reachable from the Mac itself, so a laptop at a café, a CI runner, or a teammate's IDE plugin cannot use it out of the box. This guide walks through installing Atomic Chat on macOS, loading a model, verifying the API locally with real requests, and then publishing it through a Localtonet HTTP tunnel without port forwarding or a public IP. We also cover access control, day-to-day operation, and the troubleshooting cases you are most likely to hit.

🔒 Keep inference on your own hardware 🌐 HTTPS URL for a local port 1337 service ⚡ Works with OpenAI-compatible SDKs and tools

How Atomic Chat, its local API, and Localtonet fit together

Diagram of remote clients reaching Atomic Chat's API on localhost:1337 through a Localtonet HTTP tunnel
Requests enter through a public Localtonet URL and are tunneled to the Atomic Chat API on port 1337.

Atomic Chat describes itself as a local AI app and inference engine for agents. You download open-weight models (the project lists families such as Llama, Qwen, DeepSeek, Mistral, and Gemma), run them on your own machine, and chat with them in a desktop interface organized into Chats and Projects. The part that matters for this guide is that the desktop app also exposes an HTTP API that follows the OpenAI API shape. Once a model is loaded, the project documents the base URL http://localhost:1337/v1, including the POST /v1/chat/completions endpoint that most OpenAI-compatible clients call.

Because the API mirrors the OpenAI request and response format, tools that let you override the "base URL" of an OpenAI client can talk to Atomic Chat instead of a cloud provider. That includes official OpenAI SDKs, many IDE coding assistants, agent frameworks, and scripts you write yourself. The model runs on your Mac's CPU and GPU, and prompts never need to leave hardware you control unless you deliberately route them elsewhere.

The limitation is reachability. localhost means "this computer only". A request from another machine, even one on the same Wi-Fi, will not reach a service bound to the loopback interface, and a request from outside your home or office network has to get through your router's NAT and firewall as well. The traditional fixes (port forwarding, a static public IP, dynamic DNS, a VPN) all involve router changes or infrastructure you may not control.

With Localtonet, the Localtonet client on your Mac opens an outbound connection to one of our relay servers. We assign a public HTTPS address, and requests to that address travel back through the existing outbound connection to 127.0.0.1:1337 on your Mac. Nothing on the router changes, and no inbound port is opened. The tunnel is available only while the client is connected and the tunnel is running, which suits a desktop-first app like Atomic Chat: when you close the lid or stop the tunnel, the public endpoint stops answering.

🧠 Local inference engine Atomic Chat runs open-weight models on your computer. The project states support for GGUF, MLX, and ONNX model formats and one-click downloads from Hugging Face.
🔌 OpenAI-compatible API After a model is loaded, the API is served at http://localhost:1337/v1, with POST /v1/chat/completions for chat requests.
🖥️ Desktop-first design The API lives inside a desktop app. It is available while the app is open and the Mac is awake, which differs from a dedicated headless server.
🌐 Localtonet HTTP tunnel Our client makes an outbound connection to a relay server and publishes your local port 1337 at a public HTTPS address, with no router port forwarding.
⏯️ Explicit tunnel lifecycle Creating a tunnel does not start it. You press Start to publish it, and you can stop or delete it whenever remote access is no longer needed.

Prerequisites for running Atomic Chat on macOS

Before downloading anything, check that your Mac and your plan match what this workflow needs. The list is short, but each item affects whether the final remote setup is reliable.

Supported macOS versions and hardware

The Atomic Chat website lists desktop availability on macOS 13.6 or later, on both Intel and Apple Silicon Macs. The project's README offers a macOS Universal DMG, which is the packaging Apple uses for a single app that contains native code for both processor architectures. You do not need to choose an Intel or ARM build separately when using the Universal download.

The project does not publish a single minimum RAM or disk figure in the material we reviewed, and that is reasonable: memory needs depend almost entirely on which model you load. As a general rule for local LLMs, the model weights must fit into available memory alongside the operating system and other apps, and larger parameter counts or less aggressive quantization need more of it. Plan disk space for the models you intend to download, because a single model file can be several gigabytes. If you are unsure, start with a small model to validate the whole pipeline, then move to a larger one.

Model format considerations on Apple hardware

Atomic Chat states support for GGUF, MLX, and ONNX models. MLX is Apple's machine learning framework designed for Apple Silicon, so MLX models are aimed at M-series Macs. GGUF is the format used by the llama.cpp family of runtimes and is the broadly portable choice, including on Intel Macs. The v2.4.5 release notes mention multiple inference engines managed from the app's Models Hub, so the exact engines offered on your machine may vary with hardware and app version.

What you need for the remote-access part

  • A Localtonet account. You can register for Localtonet if you do not have one yet.
  • The Localtonet client installed on the same Mac that runs Atomic Chat, authenticated with that device's auth token from your dashboard.
  • An outbound internet connection from the Mac. Inbound connectivity, a public IP, and router access are not required.
  • A way to keep the Mac awake while you need remote access, covered in the operations section.
Other operating systems

The Atomic Chat README also offers a Windows x64 setup EXE and a Linux AppImage, and the project website additionally lists Windows ARM64 and Linux x86_64 desktop downloads. The README links to Linux package-manager guidance for apt, dnf, and AUR, but the exact package commands are not part of the material we verified, so we do not reproduce them here. The website also advertises mobile apps and a terminal-installed server from a separate repository; those are outside the scope of this macOS guide and we have not verified their API behavior.

Install Atomic Chat on macOS

Installation follows the standard macOS pattern for a DMG-distributed app. The one decision to make up front is which version to download.

Pick the right release

The project publishes builds on its GitHub Releases page. At the time we prepared this guide, the latest published release was v2.4.5, while the direct download links embedded in the README still pointed at v2.0.0 assets. That kind of drift is common in fast-moving projects, and the repository shows active development with thousands of commits. We recommend opening the Releases page of the AtomicBot-ai/Atomic-Chat repository, choosing the newest release, and downloading the macOS DMG listed in its assets. We are intentionally not printing an exact asset file name, because those names can change between releases.

Using the latest release matters for API users in particular. The v2.4.5 notes include a fix where switching the served model now asks before restarting running connected agents and reopens them with fresh conversations, explicitly to stop the silent 404 errors that previously appeared after a model change. If you will connect remote clients, that behavior change is worth having.

1

Download the macOS DMG

From the Atomic Chat Releases page on GitHub (or the "Download for Mac" button on the official atomic.chat site), download the macOS disk image for the version you selected. Only download from the project's official repository or website.

2

Open the disk image and copy the app

Double-click the DMG to mount it, then drag the Atomic Chat app into your Applications folder. Eject the disk image afterwards so you always launch the installed copy, not the one inside the DMG.

3

Launch the app for the first time

Open Atomic Chat from Applications or Spotlight. macOS Gatekeeper may show a confirmation dialog for an app downloaded from the internet. Confirm only if the file came from the official source. Avoid disabling Gatekeeper globally to get past a prompt.

Do not weaken macOS security to install an app

Our evidence does not state the macOS signing or notarization status of every Atomic Chat build (the v2.4.5 notes only confirm that the Windows installers are fully signed). If macOS blocks the app, first re-download from the official Releases page. If you choose to allow it through System Settings, do so for this single app only, and never run commands that disable Gatekeeper system-wide.

Optional: verify architecture and location

If you want to confirm which processor architecture you are on before choosing models, run this in Terminal. It prints arm64 on Apple Silicon and x86_64 on Intel:

uname -m

On Apple Silicon, this result also tells you that MLX models are an option. On Intel, plan to use GGUF models.

Download and load a model

The local API only answers chat requests once a model is loaded, so this is the step that turns the app into a working inference server. Atomic Chat organizes model management in a Models Hub, where you can browse and search models from Hugging Face and download them with one click. Recent releases also manage inference engines from Models Hub under "Inference engines", which is where engine settings and updates live.

Choosing a first model

For the first run, choose a small instruction-tuned chat model in a format your Mac supports. A small model downloads quickly, loads quickly, and lets you validate the whole chain (app, API, tunnel, remote client) before you spend time on a large download. Once remote access works end to end, swapping in a bigger or more capable model is a local change that does not affect your tunnel configuration.

Keep two practical points in mind. First, context length and memory are linked: longer contexts need more memory for the KV cache. The v2.4.5 notes state that MLX generation now uses the full context window, up to 16K tokens, rather than stopping at 2048 tokens, which matters if remote clients send long prompts. Second, if you plan to use tools or function calling from an agent, check that the model you choose supports it; capability support differs between model families.

Load the model and confirm it chats locally

After the download finishes, select the model in the app and send a short message in a normal chat. A reply in the desktop interface confirms that the inference engine and model are working before you involve the API. If the in-app chat fails, fix that first, because the API uses the same engine.

The release notes refer to a "Server" area in the app with its own model selector, and to the "served model" that connected agents use. The exact menu path and labels for enabling or configuring the local API server are not described in the material we verified, and the interface changes between releases. If the API test in the next section fails even though in-app chat works, look in the app for the server or API settings and confirm that the server is running and that a model is selected as the served model.

Verify the OpenAI-compatible API on port 1337

Terminal showing a curl request to localhost:1337/v1/models returning a JSON model list
A local request to the models endpoint confirms the API is running on port 1337.

Always prove the API works on the Mac itself before creating a tunnel. If a local request fails, a remote one will fail too, and debugging through a tunnel adds unnecessary variables.

Confirm something is listening on port 1337

macOS ships with lsof, which can show whether a process is listening on a TCP port and which address it is bound to:

lsof -nP -iTCP:1337 -sTCP:LISTEN

If the command prints nothing, the API server is not running yet: check that Atomic Chat is open, a model is loaded, and the server is enabled. If it prints a line, note the address in the NAME column. 127.0.0.1:1337 means IPv4 loopback, [::1]:1337 means IPv6 loopback, and *:1337 means all interfaces. You will use the matching loopback address as the tunnel target later.

Why the bind address matters

Our evidence documents the URL as localhost:1337 but does not state which interfaces the server binds to. If the server listens only on IPv6 loopback, a tunnel that targets 127.0.0.1 would get "connection refused". The lsof output removes the guesswork. If it shows *:1337, other devices on your LAN may also be able to reach the API directly, which is a reason to review your macOS firewall settings.

Send a chat completion request with curl

Next, send a request to the documented chat completions endpoint. The body follows the standard OpenAI chat format: a model field and a messages array. Replace YOUR_MODEL_ID with the identifier of the model you loaded, as shown in Atomic Chat.

curl http://localhost:1337/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "Reply with one short sentence confirming you are running locally."}
    ]
  }'

A successful response is a JSON object in the OpenAI chat completion shape, with the generated text inside choices[0].message.content. The first request after loading a model can take noticeably longer than later ones while the engine warms up, so allow some time before assuming a timeout.

Finding the model identifier

The exact string Atomic Chat expects in the model field is not spelled out in the material we verified. Many OpenAI-compatible servers also implement GET /v1/models to list available identifiers, and you can try it:

curl http://localhost:1337/v1/models

Treat this as an experiment rather than a guarantee: our evidence documents the /v1 base URL and POST /v1/chat/completions, not a models listing endpoint. If it returns a 404 or an unexpected response, read the model name from the app's model or server settings instead, and use it exactly as displayed.

Interpreting local results

Result of the local test Most likely meaning What to do next
JSON response with generated text Engine, model, and API are all working Proceed to the Localtonet tunnel
Connection refused Nothing listening on port 1337 at that address Open the app, load a model, enable the server, re-check with lsof
404 Not Found Wrong path, or the served model changed while a client was mid-session Confirm the path includes /v1/; update to the latest release; retry with a fresh conversation
400 Bad Request Malformed JSON, unknown model ID, or a parameter the model does not accept Validate the JSON, copy the model ID exactly, remove optional parameters
Request hangs for a long time Model is still loading, or it is too large for available memory Wait for the first load; try a smaller model; check Activity Monitor for memory pressure

Publish port 1337 with a Localtonet HTTP tunnel

With a confirmed local API, you can now make it reachable from other networks. Atomic Chat's API speaks plain HTTP on the loopback interface, which makes an HTTP tunnel the right fit. We terminate HTTPS at the tunnel edge and forward requests to your local target, so remote clients use an https:// address while Atomic Chat keeps listening on plain http:// locally.

Key concepts before you start

🔑 Auth token Identifies the device that will run the tunnel. Select the token belonging to the Mac running Atomic Chat. Tokens are device-specific and must never be shared or published.
🗺️ Relay server Chooses which Localtonet relay server or region carries the tunnel. Pick from the options your dashboard shows; available choices can vary.
🎯 Local target The IP address and port the client forwards to. For Atomic Chat this is the loopback address you confirmed with lsof and port 1337.
🏷️ Process Type HTTP tunnels can use a Random Sub Domain, a Custom Sub Domain, or a Custom Domain. All three serve the same local service at a public HTTPS address.

Choose a Process Type

Process Type Best for Behavior to expect
Random Sub Domain Quick tests and short-lived sessions We generate the subdomain for you, so there is nothing to configure beyond the target
Custom Sub Domain A stable address you paste into IDE and agent configs once You choose the subdomain where supported, which keeps client configuration unchanged between sessions
Custom Domain Teams that want the API under their own domain Serves the tunnel on a domain you own; check our current documentation for the DNS records required before setting it up

A stable address is especially useful for an LLM API, because every remote client stores the base URL in its own configuration. If the URL changes each session, you would need to update every client each time.

Create and start the tunnel

The sequence below follows our standard Localtonet workflow for HTTP tunnels. Field names can be refined in the dashboard over time, so if anything looks different, the Localtonet HTTP tunnel documentation is the canonical reference.

1

Install and run the Localtonet client on the Mac

Install the Localtonet app for macOS on the same machine that runs Atomic Chat, and keep it running. The client must be able to reach 127.0.0.1:1337, which is guaranteed when both run on the same Mac.

2

Authenticate the device with its token

Connect the client using the auth token for this device from your Localtonet dashboard, so the dashboard shows the Mac as an available device.

3

Open the HTTP tunnel page and choose a Process Type

In the dashboard, go to the HTTP tunnel page and select Random Sub Domain, Custom Sub Domain, or Custom Domain based on the table above.

4

Select the AuthToken and relay server

Pick the token that belongs to the Mac running Atomic Chat, then choose one of the relay servers listed in your dashboard.

5

Enter the local target IP and port

Set the IP to the loopback address Atomic Chat listens on (normally 127.0.0.1, as confirmed with lsof) and the port to 1337. Then create the tunnel.

6

Press Start and copy the public URL

A newly created tunnel is not running until you press Start. Once it is running, copy the public HTTPS address shown for the tunnel. Stop or delete the tunnel whenever remote access is no longer needed.

Verify the tunnel from outside your network

The most honest test is from a different network, for example a phone hotspot or a cloud machine, because a test from the same Mac can mask routing problems. Run the same request you used locally, replacing the base address with your tunnel URL:

curl https://YOUR-TUNNEL-ADDRESS/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "Reply with one short sentence."}
    ]
  }'

If the local test succeeded and this one fails, the problem is almost always in the tunnel layer: the tunnel was created but not started, the Localtonet client on the Mac disconnected, or the target IP does not match the address Atomic Chat is bound to. The troubleshooting section covers each case.

Connect remote OpenAI-compatible clients

Every OpenAI-compatible client needs the same two pieces of information: a base URL and a model name. For Atomic Chat through Localtonet, the base URL is your tunnel address followed by /v1, for example https://YOUR-TUNNEL-ADDRESS/v1. The model name is the identifier you used in your successful curl test.

Python with the OpenAI SDK

The official OpenAI Python SDK accepts a custom base_url. The SDK typically requires an api_key value to be present. Our evidence does not establish whether Atomic Chat validates API keys, so pass a placeholder unless you have configured a real key or have placed an authenticating layer in front of the API (see the next section).

from openai import OpenAI

client = OpenAI(
    base_url="https://YOUR-TUNNEL-ADDRESS/v1",
    api_key="placeholder-or-your-gateway-key",
)

response = client.chat.completions.create(
    model="YOUR_MODEL_ID",
    messages=[
        {"role": "user", "content": "Summarize what a reverse tunnel does in two sentences."}
    ],
)

print(response.choices[0].message.content)

IDE plugins and agent tools

Coding assistants and agent frameworks that support "OpenAI-compatible" or "custom OpenAI" providers usually expose fields for base URL, API key, and model. Fill them with the same values. A few practical tips apply across tools:

  • Include /v1 in the base URL unless the tool's documentation says it appends it automatically. A doubled or missing /v1 is the most common cause of 404 errors.
  • Match the model name exactly. Some tools offer a dropdown populated from a models endpoint; if that fails, type the identifier manually.
  • Test streaming separately. Many clients request streamed responses. Streaming in the OpenAI format uses server-sent events over a long-lived HTTP response. Confirm it works with your specific tool through the tunnel before relying on it in a long session.
  • Mind tool calling support. Agents that use function calling need a model whose capabilities include tools. The v2.4.5 notes show Atomic Chat tracks per-model tool and image support, so check what your chosen model reports.
When the served model changes

If you switch the served model in Atomic Chat while remote agents are connected, recent versions ask before restarting connected agents and reopen them with fresh conversations. Remote clients configured with the old model name will need their model setting updated, otherwise their requests may fail. Plan model switches for moments when nobody is mid-task.

Managing the tunnel from an AI assistant

If you work in an AI coding assistant such as Claude Code, our Localtonet MCP Server lets the assistant create, start, and stop Localtonet tunnels directly. That pairs well with this setup: you can start the Atomic Chat tunnel when you begin a remote session and stop it when you finish, without switching to the dashboard.

Protect the public endpoint

Illustration of authenticated requests passing a security boundary to Atomic Chat while unauthenticated requests are rejected
Add authentication in front of the public URL so only authorized clients reach the API.

Publishing an LLM API is different from publishing a static website. Every request consumes CPU, GPU, and memory on your Mac, and an agent-facing API may be connected to tools that can act on your behalf. Treat the public URL as a credential-worthy resource.

Assume the API has no authentication until you confirm otherwise

The Atomic Chat material we verified does not document an API key requirement or any built-in access control for the local server on port 1337. A tunnel forwards whatever reaches the public URL to that port. If the API accepts unauthenticated requests, anyone who learns the URL can use your hardware. A tunnel does not add authorization by itself, so plan access control explicitly before sharing the address.

Practical access-control layers

  • Check for an API key option in Atomic Chat. If your version offers one in its server settings, enable it and configure the same key in every client. We cannot confirm this option exists, so verify it in the app rather than assuming it.
  • Use the access controls available to your tunnel. Review the HTTP tunnel settings in your Localtonet dashboard for any authentication or restriction options available on your plan, and enable them when they fit your use case.
  • Put an authenticating reverse proxy in front. A common pattern is a small local reverse proxy that requires a header or basic authentication and forwards to 127.0.0.1:1337. Point the tunnel at the proxy's port instead of 1337. This keeps authentication under your control regardless of what Atomic Chat supports.
  • Prefer a Custom Sub Domain you do not advertise. An unpublished address is not a security control on its own, but it reduces casual discovery compared with sharing a URL in public channels.
  • Run the tunnel only when needed. Stopping the tunnel removes public reachability immediately. For a desktop inference API, "on during work sessions, off otherwise" is a sensible default.

Keep the attack surface small

Point the tunnel only at port 1337 (or your authenticating proxy). Do not reuse the same tunnel for unrelated local services. If lsof showed that Atomic Chat listens on all interfaces (*:1337), consider enabling the macOS firewall so devices on shared Wi-Fi cannot reach it directly, since the tunnel only needs loopback access. Finally, never paste your Localtonet auth token, the public tunnel URL with embedded credentials, or any API key into public repositories, screenshots, or chat messages.

Privacy expectations

Atomic Chat's own positioning is that inference runs locally and data stays on your device. That remains true for the model execution itself. Once you publish the API, however, prompts and responses travel from remote clients over the internet to our relay and then to your Mac. Traffic between clients and the tunnel edge uses HTTPS, and the final hop to Atomic Chat is plain HTTP on your Mac's loopback interface. Decide deliberately which prompts and data you send from remote clients, especially if they contain confidential material.

Day-to-day operation of a desktop inference server

Atomic Chat is a desktop application, not a background daemon. That design is pleasant for interactive use but needs a little care when other machines depend on it.

Keep the Mac awake during remote sessions

When a Mac sleeps, Atomic Chat stops answering and the Localtonet client loses its connection, so the public URL stops working. macOS includes caffeinate, which prevents sleep while it runs. To prevent idle system sleep until you press Control+C:

caffeinate -i

On a MacBook, closing the lid normally puts the machine to sleep regardless of this command unless an external display and power are connected. For longer sessions, keep the lid open or review the energy settings in System Settings for your model of Mac.

Startup order after a reboot

After a restart, bring the stack up in the same order you built it: open Atomic Chat, load or confirm the served model, verify locally with curl, make sure the Localtonet client is connected, and then confirm the tunnel is running. Following this order means that if something fails, you know exactly which layer to look at.

Monitor connection status

Our platform-wide Token and Tunnel webhooks fire when a token or tunnel in a selected Token Group changes to Connected or Disconnected. Each event POSTs a JSON body containing the tunnel id or authtoken in Id, the ActionDate, the Type ("Token" or "Tunnel"), and the Status ("Connected" or "Disconnected"). Pointing these at a chat notification or monitoring endpoint tells you when your Mac went to sleep or lost connectivity, before a remote agent starts reporting errors. Note that these webhooks track the tunnel and client, not Atomic Chat itself: a running tunnel with a closed Atomic Chat app will still show as connected.

Updating Atomic Chat

The project ships releases frequently, and recent notes include fixes directly relevant to API users, such as token-cap handling for MLX replies and corrected capability reporting for certain models. When you update, re-run the local curl test afterwards, then the remote one. Your Localtonet tunnel configuration does not need to change as long as the API remains on port 1337.

Resource planning

A single Mac serves requests with finite memory and compute. Several remote agents sending long prompts at the same time will queue or slow down, and a model that fits comfortably for one user can cause memory pressure under concurrent load. Watch Activity Monitor during your first multi-user session, and choose a smaller or more aggressively quantized model if responses degrade.

When a dedicated server is the better fit

This setup works best for an individual or a small team that needs access to their own Mac's models during working hours. If you need unattended operation around the clock, automatic recovery after power loss, or many concurrent users, a headless inference server on hardware that does not sleep is a better foundation. You can still publish such a server with a Localtonet HTTP tunnel in the same way; the only difference is where the API runs.

Troubleshooting remote access to Atomic Chat

Most problems fall into one of two layers: Atomic Chat and its API on the Mac, or the tunnel between remote clients and the Mac. The single most useful diagnostic is to repeat the curl test locally. If local works and remote does not, the tunnel layer is at fault. If local fails too, fix Atomic Chat first.

Symptom Likely cause Fix
Tunnel URL does not respond at all Tunnel created but not started, or Localtonet client disconnected Press Start on the tunnel in the dashboard; confirm the client on the Mac is running and connected
Tunnel responds with an error that the local service is unreachable Atomic Chat closed, server not running, or wrong target IP Open the app and load a model; match the target IP to the lsof output (for example 127.0.0.1 versus ::1)
Works locally, 404 remotely Client base URL missing or duplicating /v1 Use https://YOUR-TUNNEL-ADDRESS/v1 and check whether the tool appends /v1 itself
404 errors started after changing models Served model changed while clients held old sessions or names Update to the latest release; set the new model name in clients; start fresh conversations
400 errors from one tool but not curl The tool sends parameters the model does not accept Disable optional features such as reasoning effort or tool calls in the tool, then re-enable one at a time
Responses cut off early Token limit set by the client, or an older MLX behavior Raise max_tokens in the client; update Atomic Chat (v2.4.5 fixed dropped MLX replies at the token cap)
Long requests time out remotely Slow generation on a large model or a client-side timeout Use a smaller model, enable streaming if the tool supports it, or raise the client's timeout
Everything stops after a while Mac went to sleep Use caffeinate -i, keep the lid open, and use Token/Tunnel webhooks to get notified of disconnects

Requests rejected because of the Host header

Some local servers validate the HTTP Host header or apply browser CORS rules, and reject requests that arrive with a public hostname. Our evidence does not say whether Atomic Chat does either. If server-side tools (curl, Python SDKs) work through the tunnel but a browser-based client fails with CORS errors in the developer console, the restriction is in the server's CORS policy rather than in the tunnel. In that case, call the API from a server-side component, or check Atomic Chat's server settings for allowed-origin options in your version.

Model downloads or engine installs fail

Model and engine downloads happen inside Atomic Chat and are independent of the tunnel. If they fail, check general internet connectivity and free disk space first. Recent releases moved engine settings to Models Hub under Inference engines, which is also where install offers and update banners appear, so look there if an engine shows as "Not installed".

Still stuck?

Collect three facts before asking for help: the output of lsof -nP -iTCP:1337 -sTCP:LISTEN, the result of the local curl test, and the result of the remote curl test. Together they tell anyone helping you exactly which layer failed. For Atomic Chat-specific issues, the project's GitHub issue tracker is the right place; for tunnel behavior, start with the Localtonet documentation.

Frequently asked questions

What port does the Atomic Chat API use?

The project documents the OpenAI-compatible API at http://localhost:1337/v1 once a model is loaded, with chat requests sent to POST /v1/chat/completions. That is the port you use as the local target for a Localtonet HTTP tunnel.

Which macOS versions and Macs can run Atomic Chat?

The Atomic Chat website lists availability on macOS 13.6 and later, on both Intel and Apple Silicon Macs, and the README offers a Universal DMG that covers both architectures. MLX models are aimed at Apple Silicon, while GGUF models are the portable choice for Intel Macs.

Do I need to open a port on my router to use Atomic Chat remotely?

No. With Localtonet, the client on your Mac makes an outbound connection to our relay server, and we provide a public HTTPS address that forwards to port 1337 on your Mac. No inbound port forwarding, firewall changes, or public IP are required.

Does the Atomic Chat API require an API key?

The material we verified does not document an API key requirement for the local server. Treat the API as unauthenticated until you confirm otherwise in your version of the app, and add access control before sharing the public URL, for example with tunnel access options available on your plan or an authenticating reverse proxy in front of port 1337.

Why does my remote URL stop working when I close my MacBook?

A Localtonet tunnel is available only while the client is connected and the tunnel is running, and Atomic Chat only answers while the app is open and the Mac is awake. Sleep stops both. Keep the Mac awake with caffeinate -i and the lid open during remote sessions, or move to always-on hardware for unattended use.

Which Atomic Chat version should I install?

Download the newest release from the project's GitHub Releases page. When we prepared this guide the latest was v2.4.5, while some README links still referenced v2.0.0. Newer releases include fixes relevant to API users, such as prompting before restarting connected agents when the served model changes.

Is this the same as using a VPN to reach my Mac?

No. An HTTP tunnel publishes one local service, port 1337 in this case, at a public HTTPS address. It does not put remote devices onto your network. If you want private network-level access between your own devices instead, our VPN Manager is the feature designed for that.

Can I use a stable URL so I do not have to reconfigure my tools?

Yes. Choose Custom Sub Domain or Custom Domain as the Process Type for your HTTP tunnel instead of Random Sub Domain. Your IDE plugins, agents, and scripts can then keep the same base URL across sessions. Check our current documentation for DNS requirements before using a custom domain.

Reach your local Atomic Chat models from anywhere

Once Atomic Chat answers on port 1337 locally, a Localtonet HTTP tunnel gives your remote IDE plugins, agents, and scripts an HTTPS base URL without touching your router. Create a free account, connect your Mac, and start the tunnel when you need it.

Get Started Free →

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