egoist/oi
A single-binary Zig coding agent with file-aware rewind and ACP/MCP integration
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
oi packages a Zig coding-agent core as one native binary, with quickjs-ng and SQLite compiled in and TLS handled by Zig. The stripped, size-optimized build is about 2.9 MiB; the Linux musl build is fully static. That footprint describes the packaged agent, not the tools or model runtimes it may invoke.
The terminal UI and one-shot oi -p are direct entry points. Editors use ACP over stdio through oi rpc; oi serve --web exposes the local HTTP API and browser UI, and a C library supports native embedding. The first-turn tool set includes file operations, shell execution, search, sub-agent delegation, tool_search, and codemode. MCP servers, skills, custom commands, hooks, and JavaScript plugins provide separate extension surfaces.
Key Capabilities & Differentiators
oi can switch providers within a session across services including Anthropic, OpenAI, Gemini, DeepSeek, and OpenRouter, as well as local runners such as Ollama and LM Studio. oi login codex and oi login grok offer supported subscription sign-in paths instead of API keys. The nine first-turn tools plus the system prompt use about 1.5k tokens, or about 1.2k with sub-agents disabled; installed skills add one prompt line apiece.
File changes are presented as diffs, and permission rules can allow, ask, or deny actions. Rewind restores files to the selected session point; the next prompt creates a new branch. Sub-agents can run in parallel, in the background, or in their own Git worktrees. Rewind is useful for recovering edits, but it should not be treated as rollback for external effects of shell commands.
Trade-offs & Limitations
Compared with staying on an established Claude Code workflow, oi is worth evaluating when in-session provider switching, ACP integration, or file-aware rewind are decisive. Those features do not establish parity with an existing tool setup; test model choice, MCP integrations, approval prompts, and recovery on representative tasks. A hosted model keeps inference off the workstation but still entails provider terms, network dependence, and usage costs. A local runner puts inference sizing on the operator.
The shell sandbox is optional: --sandbox on uses Landlock on Linux or Seatbelt on macOS, with out-of-workspace writes subject to approval. A Windows installer exists, but that does not establish Windows sandbox parity. The MIT license allows commercial use and redistribution under its notice requirements; review the terms of any provider or subscription separately.
Hardware & Deployment Guide
Run the native binary for the terminal UI or one-shot use. Source builds use Zig 0.17.1 with zig build -Doptimize=small. Bun is optional: bun install && bun run build:web prepares the web UI for the next Zig build to embed. oi serve --web binds to 127.0.0.1:4096 by default; review access controls before using --host to expose it to the network or tailnet. The agent is self-hostable, but offline inference requires a local model backend configured in advance.
The recent releases matter for editor and multi-project use. v0.1.14 added ACP v1 alongside v2. v0.1.15 fixed oi rpc and oi serve so each session uses its own directory for commands, path resolution, AGENTS.md, and write permissions instead of inheriting the server's startup directory. v0.1.16 fixed delivery of background reports arriving during the last model call.
--sandbox on adds Landlock or Seatbelt command restrictions on Linux or macOS.oi rpc supports ACP v1/v2 over stdio; oi serve --web exposes a local HTTP API and web UI; a C library supports embedding.Teams that want a self-hosted coding CLI with provider choice, reviewable edits, file-aware recovery, and ACP or MCP integration.
You need verified cross-platform sandbox parity, a remote web deployment without your own access-control review, or a drop-in replacement for an established Claude Code workflow.
Quick Start & Installation
curl -fsSL https://oi.egoist.dev/install.sh | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| oi ★ | 115 | — | Zig | MIT | A single-binary Zig coding agent with file-aware rewind and ACP/MCP integration |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| oh-my-pi | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/egoist/oi.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about oi
Which interface should I use for an editor, an application, or additional tools?
oi rpc over stdio for ACP editor integration. ACP v1 and v2 are supported from v0.1.14; v0 is refused. Use oi serve --web for the local HTTP API and browser UI, the C library for native embedding, and MCP to add tools to the agent rather than to connect an editor.How much RAM or VRAM should I budget?
Can we self-host oi commercially and redistribute it?
When should we evaluate oi instead of Claude Code?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy