Ogcode
The open-source, self-hostable AI coding agent that understands your codebase, uses real tools, remembers decisions, and ships changes — on your machine, with your models.
- Source repo
- prasenjeet-symon/ogcode
- Stars
- ★ 148
- Last updated
- 9d ago v0.60.0
- FARS reviewed
- Nov 08, 2026 +7 new
- License
- AGPL-3.0
- Primary language
- Go
- FA score
- 50/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer onboarding onto an unfamiliar codebase: have Ogcode map the project and outline files with exact line ranges instead of manually reading everything.
- Not a fit if
- Teams embedding it in proprietary products without buying the commercial license (AGPL-3.0 requires source disclosure for network use)
- Users unwilling to pay model API costs or run a local Ollama endpoint
- Website
- ogcode.in ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-24latest release v0.60.0 (2026-11-22)
- Source review
- 50/100 · Major gaps
What does this agent do, and when should you use it?
Ogcode is an open-source (AGPL-3.0, with a commercial license option), local-first AI coding agent and agent operating environment written in Go, operated through a browser interface served at http://localhost:9595. Before touching code, it maps the project and reads files by exact line ranges, keeping context tight and token cost low. It implements features across files, runs builds and tests, and investigates failures instead of retrying blindly, and can break objectives into tasks, run independent ones in parallel, and open pull requests for review. It pairs a memory system that recalls past decisions with reusable SKILL.md workflows, external MCP servers, built-in web search, and rich output including Mermaid diagrams, LaTeX, Plotly charts, and sandboxed HTML. Models are configured via environment variables or ogcode.json, supporting Anthropic, OpenAI, OpenRouter, and key-free local models through Ollama. Permissions are chosen per session — Ask, Auto, or Yolo — and deployment options include Docker plus documented remote-access boundaries such as SSH tunnels, authenticated reverse proxies, and VPNs.
Running ogcode serves the web UI at http://localhost:9595. The workflow: it first maps the project structure, then selectively reads files by exact line ranges to keep context focused; it then edits code across files, executes build and test commands, and investigates failures when they occur. It can turn an objective into tasks, run independent tasks in parallel, and open pull requests for review. Its memory recalls past decisions instead of replaying the full transcript, keeping long sessions affordable. It performs built-in web search and page reading, executes reusable SKILL.md skill workflows, connects to external MCP servers, and renders Mermaid diagrams, LaTeX, PDFs, Plotly charts, and sandboxed HTML with downloadable artifacts. Providers are detected from environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, OLLAMA_BASE_URL) or from ogcode.json / ~/.config/ogcode/config.json, with environment variables taking precedence. Every tool execution is gated by a per-session permission mode: Ask (approve each step), Auto (risk-gated), or Yolo (no prompts).
- A developer onboarding onto an unfamiliar codebase: have Ogcode map the project and outline files with exact line ranges instead of manually reading everything.
- An engineer delivering a whole feature: split the objective into tasks, run independent ones in parallel, and open pull requests for review.
- A privacy-conscious team: run with Ollama so code and session data stay local with no API key.
- A developer debugging flaky builds: let the agent run tests and investigate failures rather than retrying blindly.
- A user on a remote server: reach a deployed instance through an SSH tunnel, authenticated reverse proxy, or VPN from the browser.
- A team standardizing workflows: capture repeatable processes as SKILL.md files with per-skill permissions (e.g. deploy-prod set to ask).
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://ogcode.in/install.sh | shwinget install prasenjeet-symon.ogcodeirm https://ogcode.in/install.ps1 | iexgo install github.com/prasenjeet-symon/ogcode@latest
- Environment variables
ANTHROPIC_API_KEY- Config files
~/.ogcodeogcode.json~/.config/ogcode/config.json- Install notes cover
- Windows · macOS · Docker
How do you install or deploy this agent?
One-line install script:
curl -fsSL https://ogcode.in/install.sh | shOr via package managers:
brew tap prasenjeet-symon/tap && brew install ogcodewinget install prasenjeet-symon.ogcodeOn Windows without winget:
irm https://ogcode.in/install.ps1 | iexOn any OS with Go:
go install github.com/prasenjeet-symon/ogcode@latestBuilding from source requires CGO_ENABLED=1 (the Swift tree-sitter binding is cgo). Alternatively run the container:
docker run -p 9595:9595 \
-v ~/.ogcode:/root/.ogcode \
-v "$(pwd):/workspace" -w /workspace \
ghcr.io/prasenjeet-symon/ogcode:latestThe image is also on Docker Hub as prasenjeetsimon/ogcode:latest.
How do you use this agent?
Set at least one provider environment variable:
export ANTHROPIC_API_KEY=sk-ant-...Or use a local model with no API key:
ollama serve
ogcodeStart it and open the web interface:
ogcode # serves the UI on http://localhost:9595Project settings live in ogcode.json at the project root, global settings in ~/.config/ogcode/config.json; environment variables override both:
{
"providers": {
"ollama": { "baseUrl": "http://localhost:11434" },
"anthropic": { "apiKey": "sk-ant-..." }
},
"skills": {
"paths": ["./team-skills"],
"permissions": { "deploy-prod": "ask" }
}
}Pick a permission mode per session: Ask (approve each step), Auto (risk-gated), or Yolo (no prompts). For remote deployment, never expose the server unauthenticated; a recommended boundary is an SSH tunnel:
ssh -L 9595:localhost:9595 user@your-serverOG Lab's OGX subscription plan can also be connected from the settings screen; its models run through OG Lab's gateway with no environment variable needed.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Local-first by design: code and session data stay on your machine; only conversation content goes to the provider you configure, and Ollama enables fully key-free local operation.
- Token-efficiency architecture: it maps projects and reads files by exact line ranges, and its memory recalls decisions instead of replaying full transcripts.
- Granular control: per-session Ask / Auto / Yolo permission modes plus per-skill permissions (e.g. deploy-prod set to ask).
- Complete deployment story: brew / winget / Go / Docker install paths, a remote deployment guide (SSH tunnel, reverse proxy, VPN), and control-plane docs for hosted multi-user setups.
- The license changed to AGPL-3.0-only from v0.37.0: running a modified version over a network triggers source-disclosure obligations, and embedding in proprietary products requires the commercial license — assess before migrating.
- Source builds require CGO_ENABLED=1 due to the Swift tree-sitter cgo binding, an extra constraint for pure-Go build environments.
- You must supply model access yourself: either paid API keys (Anthropic/OpenAI/OpenRouter) or your own Ollama instance.
- Remote deployment carries real risk: the agent can read/modify files and run commands, and the docs explicitly warn against unauthenticated public exposure — you must build the SSH/reverse-proxy/VPN boundary yourself.
How does this agent compare with similar options?
The README names no specific competitors, but its positioning — 'the open-source, self-hostable AI coding agent' — differentiates it from hosted coding assistants on three documented axes: you choose the model (including key-free local Ollama), your code and session data stay local, and execution is governed by per-session Ask/Auto/Yolo permissions with documented remote-deployment boundaries.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Ogcode This agent | 50 · Major gaps | CLIFree + model costs | ★ 148 | 9d ago | Go | OpenAI API · Claude API |
| iPolloWork | 76 · Good | Desktop appFree + model costs | ★ 7.6k | 1d ago | TypeScript | — |
| TITAN Agent Framework | 48 · Major gaps | CLIFree | ★ 19 | 1mo ago | TypeScript | OpenAI API · Claude API |
| Synapse AI — Multi-Agent Orchestration Platform | 58 · Major gaps | CLIFree + model costs | ★ 344 | 1d ago | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README states that the agent can read and modify files and run commands, and offers Ask, Auto, and Yolo permission modes. Per-step approval in Ask supports user confirmation, but Yolo has no prompts and Auto is only summarized as risk-gated, so least privilege and confirmation are not fully established. The README says conversation content is sent to the configured model provider and advises protecting keys and avoiding unauthenticated public exposure; the sample does not show concrete data-flow controls or secret-storage implementation. The dependency list is broad, but no security audit or supply-chain pinning is visible in this sample. Web research, MCP, and deployment can have external effects, while authorization boundaries and recovery are not fully documented here. A source excerpt shows a corrupt control-plane database being moved aside and recreated, providing limited recovery. Attribution is mainly through README links and license statements; publisher identity and maintenance responsibility remain unclear.
The README, go.mod, and CI workflow show Go, CGO, and Node build requirements and automated build/test steps, but the Go requirement is 1.26.5 while CI selects 1.26.1, a visible inconsistency. Installation paths cover scripts, package managers, Go, and containers, but dependency availability is not established by the sample. Control-plane code returns configuration and storage errors and logs, quarantines, and recreates a corrupt database, supporting moderate failure diagnosis; the sample does not show complete product behavior.
The README identifies coding, codebase understanding, web research, memory, and remote deployment scenarios, and supports local Ollama plus several API providers, giving useful scenario and environment coverage. Permission modes and the warning about public exposure define some boundaries, but risks such as unlimited default max-turns and prompt-free Yolo mode are only lightly explained. Skill samples include clear triggers for Firebase deployment and browser pairing, but also broad or apparently unrelated Firebase skills, so overall trigger precision is only partial.
The README is organized around installation, configuration, security, deployment, and licensing, and links to detailed docs. Install notes include cross-platform commands and a CGO requirement, though the one-line curl pipe has no verification guidance visible in the sample. Product, command, and configuration names are mostly stable. The README provides configuration and SSH-tunnel examples and security cautions, but no full FAQ. It clearly warns about unauthenticated remote exposure, secrets, and isolation. LICENSE contains the AGPL-3.0 text; the README explains the earlier MIT range and commercial-license path, earning full credit for license clarity. Release badges and version ranges provide partial version information, but no changelog is included in the sample. The README points to contribution guidance and a security issue channel; maintenance ownership is only partly clear because publisher identity is unverified and no maintainer responsibility is specified.
The README describes a usable browser interface, one-shot command, and JSON output mode. Codebase mapping, multi-file changes, memory, and research could provide clear coding-agent value if they work as described; evidence is mainly product claims and a UI demonstration, so actual marginal benefit is not established by this sample. Multiple model, local, and container options can help users choose cost and privacy tradeoffs, but unlimited default turns, external model charges, and operating costs are not sufficiently quantified.
Key README capability and safety claims are traceable to documentation links, configuration examples, the CI workflow, and some control-plane source. The CI file documents configured build and test steps, but this review did not execute them. Cross-source support is limited: for example, the README's permission claims are not accompanied by sampled permission implementation files, and skill files may be repository content rather than evidence of core product behavior. The README distinguishes local data from conversation content sent to the model provider. This review separates that product claim from the database-recovery behavior directly shown in code, while other feature claims remain insufficiently corroborated.
- This agent can read and modify project files and run commands; review session permissions, avoid exposing an unauthenticated service, and isolate untrusted code.
- The README says conversation content is sent to the configured model provider; check that provider's data policy and potential costs.
- The Go version requirement differs from the version configured in CI; this was a static review with no build or tests executed.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Release Notes — v0.60.0 Minor: A finished turn is summarized for the next one A turn used to end and leave nothing behind but its messages, so the next turn re-read the thread cold — or missed what the last one actually decided. Each completed turn now gets a digest, synthesized in the background after the turn ends and stored in a new turn_summary table (migration 082), and the next turn waits briefly for the in-flight summary before injecting the recent window as context, so the agent remembers what it just did. The window defaults to two summaries and is tuned with …View on GitHub ↗ -
Release notes excerpt
Changelog * b90c17d2f38a79c16315c22a89fe8e188a039b45 chore(release): v0.59.5View on GitHub ↗ -
Release notes excerpt
Release Notes — v0.59.4 Major: A screen recording is read as a timestamped timeline Last release gave a still picture an eye. A recording was still a dead end: an .mp4 of the failing flow, a demo, a tutorial or a slide deck is a binary file, so read refused it and no other tool in the set could look inside. The new analyze_video tool closes that gap with the same shape — one fixed vision call of its own, text back — stretched over time. It samples the recording with ffmpeg at fps (one frame per second by default, max_frames 40), then keeps …View on GitHub ↗
FAQ
Do I have to pay to use it?
Can it run without any API key?
ollama serve), then run ogcode; it uses the local model via OLLAMA_BASE_URL or the default local endpoint, with no API key required.What is the difference between the permission modes?
Is remote deployment safe?
Does my data leave my machine?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.