
On this page
- What do you need for FireMoon Harness local models?
- How to set up Ollama in FireMoon Harness
- 1. Pull a model
- 2. Raise the context window
- 3. Add Ollama in FireMoon
- How to set up LM Studio in FireMoon Harness
- How do you change the address of a local server?
- How to use Ollama on another machine through a tunnel
- On the remote machine
- In FireMoon
- Using a local and a remote Ollama together
- What to do when the connection fails
- Can you send images to a text-only local model?
- Local models, Auto routing and the cost meter
- What stays on your machine?
- Frequently asked questions
To use local models in FireMoon Harness, start Ollama or LM Studio, add it under Settings → Models → Add model provider, press Refresh list and pick a model in the composer. No key is needed, local models are part of the Free plan, and your prompts go only to the server on your own machine.
The one step people miss is Ollama's context window. FireMoon's docs say to raise it on the server with OLLAMA_CONTEXT_LENGTH before you start, because the default is too small for agent prompts. Below are the full steps for Ollama, LM Studio and an Ollama server on another computer, all taken from FireMoon's docs and the runtimes' own documentation.
What do you need for FireMoon Harness local models?
- FireMoon Harness on macOS 14 or later or Windows 10 or 11 (64-bit). The download links go live with version 0.1.0 on 20 December 2026. The Free plan covers every provider and local models, so you don't need Pro for this. If FireMoon is new to you, start with what FireMoon Harness is and how it works.
- Ollama or LM Studio installed on the same computer, or Ollama on a second machine you can reach through a tunnel.
- At least one model pulled or downloaded in that runtime.
- Enough GPU memory for the model plus a large context window. FireMoon's docs don't give hardware minimums; they tell you to set the context as high as your GPU memory allows.
FireMoon talks to both runtimes through their OpenAI-compatible APIs, at these default addresses:
| Runtime | Default base URL in FireMoon |
|---|---|
| Ollama | http://localhost:11434/v1 |
| LM Studio | http://localhost:1234/v1 |
Both match the runtimes' own docs: Ollama's OpenAI compatibility page uses localhost:11434/v1, and LM Studio's examples assume port 1234.
How to set up Ollama in FireMoon Harness
1. Pull a model
Install Ollama, then pull the models you want from a terminal:
ollama pull <model>
2. Raise the context window
FireMoon uses Ollama's OpenAI-compatible endpoint, which can't set the context size per request, so the size has to be set on the server. FireMoon's docs suggest OLLAMA_CONTEXT_LENGTH, with 32768 as an example, going only as high as your GPU memory allows. Restart Ollama afterward.
Ollama's own docs explain why this matters. Its default depends on video memory: 4k tokens below 24 GiB, 32k from 24 to 48 GiB, and 256k at 48 GiB or more. For coding tools and agents, Ollama recommends at least 64000 tokens. (Ollama's FAQ still gives a flat 4,096-token default; its newer context length page is the more detailed of the two.)
How to set the variable, per Ollama's docs:
- macOS: run
launchctl setenv OLLAMA_CONTEXT_LENGTH 32768, then restart the Ollama app. - Windows: quit Ollama from the taskbar, open "Edit environment variables for your account" from Settings or Control Panel, add
OLLAMA_CONTEXT_LENGTH, then start Ollama again from the Start menu. - From a macOS or Linux terminal, for one run: start the server with
OLLAMA_CONTEXT_LENGTH=32768 ollama serve.
Ollama's docs also mention a context length slider in the Ollama app's settings. To see what a loaded model actually got, run ollama ps and read the CONTEXT column; the PROCESSOR column shows whether the model fits fully on the GPU.
3. Add Ollama in FireMoon
- Make sure Ollama is running (the app, or
ollama serve). - In FireMoon, pick Ollama from the Local group of the first-launch setup dialog, or open Settings → Models → Add model provider and choose Ollama.
- On Ollama's card, open Customized settings and press Refresh list.
- Pick one of your models from the composer's model picker.
The provider stays in your settings until you press Remove provider, and the model list is saved, so it's still there after a restart.
How to set up LM Studio in FireMoon Harness
- Start LM Studio's server. Load a model, then turn on the server: LM Studio's docs say to toggle "Start server" in the Developer tab, or run
lms server start. - Add the provider. In FireMoon, pick LM Studio from the Local group of the setup dialog, or go to Settings → Models → Add model provider and choose LM Studio.
- Load the model list. LM Studio has no built-in model list in FireMoon, so open Customized settings on its card and press Refresh list to see what the server offers.
- Pick a model in the composer's model picker.
FireMoon's docs don't say anything about LM Studio's context settings, so this guide doesn't either.
How do you change the address of a local server?
If your runtime listens on a different port or host, open the provider's Customized settings and set Base URL. A URL with no path gets /v1 added, so http://localhost:11434 works as well as http://localhost:11434/v1.
When you change the URL, the model list switches to that server's models on its own, and Refresh list fetches it again straight away. Clearing the Base URL returns to the default address.
How to use Ollama on another machine through a tunnel
This is FireMoon's setup for using, say, a Windows PC with a GPU in another building as your Ollama provider. The PC is reached through a Cloudflare tunnel at an address like https://ollama.<your-domain>.
You need a domain on Cloudflare and access to its dashboard.
On the remote machine
FireMoon's docs use a Windows PC as the example:
- Install Ollama and pull models with
ollama pull <model>. - Set the context window. Open System Properties → Environment Variables and add a user variable
OLLAMA_CONTEXT_LENGTH(for example32768, as far as the GPU's memory allows). Quit Ollama from the tray and start it again. - Create the tunnel. FireMoon's docs give the path as Zero Trust → Networks → Tunnels → Create a tunnel, type Cloudflared. Cloudflare's current guide lists it under Networking → Tunnels, so your dashboard may show that instead. Install the connector with the command the dashboard shows; on Windows, FireMoon's docs show
cloudflared.exe service install <token>, which runs it as a Windows service. - Point a hostname at Ollama. Add
ollama.<your-domain>to the tunnel, pointing to the HTTP servicelocalhost:11434. Cloudflare now calls this a published application route, on the tunnel's Routes tab. - Set the Host header. In that route's additional application settings, set HTTP Host Header to
localhost:11434. Without it, Ollama answers every request with a 403, because it only accepts a local host while listening on loopback. Ollama's FAQ gives the same Host header fix for Cloudflare Tunnel. SettingOLLAMA_HOST=0.0.0.0on the PC also works, but exposes Ollama on your local network too. - Keep the machine awake while you want to use it.
Then check the tunnel from any computer:
curl https://ollama.<your-domain>/v1/models
It should list the models you pulled.
In FireMoon
- Open Settings → Models → Ollama. If it isn't listed, add it with Add model provider.
- Open Customized settings, set Base URL to
https://ollama.<your-domain>and press Apply.
You don't need to add /v1. The model list switches to the remote machine's models on its own, and FireMoon remembers which address each saved list came from, so your local list is never offered for the remote server. Clearing the Base URL takes you back to the local Ollama at http://localhost:11434/v1.
Using a local and a remote Ollama together
The built-in Ollama provider holds one address. To use both, keep the built-in one pointed at your own machine and add the remote one with Add model provider as a custom provider: choose OpenAI compatible and set the base URL to https://ollama.<your-domain>/v1.
What to do when the connection fails
| What you see | What it means, per FireMoon's docs | What to try |
|---|---|---|
| "the tunnel or proxy could not reach the server (530)", or 521 to 523 | The tunnel is up at Cloudflare, but the remote machine, cloudflared or Ollama isn't running |
Wake the machine and check that the service and Ollama are running |
| "took longer than the proxy allows to start answering (524)" | Cloudflare gave up waiting for the first byte | Use a smaller model or a shorter context |
| 403 with a hint about the Host header | The HTTP Host Header setting is missing | Set it to localhost:11434 in the tunnel route, or set OLLAMA_HOST=0.0.0.0 on the server |
| A warning when you add a local provider | FireMoon couldn't list the server's models; the provider stays configured so you can fix it later | Start the runtime, check the Base URL, then press Refresh list again |
On the 524 error, the sources disagree on the wait: FireMoon's docs say Cloudflare waits about 100 seconds for the first byte, while Cloudflare's own docs list a default Proxy Read Timeout of 125 seconds. Either way, a long prompt on a slow GPU can run out of time before the first token.
Can you send images to a text-only local model?
Yes. Many local models can't see images, so FireMoon reads the image first and hands the model text instead. Choose how in Settings → Models → Image reading:
- On-device text only (the default) uses your system's own text recognition. It's free, works offline and sends nothing anywhere.
- Vision model sends the image to a vision-capable model you've configured, which can itself be a local model in Ollama or LM Studio.
- Automatic reads on-device first and uses the vision model when the image has little text.
A "Read as text" badge on the image shows what the model received.
Local models, Auto routing and the cost meter
The cost meter counts local models as free. With Auto routing, a Pro feature, local models are candidates like any other and sit in the Free price band, so a simple prompt can stay on your machine while harder ones can go to a more capable cloud model you've configured. Auto routing's default classifier is a heuristic that runs on your computer and sends nothing. FireMoon's home page illustrates it by routing a README typo fix to Qwen3 Coder on Ollama; that's an example, not a recommendation.
You can also set fallbacks in Settings → Models → Model fallbacks. The docs say a fallback takes over after a call fails with a server error, a rate limit, a refusal or a model that doesn't exist.
What stays on your machine?
With a local runtime, FireMoon's privacy page says nothing leaves your hardware: prompts go to Ollama or LM Studio and no further. Three things still reach the network if you use them. Web search, web fetch and MCP servers contact their own services. A remote Ollama's traffic crosses Cloudflare. And the app's update check reads a public release file unless you turn it off in Settings.
FireMoon's FAQ says the app runs offline with Ollama or LM Studio, and the pricing page says the Free plan has no license check. If you're comparing this with other agents' local-model support, our guide to the best AI coding agents in 2026 covers the wider field, and Codex vs Claude Code covers the two big subscription agents.
Frequently asked questions
Do I need FireMoon Pro to use local models?
No. The Free plan includes every provider, Ollama and LM Studio among them. Pro adds Auto routing, which can choose between local and cloud models for you.
Why does FireMoon Harness need OLLAMA_CONTEXT_LENGTH?
FireMoon talks to Ollama through its OpenAI-compatible endpoint, which can't set the context size per request. Ollama's default is only 4k tokens on GPUs with less than 24 GiB of memory, so you raise it on the server, as far as your GPU memory allows.
Can FireMoon Harness use Ollama on another computer?
Yes. Set the Ollama provider's Base URL to a Cloudflare tunnel address such as https://ollama.<your-domain>. The tunnel has no authentication, so keep the hostname private.
Can I use a local and a remote Ollama at the same time?
Yes. Keep the built-in Ollama provider local, and add the remote server as a custom OpenAI-compatible provider with a base URL ending in /v1.
Which local model works best with FireMoon Harness?
FireMoon's docs don't recommend a specific model. Pick one your GPU can run with a large context window; Ollama suggests at least 64000 tokens of context for coding agents.
Sources
- Local models, FireMoon Harness docs
- Remote Ollama, FireMoon Harness docs
- Ollama provider, FireMoon Harness docs
- LM Studio provider, FireMoon Harness docs
- Install and first run, FireMoon Harness docs
- Providers, FireMoon Harness docs
- Auto routing and model fallback, FireMoon Harness docs
- FireMoon Harness home page and FAQ, MintFlow Technologies
- Pricing, FireMoon Harness
- Privacy, FireMoon Harness
- Download, FireMoon Harness
- FAQ, Ollama docs
- Context length, Ollama docs
- OpenAI compatibility, Ollama docs
- LM Studio as a local LLM API server, LM Studio docs
- OpenAI compatibility endpoints, LM Studio docs
- Cloudflare Tunnel, Cloudflare docs
- Create a tunnel (dashboard), Cloudflare docs
- Origin parameters, Cloudflare docs
- Error 524, Cloudflare docs
- Connection limits, Cloudflare docs
Was this helpful?
Thanks, noted. It helps decide what gets updated first.


