Long-form fiction writers face two persistent headaches when scaling their production: escalating commercial API bills and the privacy risks of piping unreleased creative manuscripts through corporate cloud endpoints. Writing an 80,000-to-150,000-word fantasy or sci-fi novel in Novelcrafter means thousands of automated prompt calls. With Novelcrafter continuously reinjecting your Codex lore, character sheets, and previous scene beats into every prompt, calling frontier cloud models like Claude 3.5 Sonnet or GPT-4o easily piles up $50 to $200+ in token fees per completed draft. Furthermore, for authors tackling dark fantasy, high-heat romance, or unconventional thriller fiction, third-party cloud moderation filters can flag, sanitize, or reject generation mid-scene.
Novelcrafter is fundamentally designed as a Bring-Your-Own-Key (BYOK) studio that allows direct integration with local inference engines. By pairing Novelcrafter with LM Studio or Ollama, fiction authors can run open-weights large language models (such as Qwen 2.5, Llama 3.3, and Mistral) entirely on consumer hardware. The result is a writing pipeline with zero per-token API costs and complete manuscript privacy.
However, because Novelcrafter operates as a secure web app (https://app.novelcrafter.com), connecting it to a local HTTP service (http://localhost:11434 or http://127.0.0.1:1234) frequently triggers silent connection failures. At 365Finds, our research indicates that nearly all author connection issues stem from three fixable hurdles: Cross-Origin Resource Sharing (CORS), browser mixed-content restrictions, and context window bottlenecks.
The Reality Check: Local Inference vs. Cloud Web App
Before configuring your engines, understand Novelcrafter's architecture:
- The Web App Interface: Novelcrafter itself runs in your browser and requires an active internet connection to load the editor, authenticate your account, and sync project databases. Novelcrafter does not currently provide a native, fully offline standalone client.
- The AI Inference Pipeline: When configured with local backends, the generation process itself is completely offline and private. When you trigger prose generation, chat, or scene planning, Novelcrafter constructs the prompt locally in your browser and sends it directly over loopback (
localhost) to your local graphics card or CPU. Your manuscript text, Codex entries, and narrative prompts never touch OpenAI, Anthropic, or Novelcrafter's cloud servers.
Between the two dominant engines, 365Finds recommends LM Studio for most fiction writers. Its visual model directory, straightforward slider for GPU offloading, real-time context window settings, and one-click CORS toggle make model management far less error-prone. We recommend Ollama primarily for authors who prefer a background command-line daemon or run a dedicated headless Linux home server.
Option 1: Configuring LM Studio with Novelcrafter (Recommended)
LM Studio gives fiction authors an intuitive desktop GUI to download GGUF quantized models from Hugging Face and serve an OpenAI-compatible API.
Step 1: Prepare LM Studio Server Settings
- Launch LM Studio. Ensure you are running in Power User or Developer mode (toggleable in the lower-left corner or sidebar settings).
- Download your chosen fiction-writing model from the Explore tab (e.g.,
Qwen/Qwen2.5-32B-Instruct-GGUFormistralai/Mistral-Nemo-Instruct-2407). - Open the Developer / Local API Server tab on the left sidebar:
- Local API Server: Toggle the status to Running (or turn on the server toggle). The default port is
1234. - Enable CORS: Toggle this switch to ON. This step is mandatory; without it, your browser blocks
app.novelcrafter.comfrom communicating with your local port. - Just-in-Time Model Loading: Toggle this switch to ON. This allows Novelcrafter to detect all downloaded models on your disk even if they are not preloaded into VRAM.
- Context Length Setting: Change the default context limit (often set to 2,048 or 4,096 tokens) to at least 16,384 or 32,768 tokens, depending on your hardware VRAM. Novelcrafter prompts incorporate extensive Codex lore and previous scene context; keeping the context length at 2k–4k will truncate your world-building.
- Local API Server: Toggle the status to Running (or turn on the server toggle). The default port is
Step 2: Establish the Connection in Novelcrafter
- Log into your project at Novelcrafter.
- Click your user avatar / profile icon and select AI Connections.
- In the vendor list, locate LM Studio and click Add.
- Verify the default endpoint parameters:
- Host:
127.0.0.1orlocalhost(matches LM Studio's reachable address). - Port:
1234.
- Host:
- If your browser displays a permission prompt ("Novelcrafter wants to look for devices on your local network"), click Allow.
- Click Refresh. Once the handshake succeeds, your downloaded models will appear under the Supported Models dropdown.
- Connection Priority Tip: If you have multiple AI connections active, drag the LM Studio block to the top of your AI Connections list so Novelcrafter defaults to your free local engine when model names overlap.
Option 2: Configuring Ollama with Novelcrafter
Ollama is a lightweight, command-line-driven runtime favored by developers and authors who want local AI running quietly in the background. Because Ollama defaults to strict local origin checks, you must explicitly whitelist Novelcrafter's web domain.
Step 1: Whitelist Novelcrafter Domain via OLLAMA_ORIGINS
On Windows:
Windows runs Ollama automatically as a background system tray utility. To pass the required CORS headers:
- Right-click the Ollama icon in the Windows taskbar system tray and choose Quit.
- Open Command Prompt (CMD) or Windows Terminal as an administrator.
- Set the global environment variable:
setx OLLAMA_ORIGINS https://app.novelcrafter.com - To prevent Ollama from truncating Novelcrafter's detailed Codex and beat prompts, also set the context window variable:
setx OLLAMA_CONTEXT_LENGTH 16384 - Restart Ollama from the Windows Start menu.
On macOS and Linux:
On Unix-based operating systems, environment variables can be set per session or exported globally:
- Quit any running Ollama background instance.
- Launch the server in Terminal:
(To make this permanent, addOLLAMA_ORIGINS=https://app.novelcrafter.com OLLAMA_CONTEXT_LENGTH=16384 ollama serveexport OLLAMA_ORIGINS="https://app.novelcrafter.com"andexport OLLAMA_CONTEXT_LENGTH=16384to your~/.zshrcor~/.bashrcfile).
Step 2: Pull Your Fiction Models
Open another terminal tab and pull your preferred creative writing models:
ollama pull qwen2.5:32b
ollama pull llama3.3:70b
ollama pull mistral-nemo
Step 3: Add the Ollama Connection in Novelcrafter
- In Novelcrafter, navigate to AI Connections.
- Locate Ollama in the provider list and click Add.
- Leave the host address at
http://localhost:11434. - Click Refresh. Your pulled Ollama models will immediately populate the model list.
Overcoming Critical Traps: Browser Security & Context Limits
Setting up the server is only half the battle. Fiction authors frequently abandon local AI setups because of three avoidable pitfalls:
| Pitfall / Issue | Root Cause | Solution & Workaround |
|---|---|---|
| Safari Connection Failure | Apple WebKit strictly blocks insecure HTTP loopback calls from HTTPS sites. | Safari cannot be used with local AI in Novelcrafter; switch to Chrome, Brave, Edge, or Firefox. |
| Brave Shield Interception | Brave Shields treats localhost loopback calls as potential fingerprinting/trackers. | Click the lion shield icon on app.novelcrafter.com and toggle Shields to Down for the domain. |
| Two-PC LAN Connection Blocked | Running LM Studio on an RTX desktop while editing on a laptop over Wi-Fi triggers Chrome's Mixed Content security block. | In Chrome/Edge: click the lock/tune icon next to the address bar; open Site Settings; find Insecure content; change from "Block" to Allow. |
| "Author Amnesia" Mid-Chapter | Ollama defaults to a 2,048 or 4,096 token context window, silently discarding older Codex entries and outline beats. | Set OLLAMA_CONTEXT_LENGTH=16384 globally, or create a custom Modelfile with PARAMETER num_ctx 16384. |
| Local Models Greyed Out | Novelcrafter's default cloud model collections do not automatically recognize unlisted local model strings. | Open Prompt Library; create a + New Model Collection; add your local model name; assign the collection to your prose prompts. |
Hardware Sizing & Recommended Local Models for Fiction
Fiction writing requires models capable of deep character voice, prose cadence, and instruction adherence across multi-step scenes. Running 7B models often leads to repetitive prose, while oversized models can crawl at unworkable speeds without adequate VRAM.
- Entry Tier (8GB–12GB VRAM or 16GB Apple Silicon):
- Mistral NeMo 12B or Qwen 2.5 14B (Q4_K_M).
- Verdict: Excellent for rapid scene beat drafting, outlining, and brainstorming. Generates fast enough for real-time dictation cleanup.
- The Fiction Sweet Spot (16GB–24GB VRAM / RTX 3090/4090 or 36GB+ Mac):
- Qwen 2.5 32B Instruct (Q4_K_M).
- Verdict: 365Finds' top overall recommendation for local fiction. It delivers striking dialogue authenticity, manages complex character relationship prompts from Novelcrafter's Codex, and maintains narrative tension without cloud censorship.
- Heavyweight / Studio Tier (48GB+ VRAM or 64GB+ Mac Unified Memory):
- Llama 3.3 70B Instruct or Command-R.
- Verdict: Approaches the prose quality of Claude 3.5 Sonnet. Best suited for final chapter prose polishing, nuanced stylistic mimicry, and intricate multi-character scenes.
The Complete Novelcrafter Local Writing Workflow
Once configured, your zero-cost offline AI writing routine operates smoothly:
- Model Assignment: Go to Prompt Library -> Model Collections. Create a collection named "Local Fiction Engine", select your LM Studio or Ollama model, and designate it as your default for Scene Beats and Prose Generation.
- Writing in the Write Tab: Craft your outline and scene beats as usual. When you press
Ctrl+Enteror click Generate Prose, Novelcrafter packages your scene outline, relevant Codex mentions, and active POV instructions, then sends the request to your local GPU. - Manuscript Iteration: Generate alternative variations, expand dialogue, and rewrite descriptive beats without tracking token counters or checking your monthly credit balance.
By mastering the CORS whitelist, browser permissions, and context settings, you eliminate recurrent API overhead while ensuring your unreleased literary IP remains exclusively on your own machine.
References
- Ollama - AI Connections - Novelcrafter Help
- LM Studio - AI Connections - Novelcrafter Help
- OpenAI API Compatible - AI Connections - Novelcrafter Help
- Model Collections - Models - Novelcrafter Help
- How can I use AI for free? - FAQ - Novelcrafter Help
- Can I use Novelcrafter in offline mode? - FAQ - Novelcrafter Help