Pillar · Local agents

A coding agent that never sends your code anywhere.

Ollama-first, offline-capable, one small Rust binary. Privacy you can prove, costs that don't scale with usage, and access to the systems behind your firewall.

The short answer

A local AI coding agent runs its model and its edit-test loop on your own hardware, so source code, prompts, and diffs never leave your machine.

Read the full answer

Anvaya CLI is built for exactly this: Ollama-first with no account or key (devstral by default), a single static Rust binary (14–19 MB) at ~5MB idle, and a local memory daemon under .anvaya/mind/ that records decisions, patterns, and bugfixes across sessions. It runs fully offline after one model pull; any OpenAI-compatible or Anthropic provider is BYOK when you want frontier reasoning. The tradeoff stays stated: local 30B-class models cover everyday work at zero marginal cost, while frontier cloud models can be escalated per task for the hardest refactors. Privacy, zero marginal cost, and compounding memory: that is the local-first case.

Offline by policy

Local by default. Sealed when you ask.

With Ollama, nothing leaves for inference; the strict profile also denies network and refuses shells.

Sandbox · interactive
Profile
Enforce
Kernel
netmachine$TMPDIR~ homeproject + stateagent
policy line in the system prompt
Sandbox: profile=strict; reads=project+state root; writes=project+state root;
  network=deny; env=allow-list [baseline only]; enforce=tool-layer.
What each profile lets a process touch, and the rule that stops it.Anvaya-CLI/crates/anv-sandbox/src · anv-types/src/sandbox.rs

Why local

Privacy, cost, control.

The three reasons teams go local, and why memory is the fourth.

Ollama-first: zero keys to startdevstral via Ollama on localhost:11434 by default. Cloud providers only if you add a key; nothing phones home.
Proven privacy postureSource, prompts, diffs and the graph never leave hardware you own. No vendor processes your code.
Genuinely offlinePull the model once; agent, memory daemon and tools run without a network. Flights, VPNs, air-gapped repos.
Small enough to auditOne static Rust binary (14–19 MB), ~5 MB idle, no Node runtime. Every tool call is inspectable locally.
Local-first, not local-onlyDaily work stays local and free; escalate the hard refactors to a frontier model per session.

Setup

Local in minutes.

Install Ollama, pull a model, build Anvaya from source (pre-1.0). Full guide on /start.

1 · Model runtimeInstall Ollama, then pull a tool-calling coder (devstral default). Verify it answers on localhost:11434.
2 · Agent + memoryOne command installs both binaries; anv init scaffolds config and mind/ in under 50 ms.
3 · Work privateCode, plan, and refactor with the graph compounding locally. Escalate to a cloud provider per task only when the job earns it.

Questions

Asked about local agents.

What is a local AI coding agent?

A coding agent whose model and edit-test loop run on your own hardware: inference on your GPU or unified memory, code and prompts never leaving your machine. Anvaya pairs an Ollama model runtime with a Rust agent harness and a local memory daemon.

Can I run a coding agent fully offline?

Yes. Pull the model once (e.g. ollama pull devstral), and Anvaya's agent loop, memory daemon, and tools run with no network. Pre-cache any packages you need; everything else is already on disk.

Which local model should I use for coding?

Whatever fits your hardware with a 32K+ context window and tool-call training. Devstral is the default; Qwen-class coders (30B where 24GB+ memory is available, 7B fallback) are the common picks. Rule of thumb: the largest tool-calling model that stays responsive on your machine.

Are local agents as good as cloud frontier models?

For everyday edits on a private codebase, a good 30B-class local model lands most of the value at zero marginal cost. For the hardest multi-file refactors, frontier cloud models still lead, which is why Anvaya supports both and lets you escalate per task instead of paying per token for everything.

How is this different from Cline, OpenCode, or Aider with Ollama?

Those are excellent harnesses you can point at Ollama: Anvaya adds the missing layer: a persistent memory graph that compounds across sessions, plus repomap PageRank retrieval and pooled LSP diagnostics. Local inference solves privacy; memory solves the re-learning tax.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.