Picture hiring a senior lawyer to sort your mail. They’d do it well, but it would be slow and expensive, and you’d get a memo back when all you wanted was “bills” or “junk.”

A lot of AI agents work this way today. Every small call, like is this message urgent?, should this tool call be allowed?, or which team gets this ticket?, goes to a full large language model (LLM). Ollaya is an open-source project that tries to fix that.

Table of Contents

What is it?

Ollaya runs small decision models on your own machine. Its homepage calls it “the decision layer for AI agents,” or “System 1 for AI agents.” The second name comes from psychology: System 1 is the fast, instinctive part of thinking, and System 2 is the slow, deliberate part.

The split works like this:

  • The big LLM (System 2) handles the hard work: reasoning, writing, and planning.
  • Ollaya (System 1) handles the quick calls: routing, guardrails, triage, and approving tool use.

A decision model doesn’t write anything. You give it some input, called the state (an email, a support ticket, a chunk of JSON), plus a few typed questions. It answers each one in a fixed format:

Question typeWhat you get backExample
ChoiceA probability for every option“invoice” 0.98, “refund” 0.003, “other” 0.01
ScoreAn expected level on a scaleFrustration: 2.89 / 3
Yes/NoThe probability that the statement is trueIs urgent: 0.92

Why does it matter?

Using a full LLM for small decisions causes three problems:

  1. It’s slow. An LLM writes its answer one token at a time, even when the answer is a single word.
  2. It costs money. Hosted models bill per token, and an agent can make thousands of these calls a day.
  3. The answers are messy. You ask for “yes” or “no” and might get “Yes, it appears that…”, which your code then has to parse.

Ollaya avoids all three:

  • It’s fast. Each question needs a single forward pass through the model instead of a token-by-token answer. The site reports about 18 ms for five questions on a GPU.
  • There’s no per-token bill. It runs on your hardware, and your data stays there too.
  • The output is clean and calibrated. You get numbers instead of prose, so you can write a rule like “escalate if churn risk > 0.8” and skip the parsing.

How does it work?

1. Install it

macOS / Linux:

curl -fsSL https://ollaya.dev/install.sh | sh

Windows (PowerShell):

irm https://ollaya.dev/install.ps1 | iex

There are also desktop apps, a Docker image, and a systemd service for Linux servers.

2. Ask it something

ollaya run winnow:e4b "Third time this year you've double-charged me. Refund it today or I'm cancelling and moving to a competitor."

One command returns five judgments:

intent            refund        0.91
is_urgent         yes           0.92
frustration       2.89 / 3      0.86
refund_requested  yes           0.99
churn_risk        yes           0.99

Getting the same result from an LLM would take a prompt, a generated reply, and code to parse it.

3. Plug it into your app

Ollaya runs a local API on port 11435. Send it a state and your questions:

curl http://localhost:11435/v1/systemone -d '{
  "model": "winnow:e4b",
  "state": "Can I get an invoice for last month?",
  "questions": {
    "intent": {
      "type": "choice",
      "instructions": "What does the customer want?",
      "criteria": {
        "invoice": "Needs an invoice or receipt",
        "refund": "Wants money back",
        "other": "Anything else"
      }
    }
  }
}'

The answer comes back as structured JSON:

"intent": {
  "choice": "invoice",
  "confidence": 0.9801,
  "probabilities": { "invoice": 0.9868, "refund": 0.0026, "other": 0.0106 }
}

The response also reports "output_tokens": 0, because nothing was generated.

If you already use TypeSafe’s hosted decision API (called Jev), you can switch to Ollaya by changing three environment variables. Your code stays the same.

The fine print

  • Models: about 30 open model families, pulled by name and pinned by checksum so the same version runs every time.
  • Platforms: macOS (Apple silicon), Windows, Linux, WSL 2, and Docker. GPUs speed things up, but small models also run on CPU.
  • Price: free, under the Apache-2.0 license. A hosted “Ollaya Cloud” has a waitlist.
  • Accuracy: on a benchmark of 3,880 human-labeled questions, the top model scored 0.824. That figure is reported by Ollaya itself, so test it on your own data.

Wait, isn’t this just Ollama?

The names are close, and the resemblance is deliberate. Ollaya copies Ollama’s design: one program with pull, run, and serve commands, plus Modelfiles for configuration. Even the ports sit next to each other, 11434 for Ollama and 11435 for Ollaya. Ollaya is still a separate project with no affiliation to Ollama.

The core difference is focus. Ollama is mainly for chat and generative models, the kind that write text, and its recent versions also serve a handful of decision models. Ollaya serves only decision models and tries to do that one job thoroughly.

OllayaOllama
Main jobDecision models onlyChat/generative models, plus some decision models
Decision models available30 families9
Best accuracy (3,880 questions)0.8240.816
Median latency232 ms96 ms (faster)
ProbabilitiesCalibrated with each model author’s temperatureRaw softmax scores
Max options / questions per request255 / 25626 / 64 for most models
WeightsThe authors’ original files, checksum-verifiedConverted and re-hosted GGUF files
LicenseApache-2.0MIT

Figures are from Ollaya’s own comparison, run on the same RTX 5090 GPU.

Where Ollaya comes out ahead

  • More accurate probabilities. Ollaya applies the calibration settings each model’s authors published, and you can refit them on your own data. Ollama mostly reports raw scores. This matters when your code acts on a cutoff like “escalate above 0.8.”
  • The original weights. Ollaya downloads weights unchanged from the authors’ Hugging Face pages, pins them to a specific commit, and checks them against a sha256 checksum. Ollama converts them to its own GGUF format.
  • More models and bigger requests. Ollaya offers more decision model families, including several small encoder models that run quickly on an ordinary CPU, and it accepts more questions and answer options in a single request.
  • A wider API. Ollaya supports three of TypeSafe’s endpoints plus its own /api/decide and an MCP server. Ollama supports only one of TypeSafe’s endpoints.

Where Ollama comes out ahead

  • Speed. Ollaya’s own site says that on the same model weights, Ollama is 5 to 8× faster. Ollama runs compressed (quantized) copies of the models, while Ollaya runs the full-precision originals. Accuracy barely differs: one model scored 0.752 at 42 ms on Ollama and 0.748 at 328 ms on Ollaya.
  • Large models. Ollama can serve a 27-billion-parameter decision model that would need about 54 GB of memory in Ollaya’s runtime.
  • Range. Ollama also runs chat models, so one background service covers both kinds of work.

Do you have to pick one?

No. They use different ports, so both can run on the same machine. A sensible split is Ollama for chatting and text generation, and Ollaya when an agent needs a fast, well-calibrated yes/no or category decision.

The bottom line

Many agent decisions are simple and need a quick, structured answer. Ollaya handles those locally and returns probabilities you can set thresholds on, which leaves the big model for the work that needs it.

To try it, run the install command, ask it a question, and compare the answer with what your LLM returns. You can also test it in the browser at ollaya.dev/try.

Links: Website · Docs · FAQ (incl. Ollama) · GitHub · Models

“What’s in a name? everything!”-Anon

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>