daari
Local-first execution router — cache, tools, and local models before frontier APIs.
Status: v1.4.0 — docs site · tracker · release notes
Route Cursor, Claude Code, and any OpenAI-compatible client through local tiers instead of paying frontier for repeat work. Not a proxy — a cost optimizer you run. Apache 2.0.
Quick start
pip:
pip install daari
daari onboard --yes --serve
Docker (bundles Ollama):
docker compose up
First start pulls the L3 model (~2 GB), then daari listens on http://127.0.0.1:11435 (readiness: GET /ready). Prebuilt image: ghcr.io/naveenreddyalka/daari. Package: pypi.org/project/daari.
Docs — Developer documentation (install, concepts, guides, reference). Contributors: docs/DEVELOPING.md. Community: Discussions (templates).
One-click demo (install, serve, smoke curl, stats):
./scripts/demo.sh
Manual steps:
python3.12 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
ollama pull llama3.2:3b
daari serve
curl http://127.0.0.1:11435/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"llama3.2:3b","messages":[{"role":"user","content":"Say hi"}]}'
Run the same curl twice — the second response should show "tier": "L0" in daari_meta.
Feature snapshot (v1.2.0)
Routing & caching
- Local-first routing chain:
L0exact cache →L1semantic cache (with draft injection) →CCS/L2rules →LtCLI tools →L3–L5local models (Ollama or MLX) →L6frontier, with confidence-based escalation - Cache trust you can measure: shadow-sampled false-hit rate, response-diversity monitoring, input normalization, per-category TTLs
- Prompt intelligence: category/complexity profiling, per-category policies, latency budgets, warm-model preference, learned routing from your own outcomes
Learning (on-device)
- Implicit outcome capture + explicit accept/reject feedback →
daari learn stats/recommend - Auto-tuned per-category confidence thresholds, opt-in example capture →
daari learn finetune(MLX LoRA) →daari learn deploy - Opt-in, review-first anonymized stats export (
daari learn export-stats) — metadata only, never prompts
Clients (one-click)
- Cursor (BYOK via tunnel + API-key auth), Claude Code (full tool passthrough), Claude Desktop (third-party gateway mode), ChatGPT Desktop / JetBrains AI Assistant (Ollama-compatible facade), VS Code, any OpenAI/Anthropic SDK
- Per-project profiles (
.daari.yaml): tier caps, no-frontier, latency budgets per repo
Observability & spend
- Per-request traces (
daari trace), usage ledger with estimated savings (daari report, Markdown export), web dashboard (daari web-ui serve) - Monthly/daily frontier budgets with soft warnings, per-client cost attribution, optional pre-frontier PII scrub
Platform
- MCP server at
POST /mcp(initialize/tools/list/tools/call), Sourcegraph/GHE/GitLab providers, org shared cache + collective learning (tracer), gateway API-key auth, MLX backend for Apple Silicon
Docs
| Doc | Purpose |
|---|---|
docs/developer/ |
Start here — get started, concepts, guides, reference, internals |
| Docs site | Published MkDocs |
docs/DEVELOPING.md |
Contributor pickup (clone, pytest, CI) |
| Discussions | Q&A, show-and-tell, announce (templates) |
docs/prd/ROADMAP-v2.md |
Forward roadmap |
docs/TRACKING.md |
Living task tracker (maintainers) |
docs/pitch/DEMO.md |
Demo script |
CONTEXT.md |
Agent handoff |
Principles
- Open source — Apache 2.0; run it, fork it, sell it
- Local-first — on-device by default
- Cost-minimize — cheapest capable path for every task
- AI optional — many tasks use IDE/CLI tools, not models
License
Daari is licensed under the Apache License 2.0. Decision: ADR-0016.
Repo
Metadata
Release files for daari 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daari-1.4.0.tar.gz | 824.8 kB | With provenance | Details for daari-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| daari-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for daari-1.4.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / daari-1.4.0.tar.gz
| Download URL | daari-1.4.0.tar.gz |
|---|---|
| Size | 824.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ddec0082a39626fa824c02fb4adde89e1f80ebeac90920fad72e6c56ce2b4e2
|
|
BLAKE2b-256 checksum How to use checksums |
90da363e3f67dbaf6b618d93feac623aafe515acc19790d3a96e78d36feb9aec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / daari-1.4.0-py3-none-any.whl
| Download URL | daari-1.4.0-py3-none-any.whl |
|---|---|
| Size | 322.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b29b11b341d3726c394d1adb6256c3f380819283065a527bb89eaf69b2d35ea7
|
|
BLAKE2b-256 checksum How to use checksums |
a513e448327b2587daa4d2aab0f11d061eb76b5aaacc2c06b13281c5d3aa5c56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logSecurity for daari 1.4.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for daari-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logA 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.