Run rakazo on local models — no API key, no per-token bill

In short: rakazo can run entirely on a model you serve yourself — Ollama, LM Studio, llama.cpp or any OpenAI-compatible server on your own hardware. There are two ways to connect it: register it in the deployment settings (RAKAZO_LOCAL_MODELS), or connect it per user and flip the operator switch (MCP_ALLOW_PRIVATE_ENDPOINT=true) that otherwise rejects private addresses. Your prompts never leave your server; what you give up is the frontier models' capability.

Every other route to a working bot needs an account somewhere — a Claude or ChatGPT subscription, or an API key that bills per token. The local route needs none of that: the model runs next to rakazo, on the same server or another machine you control. It is the right choice when prompts must stay on your own hardware, when you want a flat hardware cost instead of a meter, or when you simply want to evaluate rakazo before committing to a model account. This page covers both connection routes and the one error that stops most first attempts. We walked the whole thing end to end on our test server (see the verification note at the end).

Route A: register the model in the deployment (operator route)

This makes the local model a provider for the whole deployment. It is the route rakazo's own self-hosting documentation describes first, and the one to use when you run the server for yourself or a team.

  1. Install a model server — Ollama is the common choice — and pull a model, e.g. ollama pull qwen3:4b. LM Studio, llama.cpp and MLX work the same way; anything that serves an OpenAI-compatible API qualifies.
  2. Make the endpoint reachable from rakazo's API and worker containers (the networking section below — this is where most setups actually fail).
  3. Add two lines to the deployment environment, listing the model IDs you serve and the endpoint URL:
    RAKAZO_LOCAL_MODELS=qwen3:4b,llama3.1:8b
    RAKAZO_LOCAL_MODELS_URL=http://127.0.0.1:11434/v1
    (11434 is Ollama's default port; the /v1 path is its OpenAI-compatible API.)
  4. Re-run the installer. The provider list gains a “Local (Ollama / LM Studio)” entry, and the models you listed can be selected like any other provider's.
  5. Optional, as needed: RAKAZO_LOCAL_MODELS_API_KEY if your server demands a key (LiteLLM, vLLM with --api-key, a company gateway); RAKAZO_LOCAL_CONTEXT_WINDOW and RAKAZO_LOCAL_MAX_TOKENS to tune sizes; and to make the local model the deployment default for everyone, PI_DEFAULT_PROVIDER=local with PI_DEFAULT_MODEL set to one of your listed models and PI_DEFAULT_CREDENTIALS=host.

No key is required for Ollama itself: when no key is configured, rakazo sends a placeholder and Ollama does not check one.

Route B: connect it per user — and the error you will hit first

Each user can also connect their own OpenAI-compatible endpoint under Connect a model / Settings → Models: choose OpenAI-compatible, enter the base URL and the exact model ID, and leave the API key empty for Ollama. If your endpoint is a private address — and a model on your own network always is — the form stops you with:

Private model endpoints require operator authorization.

That is a deliberate policy, not a bug: literal private IPs, loopback addresses and host.docker.internal are refused unless the operator allows them for the whole deployment. The fix is one setting, applied to both the API and the worker:

MCP_ALLOW_PRIVATE_ENDPOINT=true

Re-run the installer afterwards. In our verified walk-through, the same form then passed: model discovery answered “Found 1 model.” and Continue succeeded with the API-key field left empty. Two things to understand before you flip it: the flag opens private endpoints for every user of the deployment, not just you — it is an operator-level decision; and no app account can bypass the policy in either direction, so there is no per-user shortcut around it.

The networking gotcha: your containers cannot see localhost

The endpoint URL is dialed by rakazo's API and worker containers, not by your browser. On a Linux Docker install, a model server bound only to 127.0.0.1 on the host is invisible to them. Bind the model server to an address the Docker bridge can reach — for Ollama, its OLLAMA_HOST setting pointed at the bridge or LAN address rather than localhost only — and use that address in RAKAZO_LOCAL_MODELS_URL (for example the Docker bridge gateway, often 172.17.0.1). On Docker Desktop, host.docker.internal works instead. Upstream's own advice from containers is the same: prefer a stable LAN address over container-internal names.

Security: Ollama has no authentication. Never bind it to a public interface or open its port in the firewall — anyone who can reach it can spend your compute. Internal address only. The same goes for the endpoint generally: everything you send your bots — prompts, attachments, tool results — leaves rakazo through that URL, so only ever configure an endpoint you control.

Vision: what the bot's computer needs

Text chat works with any model. The screenshot-based computer tools do not: they need a model that accepts images. On route A, list such models under RAKAZO_LOCAL_VISION_MODELS; on route B, enable “Supports images” under Advanced when connecting. Skip this and the bot can talk but cannot see its own screen.

Honest limits

Rather have it set up for you? Wiring a local model into a fresh deployment — endpoint, operator flags, vision settings and the acceptance test — is part of what our deployment service configures during setup.

Verified end to end on 5 November 2026 on our Debian 13 test machine (Ollama 0.40.14 serving qwen2.5:0.5b, rakazo edge build): the private-endpoint rejection, both fixes, model discovery and the first answer through the local model all reproduced; the full log is in our Field Guide test runs. Settings and behaviour re-checked against upstream's self-host models documentation on 10 November 2026. Rakazo is in beta and details can change between versions.

Frequently asked questions

Can rakazo run with no API key at all?

Yes. Serve a model yourself with Ollama, LM Studio, llama.cpp or a similar OpenAI-compatible server, and either register it in the deployment settings (RAKAZO_LOCAL_MODELS) or connect it as an OpenAI-compatible endpoint. No model account and no API key are involved.

Why was my local endpoint rejected with “Private model endpoints require operator authorization”?

Because the endpoint is a private or loopback address, and rakazo refuses those unless the operator sets MCP_ALLOW_PRIVATE_ENDPOINT=true on the API and worker. No app account can bypass that policy — it is an operator decision, checked on save, on model discovery, and on every run.

Do I have to enter an API key for Ollama?

No. On the operator route, rakazo sends a placeholder when no key is configured, and Ollama does not check one. On the per-user route, the connection form also accepts an empty key field — in our verified walk-through, model discovery answered “Found 1 model.” and Continue succeeded with the field left empty.

Can a local model drive the bot's computer and screenshots?

Only if the model accepts images. On the operator route, list it under RAKAZO_LOCAL_VISION_MODELS; on the per-user route, enable “Supports images” under Advanced. A text-only model still chats, but the screenshot-based computer tools stay unavailable.

What does “free” actually cost here?

Hardware and electricity instead of a per-token bill: the model runs on your server, so speed and capability are whatever your machine and the model you picked deliver. Frontier cloud models are still stronger for hard, multi-step computer work — local wins on privacy, cost control, and independence from any model account.