Localagent
LocalAgent is a local-first agent runtime for connecting local LLMs to MCP tools with explicit safety controls, reproducible runs, and evals.
Installation
npx localagentAsk AI about Localagent
Powered by Claude · Grounded in docs
I know everything about Localagent. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
LocalAgent
Local-first agent runtime for MCP workflows with explicit trust controls and replayable runs.
LocalAgent helps you get from curiosity to a working local agent workflow without fighting provider setup, unsafe defaults, or opaque failures.
It is built for the hard part of local agents: connecting on-machine LLMs to MCP tools in a way that is guided, inspectable, and operationally clear.

Why LocalAgent
Most friction in local agents is operational.
LocalAgent narrows that gap with:
- guided startup and provider auto-detection
- interactive TUI chat for local agent workflows
- explicit trust controls with approvals and audit trails
- replayable artifacts and inspectable event logs
- safe defaults with shell and write access disabled unless explicitly enabled
- built-in eval workflows and reviewable run outputs
- a beginner-friendly path without hiding advanced controls
Quick start
Start a supported local provider, then launch LocalAgent in the project directory you want to work in.
# 1) Install from the repo root
cargo install --path . --force
# 2) Launch LocalAgent in the workspace you want to work in
localagent
If your provider starts after LocalAgent is already open, press R in the startup screen to refresh provider detection.
Supported providers
- Ollama
- LM Studio
- llama.cpp server
Common commands
One-shot task
localagent --provider ollama --model llama3.2 --prompt "Summarize src/main.rs" run
Interactive TUI chat
localagent --provider ollama --model llama3.2 chat --tui
Verify a provider
localagent doctor --provider ollama
localagent doctor --provider lmstudio
localagent doctor --provider llamacpp
Enable trust controls
localagent --trust on --provider ollama --model llama3.2 chat --tui
Enable shell and write tools only when you intentionally want side effects.
CLI note
Global flags come before subcommands. See the examples above and the CLI reference for full command syntax.
Safety model
LocalAgent is designed to make side effects explicit.
- shell and write access are disabled unless explicitly enabled
--allow-shell-in-workdiris a narrower shell mode than--allow-shell- trust mode can enforce policy and approvals
- persistent runs remain inspectable through artifacts and logs
The goal is not to remove every restriction. It is to make local agents usable without hiding risk.
Provider setup
Before running LocalAgent, start a supported local provider and make sure a model is available.
See: Provider setup
Installation
Build from source
cargo build --release
Binary output:
- Windows:
target/release/localagent.exe - Linux/macOS:
target/release/localagent
Install globally from source
cargo install --path . --force
Releases
Prebuilt binaries are available in GitHub Releases.
For full install, updates, Windows troubleshooting, and verification steps, see:
Docs
Getting started
Runtime internals
Runtime policy
Additional docs
Contributing
Issues, feedback, and contributions are welcome.
Start here:
License
MIT
