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.
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.
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


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


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


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


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


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


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.
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.
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.
An empowered team is given a problem to solve, not a feature to build. The difference sounds small, but it changes who is accountable for the outcome and who decides how to get there.
When a roadmap lists features, success means shipping them on time. When it lists problems, success means the problem goes away, and the team is trusted to find the way
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.
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.
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.
- DesignDoneSeven reference screens, light and dark
- Source and docsPublicExplore the code and run Codex yourself
- Version 1BuildingCore writing tools, print pipeline and more
- LaterReal-time collaboration, chat, review, plugins and more exporters