Skip to main content
This page lists the environment variables to know when running or deploying Biz Novel Studio from source. We recommend first reading the “Run from Source (Developers)” section in Installation & Download.

Configuration File Locations

  • Server reads from server/.env
  • Frontend reads from client/.env or client/.env.local
  • The root .env.example is only an overview and cannot replace per-package configuration
Copy the example files and modify:
API keys and models can also be saved in system settings. Model routing is used to separately configure planning, body text, review, and book breakdown. For details, see Model Configuration.

Server Configuration (server/.env)

Basic Service

Image Storage & Generation

Model Providers

The following variables are grouped by provider. Each group usually includes *_API_KEY, *_BASE_URL, and *_MODEL. Some providers also have separate image model or embedding model variables. API keys and models can also be saved in system settings. For details, see Model Configuration.

Knowledge Base RAG / Qdrant

Book Breakdown

Frontend Configuration (client/.env)

For the specific usage of VITE_MANUSCRIPT_REVISION_ENABLED, refer to the release notes and related Wiki notes in the source.
For public internet or server deployment, we recommend the following security adjustments:
  • Change HOST to 127.0.0.1
  • Change ALLOW_LAN to false
  • Narrow CORS_ORIGIN to the actual domain
  • Narrow API_JSON_LIMIT (e.g., to 5mb) to reduce large request body DoS attack surface
  • Enable AI_NOVEL_ACCESS_TOKEN access token protection
In development, Vite’s same-origin /api proxy reaches the server by default, so same-machine and LAN access usually do not need a client/.env. Only set VITE_API_BASE_URL when deploying frontend and backend separately or when pointing to another server address.

Architecture & Source Code

Tech stack, directory structure, and common commands

Contributing

Report issues, submit PRs, and community links