Browse by type
The free, open-source AI writing agent that runs the entire book pipeline on your own machine.
Every author wants an agent. This one works for your book — not for 15%.
AuthorAgent takes an idea (or your existing manuscript) through research → outline → write → revise → format → publish-ready in one autonomous pipeline, on your computer, with your own AI keys. What a $2,000/year stack of subscriptions tries to do, one free tool does — without your manuscript ever leaving your machine.
Three things that make it different:
Open your book and watch the agent work:
This is the part built to make books better, not just faster:
| Tool | What it does |
|---|---|
| Contradiction Detection | Diffs each chapter against the book's entity database (characters, timeline, world rules) and returns evidence-chained findings — the quote in the chapter vs. the established fact |
| Character Persona Agents | Each major character critiques its own dialogue: off-voice lines, knowledge it couldn't have yet, actions against motivation — with in-voice rewrites |
| Revision Orchestrator | Specialist passes (continuity / voice / craft / anti-AI-slop) instead of one blunt "revise this" prompt |
| Prose Evolution | GEPA-style loop: judge → diagnose → revise → re-judge; keeps a candidate only if it measurably improves, never regresses |
| Synthetic Reader Panels | Tournament-tests your blurbs/titles/covers against demographically-varied reader personas, with safeguards against LLM judge collapse |
| Learn-from-Experience | Recurring findings become durable lessons injected into all future writing — the agent improves with use |
The unsolved problem of AI writing is book-length consistency. AuthorAgent ships a tiered memory system:
git clone https://github.com/Ckokoski/authoragent.git
cd authoragent
npm install
npm start
# Open http://localhost:3847
# Settings → Connections → paste a Gemini API key (free tier — a whole book can cost $0)
# Click ✨ Start a Book
First run: AuthorAgent generates a vault encryption key and stores it outside the repo (
%LOCALAPPDATA%\AuthorClaw\vault.keyon Windows,~/.authorclaw/vault.keyelsewhere) so your encrypted API keys never sync to cloud drives. The Getting Started checklist on the home screen walks you through the rest.
See QUICKSTART.md for the full guide.
| Provider | Tier | Notes |
|---|---|---|
| Ollama | FREE (local) | Fully offline writing |
| Google Gemini | FREE | The whole pipeline can run on this |
| DeepSeek | Cheap | Strong drafting value |
| Anthropic Claude | Premium | Best editing/judging |
| OpenAI | Premium | Alternative premium |
| OpenRouter | Flexible | One key, dozens of models |
Per-stage cost routing is automatic: outlines and research use free models, drafting uses mid-tier, final polish and judging use premium — and every provider's model is a setting, not code (Settings → AI Models), so new models are a dropdown away with cost tracking that follows the model.
Six panels, no clutter:
For VM/VPS/Docker deployment (recommended for always-on Telegram use), see SECURITY.md and the docker/ directory.
npm run check # typecheck + 410 tests
npm run dev # auto-reload dev server
The codebase is modular TypeScript: domain-split API routes (gateway/src/api/routes/), service container, message pipeline, and a vitest suite covering the security, routing, memory, and quality subsystems.
Contributions welcome — new skills (skills/*/SKILL.md, YAML frontmatter + markdown), bug fixes, new providers, bridges, dashboard improvements, docs. Fork → feature branch → npm run check → PR.
Provided "as is," use at your own risk. AI output should always be reviewed by a human before publishing. Third-party AI usage is subject to those providers' terms and pricing; API costs are your responsibility.
MIT. See LICENSE.
Built by an author, for authors — on the belief that AI should amplify creativity, not replace it, and that your agent should work for your book, not for a subscription.
browse all types & interfaces →
$ claude mcp add authorclaw \
-- python -m otcore.mcp_server <graph>