A general-purpose agent in one static Go binary.
A desktop app, a console TUI, an ACP server for editors, an OpenAI-compatible API with an embedded web UI, a Telegram gateway, a cron scheduler, a swarm relay for fleets of nodes and a remote mode, all over the same sessions.
ReAct loop, filesystem and shell tools, MCP, rules, skills, subagents, hooks, background tasks, long-term memory, context compaction and project trust for what arrives with a checkout.
| Desktop (1920×1080) | Mobile (390×844) |
|---|---|
|  |  |

Coddy is a **harness**: the same agent core is reachable from the desktop app with `coddy desktop`, from a terminal through the console TUI, from an editor over the [Agent Client Protocol](https://agentclientprotocol.com/), from a browser or any OpenAI client over HTTP, from Telegram through the messenger gateway, and from cron through the scheduler. Every surface shares the sessions under `~/.coddy`, so a conversation started in a chat is live in the browser and can be continued in either. It runs in `scratch` and distroless images with a read-only root filesystem, needs no runtime, and is built for fleets of containers as much as for one laptop.
## Install
```bash
curl -fsSL https://coddy.dev/install.sh | bash
```
```powershell
irm https://coddy.dev/install.ps1 | iex
```
The installer puts `coddy` on `PATH`, creates `~/.coddy/config.yaml` from the release `config.example.yaml` when it is missing and, on Linux, FreeBSD and macOS, installs the man page and the shell completions. Every release also publishes `.deb` and `.rpm` packages, a Homebrew cask in the tap [coddy-project/homebrew-coddy-agent](https://github.com/coddy-project/homebrew-coddy-agent), archives for Linux, macOS, Windows, [FreeBSD](docs/getting-started/freebsd.md) and [Android under Termux](docs/getting-started/android.md), and the image `ghcr.io/coddy-project/coddy-agent` for `docker compose up -d`. The packages and the cask recommend tmux, for a console session that outlives the terminal, without installing it. Details for each route are in [Install](docs/getting-started/install.md) and [Docker](docs/getting-started/docker.md); building from source is `make build TAGS="http ui scheduler memory cli gateway swarm metrics browser desktop"` after `git clone`, see [Build from source](docs/contributing/build.md).
On macOS, Homebrew installs it from Coddy's own tap and `brew upgrade` follows the releases:
```bash
brew install coddy-project/coddy-agent/coddy
```
Then give it a model. The quickest way is the console itself: run `coddy` and type `/login`, which signs in to NeuralDeep (`/login codex`, `/login devin` or `/login opencode` for the others) and writes the provider and every model it serves into `~/.coddy/config.yaml` ([Console](docs/surfaces/console.md#signing-in-to-a-provider-login)). Or put a provider key into `~/.coddy/config.yaml`, or export `OPENAI_API_KEY` and let the defaults pick it up:
```yaml
providers:
- name: openai
type: openai
api_key: "${OPENAI_API_KEY}"
models:
- model: "openai/gpt-6.1-sol"
max_tokens: 1050000
reasoning_default: high
agent:
model: "openai/gpt-6.1-sol"
```
`coddy -t` checks the file and `coddy --dry-run` probes what it points at. Anthropic, NeuralDeep, ChatGPT sign-in through the Codex backend, a Devin account signed in through the browser ([Devin](docs/features/devin.md)), Ollama, llama.cpp and any other OpenAI-compatible server are covered in [Configuration](docs/getting-started/configuration.md). The first five minutes on every surface are in [Quickstart](docs/getting-started/quickstart.md); upgrades are `coddy update -y`, which ends with the release notes of every version it skipped over ([Update](docs/getting-started/update.md)).
## Surfaces
| Surface | Start it | What you get | Guide |
|---|---|---|---|
| Console | `coddy` | A terminal chat with streamed tool calls, permission prompts, a model picker, `!!` for a local shell, `coddy -c` to continue, `coddy -p "..."` for one-shot answers, `git diff | coddy -p "review"` and `coddy -i brief.md` for piped data and long prompts | [Console](docs/surfaces/console.md), [video](docs/assets/video/console.mp4) |
| Web UI and HTTP API | `coddy serve` | The embedded single-page app on `http://127.0.0.1:12345/`, OpenAI-compatible `/v1/*` endpoints and the `/coddy` REST surface, Swagger at `/docs/` | [Web UI](docs/surfaces/web-ui.md), [HTTP API](docs/reference/http-api.md), [video](docs/assets/video/web-ui.mp4) |
| Desktop window | `coddy desktop` | The web interface as an application window of its own, with chats as tabs, a loopback port it remembers across launches and a browser profile apart from your everyday one. Linux, macOS and Windows; on an X11 session the tab strip is the window's title bar | [Desktop window](docs/surfaces/desktop.md) |
| Editors | `coddy acp` | Zed, VS Code, Obsidian and scripts as ACP clients, with Coddy's modes, models, permissions and skills in the editor's composer | [Editors](docs/surfaces/editors.md), [Zed video](docs/assets/video/zed-acp.mp4), [VS Code video](docs/assets/video/vscode-acp.mp4) |
| Telegram | `coddy serve` with `gateways.telegram.enable` | A bot with per-user sessions, access levels and group isolation; the same chat is live in the web UI | [Telegram gateway](docs/surfaces/gateway.md) |
| Pachca | `coddy serve` with `gateways.pachca.enable` | A Pachca (Пачка) integration bot for direct chats, groups and threads; reads its events history, so no public address is needed | [Pachca gateway](docs/surfaces/pachca.md) |
| Scheduler | `coddy serve` with `scheduler.enable` | Cron jobs as Markdown files, each run a session of its own | [Scheduler](docs/operate/scheduler.md) |
| Swarm | `coddy serve` with `swarm.enable` | A relay that lists and reaches many Coddy nodes, including ones that can only dial out | [Swarm](docs/operate/swarm.md), [video](docs/assets/video/swarm.mp4) |
| Metrics | `coddy serve` with `metrics.enable` | A Prometheus exporter on a port of its own: provider calls and tokens, turns, background tasks and the session disk, with alert rules for the common failures | [Monitoring](docs/operate/monitoring.md) |
| Remote | `coddy --remote host:port` | The console, an editor or the browser driving a `coddy serve` on another machine | [Remote mode](docs/operate/remote.md) |
`coddy serve` runs whatever `config.yaml` enables in one process. On Linux, `coddy serve install` runs it as a systemd user service of your account, working in `~/Coddy`; on Windows, the same command registers an SCM service under the `NT SERVICE\Coddy` virtual account (`coddy serve uninstall` removes either service). Elsewhere `coddy serve --daemon` keeps it running in the background with `status`, `stop` and `restart` ([coddy serve and the daemon](docs/operate/serve.md)).
## What it does
- **Your own browser**: the chats work in your Chrome, Yandex Browser or Firefox through the Coddy for Browser extension - open tabs, read pages, click, type, take screenshots and move files - in the tab groups you share, after you approve each website; its side panel is the web UI next to the page, and a console, an editor or another node of the swarm reaches the same browser through its home server ([Coddy for Browser](docs/features/browser.md)).
- **Three operating modes**: `agent` with every tool, `plan` for planning and text files, `ask` for read-only research, switched from any surface ([Operating modes](docs/features/modes.md)).
- **Rules and project files**: the first of `.coddy/rules`, `.agents/rules`, `.cursor/rules`, `.claude/rules` and `.codex/rules` that holds rules, so a mirror kept for another agent is not loaded twice, and nested `AGENTS.md` are picked up as the agent works without moving the cached system prompt; your own `~/.coddy/AGENTS.md`, `~/.coddy/DESIGN.md` and `~/.coddy/rules` apply in every workspace ([Rules and instructions](docs/features/rules.md)).
- **Skills**: `SKILL.md` packs become slash commands. Six ship inside the binary and are there on the first run - `/rpa-init`, `/rpa-feat`, `/rpa-bugfix`, `/rpa-gen-rules`, `/configure-coddy` and `/crossreview` (a quorum code review over external code-agent CLIs and internal reviewers) - and more install from skills.sh, the skillsbd registry or any repository ([Skills](docs/features/skills.md)).
- **Subagents**: `spawn_agent` delegates a bounded task to a child with its own context and session, tools and permissions only narrowing; the web UI and parent can send text and files to eligible children, live siblings with matching authority can exchange messages and file snapshots, and `resume` continues a run in its own session ([Subagents](docs/features/subagents.md)).
- **Session goal**: `/goal ` keeps the agent working until a second model, judging the tool results rather than the agent's claims, finds the objective met and a read-only verifier confirms it in the files; a watchdog cuts stalled or looping turns, and the goal shows in the web UI and the console ([Session goal and supervisor](docs/features/session-supervisor.md)).
- **Feature worktrees**: `worktree_open` moves the active session into the worktree of a branch, creating one from the fresh default branch (or stacked on the current commit) when there is none, `worktree_list` shows where every worktree stands, and `worktree_exit` brings the session back to the main checkout, removing a worktree that holds nothing of its own (uncommitted work an explicit removal discards is kept as a snapshot); a new worktree gets the ignored files `.worktreeinclude` names, and a subagent can work in a worktree of its own; `/worktree` does the same for the operator, and the web UI shows the branch under the main project, with the way back on the plate ([Git worktrees](docs/features/worktrees.md)).
- **JavaScript UI extensions**: install one ZIP with JS, CSS and HTML, enable it in Settings and open its pages and actions from the Extensions menu; code runs with the web app's access, at the operator's risk ([Extensions](docs/features/extensions.md)).
- **Hooks**: your own commands at every lifecycle point, in Claude Code's `hooks.json` shape, able to deny, approve or rewrite a tool call ([Hooks](docs/features/hooks.md)).
- **MCP servers** over stdio, streamable HTTP and SSE, from the global and project `mcp.json` files or the editor, with a trust gate for what arrives with a checkout; connected all at once and, in the console, after the first frame ([MCP servers](docs/features/mcp.md)).
- **Mentions**: `@` points at a file anywhere on disk, a line range, a folder, another session, a rule, a subagent or a web page, with the same fuzzy completion in the console and the browser; each is read once into the message that names it, so the provider's prompt cache holds ([Mentions](docs/features/mentions.md)).
- **Documentation built in**: this documentation ships inside the binary - a reader in the web UI, F1 in the console, `coddy docs` in the shell - searched offline, and the agent looks itself up with its own `coddy_docs_search` and `coddy_docs_read` tools or a `@coddy:` mention ([Built-in documentation](docs/features/built-in-docs.md)).
- **Pictures in a prompt**: paste a screenshot with ctrl+v in the console or into the web composer and mark it up first - pencil, ellipse, rectangle, arrow, text, crop, rotate and undo - in a window on the desktop or over the chat ([Pasting and marking up pictures](docs/features/picture-markup.md)).
- **Message queue**: steer a running turn at its next step or queue a separate turn after it, with images attached; every browser and console viewing the session sees the same queue ([Message queue](docs/features/message-queue.md)).
- **Background tasks**: detached commands and subagent runs that wake the agent when they finish, in the Tasks panel of the web UI and `/tasks` in the console ([Background tasks](docs/features/background-tasks.md)).
- **Canvas**: pages the agent writes run as live frames on a board in the Files window of the web UI, at phone, tablet and desktop sizes at once; point at an element to ask for a change, and the agent reads the browser's console itself. Every board is an Obsidian `.canvas` file of the workspace, so it is in git and keeps its notes, groups and arrows ([Canvas](docs/features/canvas.md)).
- **Preview server**: "run this on a web server, I want to try it myself" - the agent serves the project directory on a free localhost port and hands you the link, no `python -m http.server` needed ([Preview server](docs/features/preview-server.md)).
- **Context compaction and long-term memory**: `/compact` and automatic summarisation at a threshold, result eviction with `keep_result`, a memory subagent that runs per turn in the background, recalls what the notes hold and saves what you ask it to keep ([Compaction](docs/features/compaction.md), [Memory](docs/features/memory.md)).
- **Self-configuration**: the agent edits its own YAML through staged `config_*` tools; nothing lands until you approve the commit ([config.yaml reference](docs/reference/config.md)).
- **Sessions everywhere**: bundles on disk, resume from any surface, history rewind on message edit, `/export` to Markdown, HTML or JSON ([Sessions](docs/features/sessions.md), [Session export](docs/features/session-export.md)).
- **Any model**: OpenAI, Anthropic, NeuralDeep, ChatGPT through Codex, the models of a Devin account ([Devin](docs/features/devin.md)), a local ACP agent such as Claude Code, Codex or OpenCode served as a model ([ACP agent as a model](docs/features/acp-provider.md)), Ollama, llama.cpp, vLLM and every OpenAI-compatible API, with reasoning levels and multimodal attachments per model and retries that honour `Retry-After` ([Configuration](docs/getting-started/configuration.md)).
- **Usage and limits**: the quota behind the current model in the console footer and in the web UI for providers that publish one (NeuralDeep, Codex, Devin, and OpenAI-compatible endpoints with `GET /v1/limits`), and a turn that hits a limit can wait for the reset and resume by itself ([Console](docs/surfaces/console.md), [config.yaml reference](docs/reference/config.md)).
- **Config check, dry run and hot reload**: `coddy -t` validates `config.yaml` against the embedded schema with `file:line:col` and a fix line, `--dry-run` probes paths, providers and models, ports, MCP servers, the Telegram token, remotes and swarm joins before anything starts, and a running `coddy serve` picks up an edited file without a restart ([Configuration](docs/getting-started/configuration.md), [coddy serve](docs/operate/serve.md)).
- **Fleets**: a swarm relay lists and reaches many nodes, mounts their sessions into one list, routes across rings and pulls in nodes that can only dial out through a reverse tunnel; `--remote` drives a `coddy serve` on another machine from the console, an editor or the browser ([Swarm](docs/operate/swarm.md), [Remote mode](docs/operate/remote.md)).
- **In the browser**: eight themes, English and Russian, `@` mentions and multimodal attachments in the composer, a History grouped by folder with tags, pins and an archive, a plan document card, a Tasks panel, the documentation reader, a scheduler editor and a swarm map with the topology; it installs as an app and notifies you when the agent finishes or waits for you ([Web UI](docs/surfaces/web-ui.md)).
- **Closed when it is on a network**: a bearer token gates the API for clients, and an optional password sign-in gates the browser - `coddy serve set-password`, or `CODDY_HTTP_USER` / `CODDY_HTTP_PASSWORD` in `~/.coddy/.env`, with one-time codes from an authenticator app and backup codes on top (enrolled in the web UI under Settings, Authentication) - so a `coddy serve` on `0.0.0.0` is not readable by whoever finds the port ([Remote mode](docs/operate/remote.md#the-sign-in-form), [Security and trust](docs/operate/security.md)).
Project trust is one decision for MCP servers, hooks and subagents that arrive with a repository: nothing from a checkout runs until you approve that exact file ([Security and trust](docs/operate/security.md)).
## Documentation
| Goal | Start here |
|---|---|
| Install and run it for the first time | [Quickstart](docs/getting-started/quickstart.md), [Install](docs/getting-started/install.md) |
| Read this documentation offline, from the app, the console or the shell | [Built-in documentation](docs/features/built-in-docs.md) |
| Give it a model or check a config file | [Configuration](docs/getting-started/configuration.md), [config.yaml reference](docs/reference/config.md) |
| Use it from the desktop app, a terminal, a browser, an editor or Telegram | [Desktop](docs/surfaces/desktop.md), [Console](docs/surfaces/console.md), [Web UI](docs/surfaces/web-ui.md), [Editors](docs/surfaces/editors.md), [Telegram gateway](docs/surfaces/gateway.md) |
| Run it as a service or reach it from elsewhere | [coddy serve](docs/operate/serve.md), [Remote mode](docs/operate/remote.md), [Swarm](docs/operate/swarm.md), [Scheduler](docs/operate/scheduler.md) |
| Bound what it may execute | [Security and trust](docs/operate/security.md), [Operating modes](docs/features/modes.md) |
| Teach it your project | [Rules](docs/features/rules.md), [Skills](docs/features/skills.md), [Subagents](docs/features/subagents.md), [Hooks](docs/features/hooks.md), [MCP servers](docs/features/mcp.md) |
| Look something up | [CLI reference](docs/reference/cli.md), [Environment variables](docs/reference/environment-variables.md), [Slash commands](docs/reference/slash-commands.md), [Tools](docs/reference/tools.md), [HTTP API](docs/reference/http-api.md), [ACP protocol](docs/reference/acp-protocol.md) |
| Fix something | [Troubleshooting](docs/getting-started/troubleshooting.md), [Releases](https://github.com/coddy-project/coddy-agent/releases) |
| Combine features for a task | [Tutorials](docs/tutorials/coddy-in-ci.md), the swarm ones included: [a relay and its nodes](docs/tutorials/swarm-relay-and-nodes.md), [a chain of relays](docs/tutorials/swarm-multi-hop.md), [working with remote nodes](docs/tutorials/swarm-remote-nodes.md), [Android phones as nodes](docs/tutorials/swarm-android-nodes.md) |
| Change Coddy itself | [Contributing](CONTRIBUTING.md), [Architecture](docs/contributing/architecture.md), [AGENTS.md](AGENTS.md), [DESIGN.md](DESIGN.md) |
The whole map is [docs/README.md](docs/README.md). Agents that read documentation get the same pages as and , and the config file carries a JSON Schema at for editor validation. How Coddy compares with other agent harnesses is on [coddy.dev/compare](https://coddy.dev/compare/).
## Contributing
Bug reports and pull requests are welcome at [github.com/coddy-project/coddy-agent](https://github.com/coddy-project/coddy-agent). [CONTRIBUTING.md](CONTRIBUTING.md) covers the development environment, the test runs and what a change must carry; [AGENTS.md](AGENTS.md) is the map coding agents read before they touch the tree.
## License
MIT, see [LICENSE](LICENSE).