opentide.ai · Quick start · Connect your agent · What you get · How it works · Ship it · Docs
You asked your agent for a feature. It said "done". Now you're reading 900 lines of diff, running the tests it didn't run, and finding the bug it didn't mention.
OpenTide is the agent-native web framework that fixes that. Connect any coding agent that speaks MCP (Claude Code, Codex, Cursor, Windsurf and the rest) and it builds inside a running app that keeps it honest. Apps are TypeScript today; Python support is coming next.
- Fewer bugs. A change can't be marked done until tests the server ran itself cover every point in the plan.
- Fewer review rounds. Every change comes with its plan, its acceptance criteria and its evidence. Check the proof instead of reverse-engineering the diff.
- Spend fewer tokens. The agent asks the app what exists instead of rereading your codebase, edits one function at a time, and gets errors that say exactly what to fix.
- Own the result. One command exports a plain Node app. No platform fee, no lock-in, no API key. Bring the agent you already pay for.
The installer brings everything it needs and puts opentide on your PATH. You
only need curl. Open a new terminal after installing.
curl -fsSL https://github.com/opentideai/opentide/releases/latest/download/install.sh | sh
opentide scaffold ~/apps "Todo App" && cd ~/apps/todo-app
claude mcp add opentide -- opentide mcp
claudeAsk for something real:
Add a todos API with create, list and complete, backed by a table, with tests.
What you get back isn't a summary to take on faith. It's a finished change with a plan, passing tests the server witnessed, and the evidence linked to each acceptance criterion, already saved to files you commit.
OpenTide works with any coding agent that speaks MCP. Each config below starts a small stdio bridge, which attaches to the project's server or starts one if none is running.
Claude Code (registers it for that project's directory)
cd ~/apps/todo-app && claude mcp add opentide -- opentide mcpClaude Code plugin (the server in every OpenTide project, plus
/opentide:start, /opentide:change, /opentide:land and /opentide:recover)
claude plugin install opentide --marketplace opentideai/opentideNeeds Claude Code 2.1.275 or later. Older versions take two steps inside a
session: /plugin marketplace add opentideai/opentide, then
/plugin install opentide@opentide. Outside an OpenTide project the server
still connects, with no tools.
Codex (the CLI and the IDE extension share ~/.codex/config.toml)
codex mcp add opentide -- opentide mcp --project ~/apps/todo-appClaude Desktop: download
opentide.mcpb,
double-click it, and pick a folder for your apps when Desktop asks (say
~/apps); Claude creates and opens apps there. It runs the OpenTide you
installed above; if that's missing, ask Claude to use OpenTide and it tells you
how to install it.
Cursor (paste into .cursor/mcp.json)
opentide mcp --print-config cursor --project ~/apps/todo-appAny other MCP client (Windsurf, VS Code, Zed, Cline, your own): add a stdio server with
- command:
opentide, or the full path~/.opentide/bin/opentideif the client doesn't inherit your shell's PATH - args:
mcp --project /absolute/path/to/your/app
Clients that only speak HTTP can connect to opentide serve directly; see
docs/mcp-connect.md for the HTTP transport, tokens, and
what the agent is told on connect.
The agent can't call a change finished on its own say-so.
complete_changesetrefuses until every acceptance criterion is backed by evidence.- Evidence must cite attestations that the server mints when it runs
run_tests,check_export_typesorverify_formal_specs. Edit the code afterwards and the attestation goes stale. - Before an agent edits something,
search_changestells it why the code is the way it is, so it doesn't undo a fix. opentide buildboots the build and smoke-tests its routes before you ship.
Every change is a changeset: a title, a plan with steps, acceptance criteria, a verification plan, and the evidence that it was met.
- Read what was intended and what was proven, not a wall of diff.
- Every edit records its rationale, searchable later with
search_changesandget_change. project_statusgives one verdict on the project's health, andget_changeset_contextshows a change's plan and progress.- The gate runs advisory, graduated or strict. You decide how hard it bites.
Most agent tokens go on rediscovering your code. Here the agent asks.
list_routes,list_handlersandlist_schemasreturn the app's structure directly, with no file crawling or grep loops.- Edits are per entity: one handler, one route, one schema. The agent doesn't rewrite whole files to change one function.
- Errors are structured and specific. A mistyped argument comes back as
INVALID_ARGUMENTSnaming the right key, so it's fixed on the first retry. - The agent's prompt carries the tools it uses. 58 core tools are listed by
default; git, docs, tasks and the rest are one
set_toolsetcall away.
No build-and-restart loop between "written" and "running".
- A handler is serving the moment it's defined. A route is on the preview port the moment it's registered. A schema change has run the moment it lands.
- The agent checks its own UI work with browser screenshots and scripted UI
tests (
screenshot_app,test_app) against the running app. - Open
localhostand click around while it's still working.
Agents go off the rails. Getting back is one call.
undo_changeandundo_turnstep back one change or a whole agent turn.- Abandoning a changeset rewinds the code, schema and files to where they started, and your app's data stays.
- Agent crashed, restarted, or you ran
/clearmid-change? The next session callsadopt_changesetand carries on with the plan and progress intact. take_snapshotandrestore_snapshotfor anything bigger.
Two agents, one project, no merge hell.
start_taskforks the project for a second agent, with its own server and preview.merge_taskreplays the fork onto main and completes it only if main's own tests pass.- If two forks change the same thing, the second merge is refused with the conflicts named. No silent overwrites.
- One writer at a time on main, enforced, so agents can't trample each other.
opentide exportwrites a standalone Node app, andopentide buildmakes a deployable one.- Apache-2.0, runs on your machine, uses your Postgres (PGlite locally, or any
Postgres via
OPENTIDE_DB_URL). - No model inside and no API key. It works with the agent subscription you already have.
- The server listens on loopback only and needs a per-project bearer token.
- The code your agent writes runs in a Deno process of its own, one per project.
It can't read your API keys or the project's files, start programs, or reach
OpenTide's servers or anything else on
127.0.0.1. It reaches the internet as usual."runner": { "net": ["api.stripe.com", "localhost:5432"] }inopentide.jsonlimits it to the hosts listed."runner": { "ffi": true }lets native npm addons load, and gives up the boundary.OPENTIDE_USER_CODE_RUNNER=0runs it inside the server instead.- Its SQL still reaches OpenTide's own tables in the project database. With
OPENTIDE_DB_URLon a Postgres superuser role, such aspostgres, that SQL can run programs on the database host, so connect as an ordinary role.
- Secrets go through
define_secret, never into code. check_package_securitychecks installed packages for known vulnerabilities and deprecations, with upgrade advice.- Projects live in Git, and machine-local state stays out of commits. See docs/project-storage.md.
One opentide serve per project holds the app. Its routes, handlers, schemas,
templates, migrations and tests live in a project database the server owns, and
they hot-swap the moment they're defined. Agents drive it through 109 MCP
tools. Any number can connect; one at a time holds the pen.
opentide serve --project ~/apps/todo-app --app-port 3001
open http://localhost:3001To pin the port for every start, including the ones the bridge makes, set
"previewPort": 3001 in the project's opentide.json.
opentide export --project ~/apps/todo-app --out ./todo-export
cd todo-export && npm install && npm startYou get a standalone Node app (Node 24+): an entry point, a router, the handlers
with their request validation, a schema seed and generated API docs.
opentide build writes the same into the project's dist/. Deploy it anywhere
Node runs.
- Work lives in memory until it's flushed.
complete_changesetflushes it to.opentide/state/, which you commit. If it reportsstateFlushed: false, the work exists only in the running server. - Platforms. macOS and Linux run the full test suite and the install smoke in CI on every push. On Windows, use WSL; native Windows hasn't been run.
- It's 0.1. Expect rough edges, and please file them.
| Doc | What's in it |
|---|---|
| opentide CLI | Install, every command and flag, releases, CI |
| Connecting agents over MCP | Claude Code, Codex, Cursor, HTTP, tokens, changesets, tasks |
| LSP for editors | Neovim, Zed, capabilities, writing through LSP |
| Project storage | What's in a project, what to commit, what stays local |
Tide, the IDE reinvented for AI, is built on OpenTide and coming soon: chat with an agent on one side and your running app on the other, with every change verified before it counts as done. Follow it at opentide.ai.
Apache-2.0. See NOTICE.