NovelAI is an open-source project designed to empower would-be authors by leveraging artificial intelligence to create full-length novels. Whether you're a seasoned author or just starting out, NovelAI provides a suite of tools to streamline the novel-writing process, from drafting an outline to generating a finished audiobook.
Note: This is mostly a hobby project of mine, so set expectations accordingly!
Sample Novel (txt, docx, mp3, download mp3)

You will need Python installed. I document what version I normally use in .python-version, but I think 3.10.x and newer should work.
git clone https://github.com/yourusername/novelai.git
cd novelai
Optional: Setup a python virtual environmentpip install -r requirements.txt
Optional: Install additional dependencies to generate audiobooks (python packages for respective models and ffmpeg for Mac/Windows/Linux)
pip install -r requirements.kokoro.txt
pip install -r requirements.coqui.txt
pip install -r requirements.llasa3b.txt
pip install -r requirements.sparktts.txt
brew install ffmpeg
# cuda support for nvidia cards:
pip uninstall torch torchaudio
pip install torch==2.5.1+cu124 torchaudio==2.5.1+cu124 --index-url https://download.pytorch.org/whl/cu124
./novelai.sh
novelai.bat
Start a New Book:
Refine Your Outline:
Generate Chapters:
Export Your Novel:
./novelai.sh --help
Usage: main.py [OPTIONS] COMMAND [ARGS]...
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ start Start Web UI │
│ books │
│ chapters │
│ openai │
│ audio │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
We welcome contributions from the community! To contribute:
This project is licensed under the Apache License Version 2.0.
Special thanks to the open-source community and all contributors who make this project possible and to the project founder and maintainer Jacob Beasley.
Ready to create your next masterpiece? Dive into NovelAI and let your creativity flow!
14 commits
Python
67.9%
Jinja
30.6%
NovelAI is an open-source project designed to empower would-be authors by leveraging artificial intelligence to create full-length novels. Whether you're a seasoned author or just starting out, NovelAI provides a suite of tools to streamline the novel-writing process, from drafting an outline to generating a finished audiobook.
Note: This is mostly a hobby project of mine, so set expectations accordingly!
Sample Novel (txt, docx, mp3, download mp3)

You will need Python installed. I document what version I normally use in .python-version, but I think 3.10.x and newer should work.
git clone https://github.com/yourusername/novelai.git
cd novelai
Optional: Setup a python virtual environmentpip install -r requirements.txt
Optional: Install additional dependencies to generate audiobooks (python packages for respective models and ffmpeg for Mac/Windows/Linux)
pip install -r requirements.kokoro.txt
pip install -r requirements.coqui.txt
pip install -r requirements.llasa3b.txt
pip install -r requirements.sparktts.txt
brew install ffmpeg
# cuda support for nvidia cards:
pip uninstall torch torchaudio
pip install torch==2.5.1+cu124 torchaudio==2.5.1+cu124 --index-url https://download.pytorch.org/whl/cu124
./novelai.sh
novelai.bat
Start a New Book:
Refine Your Outline:
Generate Chapters:
Export Your Novel:
./novelai.sh --help
Usage: main.py [OPTIONS] COMMAND [ARGS]...
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ start Start Web UI │
│ books │
│ chapters │
│ openai │
│ audio │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
We welcome contributions from the community! To contribute:
This project is licensed under the Apache License Version 2.0.
Special thanks to the open-source community and all contributors who make this project possible and to the project founder and maintainer Jacob Beasley.
Ready to create your next masterpiece? Dive into NovelAI and let your creativity flow!
14 commits
Python
67.9%
Jinja
30.6%