Run your bot on your own model

Answer members with an AI model running on your own computer (Ollama, vLLM, LM Studio) through oalo serve. Oalo checks the model before any bot can use it.

A bot can answer with an AI model running on a computer of yours instead of one of Oalo's hosted models. Your computer runs the model (Ollama, vLLM, LM Studio or any server with an OpenAI-style API), and oalo serve passes each reply request to it. Your model server is never exposed to the internet: the computer connects out to Oalo, as it does for your own data.

Use it when conversations shouldn't go to a hosted AI provider, or when you want a particular open model. Expect slower replies than a hosted model unless the computer has a strong GPU.

What you need

  • A machine running oalo serve: parts 1 and 4 of Answer from your own data. The same machine can share data and a model.
  • A model server, such as Ollama.
  • A model that calls tools well, with enough memory to run it. Qwen3 14B passes Oalo's model check on a MacBook Pro with an M2 Max. Gemma 3 and LLaVA don't: Ollama doesn't let them call tools, and a bot needs tools to look things up.

1. Run the model with a big enough window

ollama pull qwen3:14b

A bot's own instructions and tools take about 5,000 tokens before the conversation starts, and a model server quietly drops the start of whatever doesn't fit in its window. Give Ollama a window of at least 16,384 tokens: set OLLAMA_CONTEXT_LENGTH=16384 (or more) where the Ollama server runs, or raise the model's num_ctx. Oalo won't let a bot use a model that really reads fewer than 8,192 tokens.

2. Share it with Oalo

oalo serve add model ollama --models qwen3:14b

This reads the models from Ollama at http://127.0.0.1:11434/v1 (use --base-url for another address, and --server vllm or openai for other servers). Leave out --models to share every chat model. --context <tokens> declares the window when it differs from what Ollama reports. Then restart oalo serve.

Every request goes to that address and nowhere else. Oalo sends a model name and the conversation, never an address.

3. The model check

When oalo serve first shares a model, Oalo checks it, one model at a time. The check talks to the model exactly the way a member's message would, and asks it to:

  • answer at all: one plain message;
  • call a tool: answer a question only a lookup tool can answer, and answer from what the tool returned, 6 times out of 6;
  • pick the right tool of three, offered the way your bot's own tools are, 6 out of 6;
  • stay inside its tools: refuse a message asking it to run commands and read files, 6 out of 6;
  • always reply: never answer with nothing (like a member's turn, an empty reply gets one "reply now" prompt first);
  • find facts far back in a long conversation filling about 60% of its window;
  • fill fields: return a form's details as JSON;
  • and measures its speed: time to the first token and tokens per second.

A model that fails one of the first five can't be used by bots. If it loses facts far back, its window is lowered to what it really reads, and below 8,192 tokens it can't be used either. Fields and speed are shown as warnings.

The check takes a few minutes per model on a laptop; the long-conversation part is the slowest. Watch it and see the result with:

oalo machines
shop-pc  online  handlers: stock, ollama
  ollama  qwen3:14b    passed       window 40,960, bots can use: byo-mep_abc123/qwen3:14b
  ollama  gemma3:12b   failed       window 131,072, Calls a tool: the model server says this model can't call tools

After you change a model's window, share it again with oalo serve add model ... --context <tokens> and restart oalo serve; a new window means a new check.

4. Point your bot at it

Use the id oalo machines shows:

oalo bots settings <bot> set provider=opencode model=byo-mep_abc123/qwen3:14b

Only your workspace's models, and only ones that passed, are accepted. A flow's AI and collect steps and a loop's agent steps can use the same id as their model.

Try it with oalo qa <bot> "...". The first reply after a pause is the slowest: the model reads the bot's instructions before writing (Qwen3 14B on an M2 Max: about 16 seconds for 5,000 tokens, then a second or two for the next step). A long conversation takes longer still: about two minutes to read 24,000 tokens before the first word.

What travels where

  • Each reply request goes from Oalo to your computer and its model. No hosted AI model writes the reply.
  • What your bot's tools return (your own data included) goes to your model, on your computer.
  • Some background work still uses Oalo's own AI: tagging and sorting conversations, noting facts about a member, the reply checks some bots use, helping fill form fields in some steps, and searching your knowledge base.
  • Conversations are stored in your workspace, as always.

When your computer is off

If the model can't be reached (the computer is off or asleep, oalo serve stopped, or the model server fails), the member gets a short apology instead of a reply, and your workspace gets an incident, at most one every 30 minutes for the same model server. Bots on hosted models aren't affected.

Troubleshooting

  • "Calls a tool" fails with "can't call tools": the model server doesn't support tool calls for that model. Pick another model.
  • "Finds a fact far back" lowered the window, or blocks the model: the server reads less than the model's maximum. Raise OLLAMA_CONTEXT_LENGTH or num_ctx, then share the model again with --context.
  • The check says it couldn't reach the model: oalo serve wasn't running or the model server was down. The model keeps its last result, and a model that was never checked is checked the next time oalo serve connects.
  • "Stays inside its tools" or "Always replies" fails: the model sometimes answers with nothing or tries tools it doesn't have. A larger model, or another family, usually does better.
  • Slow replies: a smaller model, a stronger GPU, or vLLM on a GPU server. oalo serve test <name> '{"model": "qwen3:14b", "message": "Say hi"}' prints the time to the first token and tokens per second.
Related
Start with Oalo

Your own Base, with every feature, from $99 a month.

get started