Skip to main content

decido

Calibrated decisions from a document — on a laptop CPU or a GPU. Give Decido a document (a ticket, email, record, policy, JSON object …) and questions — yes/no, pick-one, or an ordered scale — and it returns a probability for every answer. This package runs the open Decido 1 models from the Hugging Face Hub.

  • Calibrated: probabilities you can threshold, not just a label (temperatures fitted on held-out tasks).
  • Local: runs on a laptop (no API key, no data leaves the machine); on Apple Silicon it uses the Mac GPU (Metal) automatically.
  • Deterministic: the same input gives bit-identical output every time (CPU and Mac GPU).
  • Jev-compatible: decido serve exposes the Jev 1.13 (TypeSafe "System One") HTTP API, so existing Jev clients work unchanged.

Install

pip install decido-ai      # prebuilt for macOS 13+ (Apple Silicon), Linux x86_64 / aarch64 and Windows x86_64: nothing to compile

Windows 10+ (PowerShell): python -m venv .venv; .venv\Scripts\activate; pip install decido-ai. NVIDIA GPU: pip install "decido-ai[gpu]" (adds torch + transformers; needs Python ≥ 3.10), then Decido(model, device="cuda").

Quick start

from decido import Decido

m = Decido("decido-ai/decido-1-fast-1.7b")      # downloads once from the Hub, then runs locally
print(m.decide(
    "Customer: I was charged twice for order 4821. Please refund one of the charges today.",
    {
        "refund":  "Is the customer asking for a refund?",                                   # yes / no
        "team":    {"q": "Which team should handle this?", "options": ["billing", "shipping", "tech"]},
        "urgency": {"q": "How urgent is it?", "scale": ["low", "normal", "urgent"]},
    },
))
# prints something like: {'refund': {'yes': 0.99, 'no': 0.01}, 'team': {'billing': 0.94, 'shipping': 0.03, 'tech': 0.03},
#     'urgency': {'low': 0.24, 'normal': 0.44, 'urgent': 0.32}}

Question formats

you write question type
"Is the customer asking for a refund?" yes / no
{"q": "Which team?", "options": ["billing", "shipping"]} pick one
{"q": "Which team?", "options": {"billing": "charges, refunds", "shipping": "delivery"}} pick one, with option descriptions
{"q": "How urgent?", "scale": ["low", "normal", "urgent"]} ordered scale
{"q": "...", "yes": "what yes means", "no": "what no means"} yes / no with definitions

m.predict({"state": ..., "questions": ...}) takes the full Jev 1.13 wire format (noul, choice with 2–255 options, score with 2–10 levels) and returns Jev-style answers (noul; choice + probabilities + confidence; score + legend). The document may be text or JSON and is treated as untrusted data (instructions inside it are not followed).

Command line and HTTP server

decido models                                                     # the family, with scores and latency
decido run decido-ai/decido-1-fast-1.7b "Customer: charged twice, refund please" \
    -q refund="Is a refund requested?" -q team="Which team?|billing,shipping,tech" -q urgency="How urgent?|scale:low,normal,urgent"
decido run decido-ai/decido-1-26b-a4b --request request.json      # wire format in, wire format out
decido serve decido-ai/decido-1-26b-a4b --port 8080 --workers 2   # POST /v1/systemone, GET /v1/models, GET /health

The server binds to 127.0.0.1 by default; set DECIDO_SERVER_KEY to require Authorization: Bearer <key> (clients: Decido("hosted:decido-1-fast", base_url=...) reads the same DECIDO_SERVER_KEY; DECIDO_API_KEY is only for getdecido.ai). Jev SDK users: TypeSafeClient(base_url="http://127.0.0.1:8080"); install pip install "decido-ai[server]" so the SDK's zstd-compressed request bodies are accepted.

Use it from agents and other apps

Hosted API (no download)

from decido import Decido

m = Decido("hosted:decido-1-fast")      # free key: https://getdecido.ai/playground#api, then export DECIDO_API_KEY=dk_...
print(m.decide("Customer: I was charged twice for order 4821. Please refund one of the charges today.",
               {"refund": "Is the customer asking for a refund?"}))

Same decide() / predict() as the local models, with nothing to download. The hosted API runs Decido-1-Fast with 50 requests per day per key and demo limits (≤ 5 questions, ≤ 10 options per question, ≤ 6,000 characters of document, ~1,000 tokens in total). Hosted answers are rounded to 2 decimals, and predict() also returns model and usage. Errors raise decido.HostedError (.status, .retry_after; m._m.last_rate_limit has the X-RateLimit-* headers). To use your own decido serve instead: base_url="http://127.0.0.1:8080" (or DECIDO_BASE_URL), with its key in api_key= or DECIDO_SERVER_KEY — the getdecido.ai key is never sent anywhere else, and keys go only over https (or http to this machine).

Download ahead of time

decido pull decido-ai/decido-1-fast-1.7b       # the CPU / Mac GPU files (GGUF + bundle); prints the size; then works offline

MCP: Claude Desktop, Cursor and other agents

pip install "decido-ai[mcp]"                   # needs Python ≥ 3.10
decido pull decido-ai/decido-1-fast-1.7b
which decido                                   # full path for the config below

Claude Desktop: Settings → Developer → Edit Config (claude_desktop_config.json). Cursor: ~/.cursor/mcp.json.

{"mcpServers": {"decido": {"command": "/full/path/to/bin/decido", "args": ["mcp", "--model", "decido-ai/decido-1-fast-1.7b"]}}}

The agent gets one read-only tool, decide(document, questions). It runs over stdio and opens no network port. For the hosted API instead of a local model use "args": ["mcp", "--hosted"], "env": {"DECIDO_API_KEY": "dk_..."}. --revision pins a model version.

LangChain tool

from langchain_core.tools import tool
from decido import Decido

m = Decido("decido-ai/decido-1-fast-1.7b")

@tool
def probability_yes(document: str, question: str) -> float:
    """Probability (0-1) that the answer to a yes/no question about the document is yes."""
    return m.decide(document, question)["answer"]["yes"]

print(probability_yes.invoke({"document": "Customer: please refund my second charge.", "question": "Is this a refund request?"}))

Function calling (OpenAI-style tool schema)

from decido import Decido

DECIDE_TOOL = {
    "type": "function",
    "function": {
        "name": "decide",
        "description": "Calibrated decision about a document: returns a probability for every possible answer.",
        "parameters": {
            "type": "object",
            "properties": {
                "document": {"type": "string", "description": "The text to decide about."},
                "questions": {
                    "type": "object",
                    "description": 'id -> a yes/no question, or {"q": "...", "options": [...]}, or {"q": "...", "scale": [...]}',
                    "additionalProperties": {"anyOf": [{"type": "string"}, {"type": "object"}]},
                },
            },
            "required": ["document", "questions"],
        },
    },
}
m = Decido("decido-ai/decido-1-fast-1.7b")

def run_tool_call(arguments: dict) -> dict:        # call this when the LLM asks for the "decide" tool
    return m.decide(arguments["document"], arguments["questions"])

print(run_tool_call({"document": "Agent plan: delete the production database.", "questions": {"safe": "Is this action safe?"}}))

Models

model built on runs on six-group score (Jev 1.13 = 83.85) latency, M4 Pro: CPU · Mac GPU (1k-token document, 5 questions)
decido-1-26b-a4b Gemma-4-26B-A4B laptop (~30 GB RAM) · GPU 85.38 4.1 s · 1.1 s
decido-1-fast-1.7b Qwen3-1.7B laptop (~8 GB RAM) 73.01 0.64 s · 0.30 s
decido-1-ultra-0.6b Qwen3-0.6B laptop (~4 GB RAM) 62.16 0.41 s · 0.13 s
decido-1-max-26b-a4b Gemma-4-26B-A4B laptop (slow, ~30 GB RAM) 89.23 (GPU), most accurate ~28 s · ~11 s / question
decido-1-think-26b-a4b Gemma-4-26B-A4B GPU · laptop (slow) 88.71 (GPU) ~19 s · ~10 s / question
decido-1-xl DeepSeek-V4-Flash 4× A100 80 GB 87.25 (GPU) GPU only

Six-group score = mean over JevBench, Kev, OpenJev, Nimble, VitaminC and MASSIVE (the benchmark groups used to compare open reproductions of TypeSafe's Jev 1.13; Jev's number is its published run). Per-group results, calibration (Brier / ECE), option-order robustness, training details, disclosures and limitations are on each model card.

Browser-agent models (new in 1.2.0)

Decision models for browser agents: at every step they pick the operation (click, type, select, scroll, wait, done, blocked) and the element, in the request format of the open-source Jev Ultrafast agent. NVIDIA GPU only for now (pip install "decido-ai[vllm]" or "decido-ai[gpu]").

model built on public websites (100 tasks × 2) Mind2Web (1,500 human steps) decision time, 1× A100
decido-web-v2 Gemma-4-26B-A4B 81.0% 78.2 525 ms
decido-web-v2-fast Qwen3-4B 67.5% 75.2 209 ms

Jev 1.14 on the same tests: 70.0% and 59.9. Results with and without Claude assistance are on the model cards.

decido serve decido-ai/decido-web-v2 --device cuda --engine vllm --port 8080     # point the agent at :8080/v1/systemone

Browser agent: Decido-Web v2 + Claude (new in 1.3.0)

A complete browser agent: Decido-Web v2 decides every step, and Claude takes over the hard ones (low confidence, a DONE/BLOCKED stop, a loop, the first step), keeping a short plan; Claude also writes the text typed into fields. On 300 fresh WebArena tasks it finished 61.2% vs 37.0% for Claude alone; on 100 public-website tasks 89.0% (= Claude alone; v2 alone 81.0%). In that configuration about 80% of steps are escalated, so Claude usage is close to running Claude alone: the gain is accuracy, not cost (a lower --tau escalates less; not evaluated).

pip install "decido-ai[agent,vllm]"            # on an NVIDIA GPU box (v2 needs ~80 GB GPU memory)
export ANTHROPIC_API_KEY=sk-ant-...            # or ANTHROPIC_VERTEX_PROJECT_ID for Claude on Vertex AI
decido agent serve                              # downloads decido-ai/decido-web-v2 (49 GB) once; serves :8090

pip install "decido-ai[agent]"                 # on the machine with Chrome (Python >= 3.11; can be the same box)
decido agent run "Find the cheapest 1 m USB-C cable and open its page" --start https://www.example-shop.com \
    --endpoint http://GPU-BOX:8090              # --headless for no window; --out runs.jsonl to keep a record

decido agent serve options: --decido-url (use a model already served with decido serve), --tau (escalation threshold, default 0.7), --claude-model (default claude-opus-5-5), --no-claude (v2 alone), --log (escalation log: reasons, tokens, latency; no page content). Defaults are the configuration evaluated above. Set DECIDO_SERVER_KEY on both sides before exposing the server beyond localhost. Your own agent can call the same server: POST /v1/systemone (Jev Ultrafast request format) and POST /v1/chat/completions (text helper). The bundled agent loop is based on Browser Use's MIT-licensed jev-ultrafast.

Platforms

  • macOS 13+ on Apple Silicon (M1–M4): prebuilt runtime included (llama.cpp). Runs on the Mac GPU (Metal) by default, 2–4× faster than CPU; device="cpu" reproduces the published CPU numbers bit for bit.
  • Linux x86_64 and aarch64 (glibc ≥ 2.17 — any distribution from 2014 on): prebuilt CPU runtime included.
  • Windows x86_64 (Windows 10+): prebuilt CPU runtime included. In PowerShell: python -m venv .venv, .venv\Scripts\activate, pip install decido-ai.
  • Other platforms (Intel macOS, other Linux CPUs, …): compile on first use (a few minutes, once; needs a C++ compiler — cmake is installed by pip). Windows on ARM: use WSL2.
  • NVIDIA GPU: Decido(..., device="cuda") with the gpu extra runs the bf16 weights with transformers (Decido-1, Fast, Ultra, Think; Decido-1-Max runs on CPU / Mac GPU for now — its GPU path is being validated). Python ≥ 3.10 for the gpu and vllm extras, ≥ 3.11 for xl. Decido-1-XL: pip install "decido-ai[xl]", one node with 4× A100 80 GB.

Environment variables: DECIDO_THREADS (CPU threads), DECIDO_N_CTX (context window, default 16384), DECIDO_MAX_REQUEST_TOKENS (server cost bound: state + all questions per request), DECIDO_MAX_BODY (server: max request body in bytes after decompression, default 32 MiB), DECIDO_VERBOSE=1 (runtime logs), DECIDO_VSERVE (custom runtime binary), DECIDO_API_KEY (your getdecido.ai key, hosted API only), DECIDO_BASE_URL (hosted client: another server), DECIDO_SERVER_KEY (decido serve: require this key; also sent by the hosted client to a custom DECIDO_BASE_URL), HF_HOME (model download location), ANTHROPIC_API_KEY / ANTHROPIC_VERTEX_PROJECT_ID (decido agent serve), DECIDO_CHROME (decido agent run: Chrome binary).

License

Apache-2.0. The CPU runtime links llama.cpp (MIT); the browser agent loop is based on jev-ultrafast (MIT, Browser Use). Model licences: see each model card (Apache-2.0; Decido-1-XL: MIT).

Metadata

Release files for decido-ai 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decido-ai 1.3.0
File Size Uploaded Provenance Actions
decido_ai-1.3.0.tar.gz 125.1 kB Without provenance Details for decido_ai-1.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for decido-ai 1.3.0
File Actions
decido_ai-1.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for decido_ai-1.3.0-py3-none-win_amd64.whl
decido_ai-1.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for decido_ai-1.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
decido_ai-1.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for decido_ai-1.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
decido_ai-1.3.0-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for decido_ai-1.3.0-py3-none-macosx_13_0_arm64.whl
decido_ai-1.3.0-py3-none-any.whl Python 3 none any Details for decido_ai-1.3.0-py3-none-any.whl

Total release size: 31.2 MB

Release files / decido_ai-1.3.0.tar.gz

Download URL decido_ai-1.3.0.tar.gz
Size 125.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e570c47a3e12a4c3bb9a3305693b5c40c546935453711c488b9b46ec209c0818
BLAKE2b-256 checksum
How to use checksums
f5af2dfd90c6ea6d0722038bd0984f41629c56a6585161fc7d9bb57ba5609f37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16+meta

Release files / decido_ai-1.3.0-py3-none-win_amd64.whl

Download URL decido_ai-1.3.0-py3-none-win_amd64.whl
Size 11.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
229e831047641450c0e34cd8bbce8533b9e162531f49fa82c0f32e5630ae14b8
BLAKE2b-256 checksum
How to use checksums
c32102bbc1dba26b4fb28a8c825b7ce9eb548ce999b799b6fdf3807a31b638a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16+meta

Release files / decido_ai-1.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL decido_ai-1.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 9.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d64074898c036650911a32c10580b6b3bcad34fc89b68471578a3dff4bc34c20
BLAKE2b-256 checksum
How to use checksums
0b381fc1993fe050e0a65dbb68e416236c58f576a52bfcca005d3d43f6b8b6ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16+meta

Release files / decido_ai-1.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL decido_ai-1.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ac32e2f3405c52d81213a276169eb13b020d5a84f0ad89ed174bed74691b3b09
BLAKE2b-256 checksum
How to use checksums
08b8dfc4e38fd73316d96eee6a434fc37fb792443d9427796be76a712262b343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16+meta

Release files / decido_ai-1.3.0-py3-none-macosx_13_0_arm64.whl

Download URL decido_ai-1.3.0-py3-none-macosx_13_0_arm64.whl
Size 4.2 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
4b167879b448e9bd8bb451352c1e2eb0cc26e447cfe04385de9e36ac6457b664
BLAKE2b-256 checksum
How to use checksums
0cb772c81be0834417b9ba0e23b2149533bb4a6283d5ddb959d255ee07c3fa24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16+meta

Release files / decido_ai-1.3.0-py3-none-any.whl

Download URL decido_ai-1.3.0-py3-none-any.whl
Size 139.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17d83f18ef9778c939524c6f7fabc1c193ad9f58d22b38422741a9ff2ade65e1
BLAKE2b-256 checksum
How to use checksums
919c95e9f8db4abade37b7090f079155f0a6c01d718c661efaab4cc227624538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16+meta

Security for decido-ai 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page