Skip to content

Prerequisites

This step is a one-time thing. Skip anything you already have.

book-studio barely depends on external APIs. Writing a book needs no payment account and no API key. So the prerequisites are lighter than other bases. It guides a key separately, in place, only when external search or illustration is needed.

ItemmacOSWindowsLinux
Terminal you useTerminal.app or iTerm2Ubuntu on WSL2 recommendedthe shell your distro ships
Verified stateverifiedinstall WSL2 first, then run every command inside itverified

On Windows, finish the WSL2 install guide first, then come back here.

git is needed because version is managed with per-chapter commits.

Terminal window
xcode-select --install

A small dialog pops up, takes your agreement, and starts installing. If git is already installed, it just prints one notice and ends.

Terminal window
sudo apt update && sudo apt install -y git
Terminal window
git --version # git version 2.x.x
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

This name and email get planted as the author of chapter commits.

Chapters pile up as markdown files. If you want a preview while you work, a markdown viewer is handy. VS Code or Typora is fine. It isn’t strictly necessary. Since AI writes and saves to chapter files, you can open them with any text editor.

The official install guide is at docs.claude.com/en/docs/claude-code/quickstart. After installing, run claude once to log in or register an API key.

Terminal window
claude --version # a version number means you're ready

You can use the OpenAI Codex CLI instead of Claude Code. In that case the entry point is the repository root AGENTS.md, and the same flow applies. If this is your first time, Claude Code is recommended.

4) Optional — external search and illustration

Section titled “4) Optional — external search and illustration”

The research skill (external search) and the illustration skill (illustration generation) don’t turn on in the default flow. They turn on only when you explicitly request it — say, a technical book that needs fact-checking, or a novel that needs a cover — and you’re guided to a key in place then. You need neither to write your first book.

Once git and Claude Code are in place, go to clone-and-install.