In developmentOpen source, built in the open

Open-source book writing software for authors.

Codex is an open-source writing studio for non-fiction books and series. Plan the structure, keep your research beside the draft, clear every quote for copyright and export a print-ready PDF, in one app.

Free and open source Books and whole series Novels welcome too Light and dark
codexsuite.app
The Codex Write screen: a chapter of a non-fiction manuscript with scene beats, AI draft controls and a knowledge base sidebar The Codex Write screen in dark mode
Marty CaganPerson · used in Chapter 5
Scene beat to draft400 words from a one-line beat
4 of 4 sources clearedReady for print
Why Codex

A book is more than one file.

A long non-fiction book also has an outline, research notes, citations, permission letters and print files. Codex stores all of them in the same project as the manuscript, so a change in one shows up in the others.

Plan on a board

Acts, chapters and scenes are cards on a board. Move a scene and the manuscript reorders to match. Label the scenes that need research, and the board shows which ones are still unwritten.

Research beside the draft

Each person, law, study and story gets an entry in the knowledge base. Type its name in the manuscript and Codex links the mention to the entry. Click the name to open everything you know about it.

From draft to printer

Codex checks every quote against your publisher's rules, builds the bibliography and typesets a print-ready PDF with LaTeX templates.

Tour

Six workspaces, one book.

Every screen shares the same chapters, sources and entries, so you never copy anything between tools.

Every book and series in one library

Group books into series that share a style guide and settings, and see progress against your word target.

  • Series stacks with shared settings
  • Status from planning to published
  • Import an existing manuscript
Codex Library screen: a bookshelf of book series and standalone books with word count progressCodex Library screen, dark

Plan the chapters before you write them

A board of acts, chapters and scenes, or the same structure as a plain outline.

  • Scene summaries and word counts
  • Labels like Needs research and Ready to write
  • Knowledge base entries pinned to scenes
Codex Plan board for outlining a book in acts, chapters and scenesCodex Plan board, dark

Write with your plan in the margin

A manuscript editor with the scene summary beside the text and your notes one click away.

  • Scene beats that draft 200 to 600 words with AI
  • Mentions link to the knowledge base as you type
  • Focus mode and a manuscript minimap
Codex Write screen: a manuscript editor with the scene summary in the marginCodex Write screen, dark

One entry per person, idea or source

Each entry lists its aliases, so Codex links every mention in the manuscript back to it.

  • See every scene that uses an entry
  • Timelines for people and events
  • The AI reads entry summaries when it drafts
Codex knowledge base entry for Goodhart's LawCodex knowledge base entry, dark

Sources, citations and permissions

Every source you quote, where you used it and whether you're cleared to print it.

  • Quoted words counted against publisher limits
  • Permission letters drafted for you
  • A bibliography in your citation style
Codex References screen: sources, citations and copyright clearance for quotesCodex References screen, dark

See the printed page while you write

A live preview of the book in its print template, and a LaTeX proof when you need exact page breaks.

  • Preflight flags low-resolution images
  • Templates with trim, columns and paper options
  • Export with bleed and crop marks
Codex Layout screen: a live print preview of the book in a LaTeX templateCodex Layout screen, dark
Copyright clearance

Know every quote is safe to print.

Codex counts the words you quote from each source, checks them against your publisher's rules and tells you which ones need permission. When they do, it drafts the request letter from what you quoted and where.

Copyright risk Needs check Cleared
300word default limit per source
1 clickto draft a permission letter
Copyright clearance list with risk, needs-check and cleared sources Copyright clearance list, dark
Layout and print

One manuscript, many layouts.

Pick a template and the pages re-flow from the same text. Options change how the book is set, never what it says. When it's ready, export a PDF your printer will accept.

Livepreview as you type
LaTeXproofs for exact pages
Preflightbefore you export
Print layout options for a two-column template Print layout options, dark
Real-time collaborationOn the roadmap

Write it together.

Invite a co-author, editor or researcher into the book and work on it at the same time. See who is in which chapter, watch edits appear as the other person types and leave comments on the exact sentence. The plan, knowledge base and sources are shared too, so everyone works from the same book.

Livecursors and edits
Commentson any sentence
One bookfor the whole team

Series-aware

Settings and style guides copy down to every book in a series.

AI that follows the plan

Drafts start from your scene beats and knowledge base, not a blank prompt.

Your house style

Style guide, citation style and publisher rules set once per book.

Always saved

Changes save as you type, so there's no Save button to forget.

FAQ

Questions from writers.

What is Codex?

Codex is a free, open-source writing studio for long books and series. It puts book planning, a research knowledge base, a manuscript editor, citations and copyright clearance, and print layout in one app, so you can go from outline to print-ready PDF without moving your book between tools.

Can I write fiction or a novel in Codex?

Yes. Codex is designed around non-fiction first, but the same tools work for novels and fiction series. Plan acts, chapters and scenes on a board, keep characters, places and backstory in the knowledge base under your own categories, draft from scene beats, and lay the book out with the built-in Novel template at 6×9 or 5.5×8.5 inches.

Is Codex an alternative to Scrivener?

Codex covers the drafting and structure you might use Scrivener for, and adds what usually takes separate apps: a knowledge base that links itself into your text (a story bible, if you write fiction), source and permission tracking, and print layout of the kind you would otherwise do in a formatting tool such as Vellum or Atticus. It is free and open source.

Can I use Codex to self-publish a book?

Codex exports a print-ready PDF from LaTeX templates, with your choice of trim size, bleed and crop marks when your printer wants them, and a preflight check for low-resolution images. That is the kind of file print-on-demand services such as Amazon KDP and IngramSpark ask for.

Does Codex have an AI writing assistant?

Yes. Write a short scene beat and Codex drafts 200 to 600 words from it, using your plan and knowledge base as context so the draft fits the book. You choose the model, and you can regenerate or edit every word.

How much does Codex cost, and when can I use it?

Codex is free and open source. Version 1 is in development; the source code and documentation are available now. See the documentation to run Codex yourself and follow development on GitHub.

Is Codex related to OpenAI Codex?

No. Codex at codexsuite.app is an independent, open-source writing studio for authors. It is not affiliated with OpenAI or its Codex coding agent.

Open source

Built in the open.
Available on GitHub.

Codex is free and open source. Version 1 is in development; the source code and documentation are available now. See the documentation to run Codex yourself and follow development on GitHub.

  1. DesignDoneSeven reference screens, light and dark
  2. Source and docsPublicExplore the code and run Codex yourself
  3. Version 1BuildingCore writing tools, print pipeline and more
  4. LaterReal-time collaboration, chat, review, plugins and more exporters

Write the book.
Codex keeps the plan, sources and pages.