Getting started
OpenWriter is a markdown-native rich text editor with AI agent collaboration. Install it globally and start writing.
Claude Code (recommended)
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
- Open
localhost:5050in your browser - Click New Document in the sidebar
- Start writing — or ask your agent to write for you
- Agent changes appear as colored decorations:
- Green — inserts
- Blue — rewrites
- Red — deletions
- Navigate with
j/k, accept witha, reject withr
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
- Learn the editor — themes, formatting, keyboard shortcuts
- Set up compose views — tweet, article, blog, newsletter modes
- Connect platforms — publish to X, LinkedIn, and your newsletter
- Publish to your blog: uses your local
gh auth login, so there is nothing to connect - Configure Author’s Voice — AI that writes like you