Connect Ollama and self-hosted models to OpenAB and supported ACP editors — Zed, JetBrains, ACP UI, Meuxe. Read code, edit files, and run tests — with execution limits, progress reporting, and optional session recovery. Same binary, same repo, same install as acp-bridge.
Connect to Ollama's native API or any OpenAI-compatible endpoint — pick a model that fits your hardware and workflow.
Configure tool policies, timeouts, and round limits. When a limit is reached, you get an honest partial result.
Long conversations and large tool outputs are managed. Enable session storage to reload conversations — and what was interrupted — after a restart.
You write code in your editor. Your editor spawns acp-bridge as a subprocess and talks to it through JSON-RPC over stdin/stdout — ACP v1 or v2, negotiated at init. acp-bridge talks to your local LLM (Ollama — native API included — llama.cpp, vLLM, LM Studio, or any OpenAI-compatible endpoint) over HTTP. Write/edit tool calls resolve beneath the session working directory with symlink/race checks at open time; reads canonicalize-then-check with a known racing-rename gap; shell commands run as your user, gated by the tool policy you configure. The capability matrix in docs/scope.md is the source of truth for what is implemented.
acp-bridge negotiates the protocol version with each Client at init time. The "verified" column separates simulated end-to-end suites (a test driving that client's wire shape) from real-client runs.
| Client | ACP version | acp-bridge wire | Verified |
|---|---|---|---|
| OpenAB | v1 | v1 | ✓ daily use — Discord → OpenAB → acp-bridge → Ollama on 0.10.0-rc builds; v0.10.0 soak pending |
| Zed | v1 | v1 | ✓ simulated e2e (zed_style.rs) |
| JetBrains IDEs | v1 | v1 | same v1 shape as Zed — real-client run pending |
| ACP UI | v1 | v1 | ✓ simulated e2e (inspector_style.rs) |
| ACP Inspector | v1 | v1 | ✓ simulated e2e (inspector_style.rs) |
| Meuxe | v1 | v1 | ✓ — issue #13 fixed |
| Codex CLI adapter | v1 (minimal) | v1 | ✓ simulated e2e (minimal_style.rs) |
| Claude Code (Claude Agent SDK) | v1 | v1 | interop verified manually |
| OpenCode | v2 (preview) | v1 (negotiated) | will negotiate v2 once OpenCode ships v2 |
acp-bridge negotiates ACP v1 or v2 on one code base — the Client sends its preferred protocolVersion at init and every subsequent notification uses the corresponding wire shape. Field-level differences and the pinned revision live in docs/scope.md.
cargo install acp-bridge
# or grab a binary from the GitHub releases page
LLM_BASE_URL=http://localhost:11434 # no /v1 suffix → Ollama native API
LLM_MODEL=qwen3:8b # any model you pulled
LLM_MODEL_CONTEXT=32768 # match the model's num_ctx
LLM_SESSION_DIR=~/.local/share/acp-bridge/sessions # opt-in persistence
Without a /v1 suffix acp-bridge uses Ollama's native /api/chat — streaming, timing evidence, and model probing come with it; a /v1 (or any OpenAI-compatible) URL uses /chat/completions. Set LLM_SUPPORTS_IMAGE=true only for models that actually accept images. Point your client's agent command at the binary — per-client config is in the README. Upgrading or downgrading is replacing the binary — back up LLM_SESSION_DIR first; restore compatibility is only guaranteed for version combinations that have actually been verified.
| Layer | Status |
|---|---|
| Test suite | ✓ 188 unit + 43 integration tests, clippy/fmt clean — on candidate 6f12f84, 2026-11-26 |
| Client wire shapes (v1/v2) | ✓ simulated e2e suites per client style (Zed / inspector / minimal / JetBrains-shape) |
| Ollama backend | ✓ live e2e on a real endpoint — streaming, tool journal, steer, image delivery |
| Session store — Linux | ✓ linux-arm64 k8s pod: lock contention, pause/resume, kill -9, manifest rollback, directory-swap write races |
| Session store — Windows | ✓ Windows 11 x64: LockFileEx contention, junction paths, 3000-write race with zero escapes, non-ASCII paths, taskkill → interrupted restore |
| Not yet verified | UNC paths, Windows Ctrl+C console events, vision comprehension end-to-end, multi-process race injection, JetBrains real-client run, v0.10.0 candidate soak in production |
0.10 shipped the first harness slice — bounded execution, tool policy, context management, durable sessions, Ollama native streaming, mid-turn steer. What comes next is whatever docs/scope.md lists as pending — this section is direction, not a schedule.
web_fetch) into a checkable citation path.partial status, capability tool policy + path deny globs, token-budgeted context with summaries and tool-output artifacts, flock-owned session snapshots with crash markers and a tool journal, Ollama native streaming, mid-turn steer, and cancel/timeout control. ACP v1/v2 wire-compatible; single Rust executable.tool_calls field — the agent stalled on such rounds. acp-bridge now strips think-tag scaffolding and recovers embedded tool-call JSON (fenced or bare) into the normal tool dispatch. 185 tests passing.session/close and session/list, Ollama native tool.arguments object handling, and web_fetch redirect re-validation. 171 tests passing.protocolVersion at init; emit v1 or v2 wire shape accordingly. Same code base, dispatch by version.v2 wire shape diff, negotiation rules, code review prompt for LLMs.
Hands-on guide: install, drive, and wire a 125B local model into Zed as a coding agent via acp-bridge.
docs/scope.mdSource-of-truth capability matrix. What acp-bridge does, what it does with caveats, and what it deliberately does not.