Caotang Open Caotang

Free · open source · no account

A writing studio for novels, scripts and story worlds.

A binder, a board of index cards and a codex, plus an AI agent that plans first and asks before it changes your book. It runs in your browser, and your manuscript stays on your machine.

Nothing to install, nothing to sign up for. Works best in a desktop browser; phones get a narrow layout.

  1. Ask in your own words
  2. It plans, you approve
  3. You preview the draft in the scene
  4. Every turn can be restored

What it is

Everything a long manuscript needs, in one place. If you have used Scrivener, you will feel at home.

The Board. Every scene is an index card. Drag one into place and the others make room.
No account.
No server.
Your projects stay in this browser, or in a folder you choose, and your key is sealed here too.
A binder with goals. Parts, chapters and scenes, each with its own word target.
If you can type it, you can print it. Word, EPUB, screenplay PDF, Final Draft, Fountain and more.
Findings, pinned to the sentence. The codex knows your cast; a quick scan marks where the story slips.

Also in the studio

Screenplays
Scenes in Fountain, with script, source and page views. Import .fountain or Final Draft .fdx, and export them again.
Branching dialogue
Ink stories with an outline, a branch graph and line ids, for games and interactive fiction.
Storyboards
Shot cards with pictures, an animatic total, script coverage, and prompt packs for video models.
Comics
Pages with numbered panels and balloons, a linked script, and Comic PDF, CBZ and EPUB.
Timeline
Scenes laid out in story time or reading order, with an Agenda. Changes you make there are proposals you apply in one step.
Pictures
A picture board for the project, card pictures, pictures pinned to a paragraph, and handwriting transcription you review.
Two interfaces
Modern, a page of paper with glass controls, and Classic, the original layout. Both do the same things; switch at once.
In German too
The interface speaks English and German. The German is machine-assisted and not yet reviewed by a native speaker.

An agent that asks first

The agent works through the app's own commands, the same ones you use. Plans and drafts wait for your approval, small changes apply at once, and each turn that changes the project leaves a checkpoint you can restore.

Your key, your provider, or your computer

Bring a key for Anthropic, OpenAI, Google, xAI, Mistral, DeepSeek, OpenRouter or any OpenAI-compatible endpoint, and pay that provider directly. Or run a model on this computer with Ollama, LM Studio or llama.cpp, and your text stays on it. No key yet? A built-in demo provider lets you try the agent without one.

Where your work lives

Caotang is a web page with no server behind it. When you open caotang.app, the page loads once, then everything happens on your computer: nothing is uploaded, and there is no Caotang account or server that could see your book.

Saved in this browser

  • Your projects are kept in this browser's own storage for this site.
  • Another browser, another computer or a private window will not see them.
  • Clearing this site's data, or a cleanup tool that does it for you, removes them.
  • Caotang asks the browser to keep its storage, and shows a banner if the browser has not promised to.

Keep a copy you own

  • Export bundle saves the whole project as one .caotang file you can import into any copy of Caotang.
  • Save to folder (Chrome or Edge) writes the project as plain files, Markdown scenes and all, into a folder you choose, and saves back to it.

The only thing that leaves your machine is what you ask for: when the agent works, the parts of the project it needs go to the provider you chose. Your API key is sealed in this browser and never written into a project file. No analytics.

Get started

  1. Open Caotang

    caotang.app/app in your browser; a desktop works best. Chrome or Edge if you want folder saves.

  2. Create a project

    Give it a title, add chapters and scenes in the binder, and start writing. Scenes save as you type.

  3. Add a provider, if you like

    In Settings › Providers, pick a preset, choose a model and paste your key, or pick a model on this computer (Ollama, LM Studio, llama.cpp). Or skip it and write on your own.

  4. Keep a copy

    Save to a folder, or export a bundle now and then. Your writing should never live in one place only.

Prefer your own copy? Caotang is static files: build it from the repository and host it anywhere. The user guide walks through every screen, and The Modern interface shows the one new writers start in.

For AI tools: an MCP server for your manuscript

Caotang speaks the Model Context Protocol in both directions.

Caotang as an MCP server

Let Claude, an IDE agent or any MCP host read a Caotang project folder: the overview, the binder, scenes, notes, the codex, continuity findings and dialogue tables. It is read-only by default. With writes allowed, tools such as binder.restructure, codex.write, doc.import and export.compile ask you to confirm each call in the host first.

Runs over stdio, or over HTTP on 127.0.0.1 with a bearer token, and packs as an .mcpb bundle. The server makes no network connections of its own.

node caotang-mcp.mjs serve \
  --project ~/Writing/my-novel --stdio

Build it from the repository with

pnpm --filter @caotang/mcp-server build

Full reference: MCP server README.

Caotang as an MCP client

Connect your own MCP servers in Settings › MCP & tools, off until you turn it on. You review each server's tools before use, and any call that is not a trusted read waits for your approval.

Reading this as an agent?

A plain-text summary with links lives at caotang.app/llms.txt.

Who makes it

Caotang is an independent open-source project by @nattiini45 and contributors, released under the MIT License. There are no accounts, no subscriptions, no credit meters, no analytics and no Caotang server. It was built with AI coding agents under its owner's direction, and every design decision a person made is recorded in the open in decisions.md.

Found a bug or have an idea? Open an issue, or read how to contribute. Security reports go through private disclosure.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation. This covers the Windows builds of Caotang for desktop, which is not released yet; until SignPath Foundation accepts the project, those builds ship unsigned with SHA-256 checksums.

Authors, reviewers and approvers: @nattiini45, who reviews every pull request from anyone else and approves each signing request by hand. Only binaries built by the repository's own CI from its public source are signed.

Privacy: this program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it. Calls to an AI provider go only to the provider you set up, with your own key, and MCP connections go only to the servers you configure. The full policy is in CODE-SIGNING.md.