Quickstart
Goal: Me Write Code installed, authenticated, first prompt answered. Target time: 30 seconds.
1. Install
bash
npm install -g @zhachory1/mewrite-codeRequires Node.js 20+. Other options (Homebrew, Docker, manual binary) are documented in Install.
Verify:
bash
mewrite --version2. Authenticate
Pick one of these. Me Write Code detects which keys you already have in your environment.
bash
export ANTHROPIC_API_KEY=sk-ant-...bash
export OPENAI_API_KEY=sk-...bash
mewrite
# inside the TUI:
/loginThe OAuth flow opens a browser and stores credentials in ~/.mewrite/agent/auth.json with user-only file permissions.
See the full Auth & Providers page for the 20+ supported backends.
3. First prompt
bash
mewrite "explain this codebase"Or open the interactive TUI:
bash
mewriteType a prompt and the agent responds. Type /help for the full slash-command list.
What just happened
- npm installed the
@zhachory1/mewrite-codepackage globally, registeringmewrite,mewritecode, andmewrite-codecommands. - On first launch, the wizard ran and persisted your choices to
~/.mewrite/agent/settings.json. - Caveman Mode compression is on by default. Tool output (bash, grep, file reads) is summarized before re-entering context.
Common next steps
| Task | Command / link |
|---|---|
| Continue your last session | mewrite -c |
| Browse and resume past sessions | mewrite -r |
| Pipe stdin to the agent | cat README.md | mewrite -p "review" |
| Switch model mid-session | /model claude-sonnet-4 |
| Fork session to try a different path | /fork |
| Run in plan-only mode | /plan (slash command in TUI) |
| Migrate from Claude Code | Migration guide |
Troubleshooting
mewrite: command not foundafter install — restart your shell, or check that the npm global bin dir is on your PATH (npm config get prefix).- Wizard didn't appear — delete
~/.mewrite/agent/settings.jsonand runmewriteagain. - Auth fails on Linux — install
libsecret(apt install libsecret-1-0on Debian/Ubuntu) or use API keys via env.
More: Troubleshooting.