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.

Stars
★ 148
Last updated
9d ago v0.60.0
FARS reviewed
Nov 08, 2026 +7 new
License
AGPL-3.0
Primary language
Go

At a glance

How it runs
CLISelf-hosted service
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
Go (for go install / source builds)Docker (optional container deployment)Ollama (optional local models)Shell / CLINetwork accessLocal filesystemMCP Server
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)

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).

  1. A developer onboarding onto an unfamiliar codebase: have Ogcode map the project and outline files with exact line ranges instead of manually reading everything.
  2. An engineer delivering a whole feature: split the objective into tasks, run independent ones in parallel, and open pull requests for review.
  3. A privacy-conscious team: run with Ollama so code and session data stay local with no API key.
  4. A developer debugging flaky builds: let the agent run tests and investigate failures rather than retrying blindly.
  5. A user on a remote server: reach a deployed instance through an SSH tunnel, authenticated reverse proxy, or VPN from the browser.
  6. 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 | sh
  • winget install prasenjeet-symon.ogcode
  • irm https://ogcode.in/install.ps1 | iex
  • go install github.com/prasenjeet-symon/ogcode@latest
Environment variables
ANTHROPIC_API_KEY
Config files
~/.ogcode ogcode.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 | sh

Or via package managers:

brew tap prasenjeet-symon/tap && brew install ogcode
winget install prasenjeet-symon.ogcode

On Windows without winget:

irm https://ogcode.in/install.ps1 | iex

On any OS with Go:

go install github.com/prasenjeet-symon/ogcode@latest

Building 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:latest

The 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
ogcode

Start it and open the web interface:

ogcode            # serves the UI on http://localhost:9595

Project 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-server

OG 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
50/ 100 5-point scale 2.5 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 7 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 12/29
Reliability 6/14
Adaptability 10/18
Convention 11/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention11 / 18 · 3.1/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 1525ca300575 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/ogcode.svg)](https://followagents.com/en/agents/ogcode)
<a href="https://followagents.com/en/agents/ogcode"><img src="https://followagents.com/badge/ogcode.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.60.0
    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 ↗
  2. v0.59.5
    Release notes excerpt
    Changelog * b90c17d2f38a79c16315c22a89fe8e188a039b45 chore(release): v0.59.5
    View on GitHub ↗
  3. v0.59.4
    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?
The software is free and open source (AGPL-3.0; releases up to v0.36.1 were MIT). Model costs depend on you: Anthropic/OpenAI/OpenRouter require your own API keys with per-use charges, while Ollama local models need no key. There is also an optional paid OGX subscription plan from OG Lab.
Can it run without any API key?
Yes. Start Ollama (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?
Permissions are set per session: Ask approves every step, Auto allows steps gated by risk level, and Yolo prompts for nothing. Write and shell access are high-risk, and the docs recommend reviewing permissions before enabling them.
Is remote deployment safe?
Ogcode can read/modify files and run commands, and the docs explicitly warn never to expose it unauthenticated to the public internet. Recommended boundaries: bind to localhost behind an SSH tunnel, use a reverse proxy with HTTPS and authentication, use a VPN such as WireGuard or Tailscale, or run high-risk work in Docker, a VM, or an isolated worker.
Does my data leave my machine?
Your code and session data stay local; only conversation content is sent to the model provider you configure, where that provider's privacy policy applies. With a local Ollama model, conversations stay on your machine too.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts