Getting started

OpenWriter is a markdown-native rich text editor with AI agent collaboration. Install it globally and start writing.

One command installs OpenWriter globally, registers its MCP server with Claude Code, and adds two background helpers (they file documents you mark for sorting and keep document summaries fresh):

npx openwriter setup

Restart Claude Code and ask it to write something in OpenWriter.

Codex

npm install -g openwriter
codex mcp add openwriter -- openwriter --no-open

Start a new Codex task so the tools load.

Any MCP agent

Install globally and add OpenWriter as an MCP server in your agent’s config (Cursor, OpenCode, Windsurf and others):

npm install -g openwriter
{
  "mcpServers": {
    "openwriter": {
      "command": "openwriter",
      "args": ["--no-open"]
    }
  }
}

Restart the agent so it loads the server. Full per-agent details: the reference.

Launch the editor

openwriter

Your browser opens to localhost:5050. That’s your editor. (Claude Code launches it automatically via MCP — you only need this for standalone use.)

Your first document

  1. Open localhost:5050 in your browser
  2. Click New Document in the sidebar
  3. Start writing — or ask your agent to write for you
  4. Agent changes appear as colored decorations:
    • Green — inserts
    • Blue — rewrites
    • Red — deletions
  5. Navigate with j/k, accept with a, reject with r

File storage

Your documents live at ~/.openwriter/ as plain .md files. No database, no lock-in. Open them in any editor, grep them, version them with git.

Next steps