// VS Code extension

DocForge

Generate polished Markdown or HTML documents from a prompt, using whatever AI you already have - with an always-on offline fallback so it never hard-fails.

Publisher Aniket Abhishek Soni License Apache-2.0 Published July 2026
Install from the command line
code --install-extension AniketSoni.docforge-vscode

Or search DocForge - Document Generator in the Extensions panel (Ctrl/Cmd+Shift+X).

Generate polished Markdown or HTML documents from a prompt — using whatever AI you already have, with an always-on offline fallback so it never hard-fails.

What it does

Run DocForge: New Document from Prompt, describe what you want, pick a format and a generator, and DocForge opens a live, themed, sanitized preview you can Insert into the editor or Save to disk.

DocForge resolves the best available generator in a transparent priority ladder, and always tells you which one ran:

  1. VS Code Language Model API — the sanctioned, vendor-neutral way to use Copilot and other LM providers.
  2. Compatible AI extension — best-effort, only via a documented generateDocument API.
  3. Bring-your-own-key — Anthropic or OpenAI, with the key stored in VS Code SecretStorage.
  4. Built-in templates — deterministic, fully offline, always available.

If no AI is available — or the workspace is untrusted, or you are offline — DocForge still produces a clean document from its built-in templates.

Features

Commands

Command Description
DocForge: New Document from Prompt The main flow (default keybinding Ctrl/Cmd+Alt+D)
DocForge: Set API Key Store a bring-your-own key in SecretStorage
DocForge: Clear API Key Remove the stored key
DocForge: Improve Selected Text Transform a selection, with diff review (Ctrl/Cmd+Alt+I)
DocForge: Regenerate Section Rewrite one section, preserving its neighbours exactly
DocForge: Run Diagnostics Show generator availability and the last generation’s attempt trail

Settings

Generation

Providers

Reporting

Cost figures are always estimates, never a bill.

Privacy and security

Local-first by default. The template generator is fully offline.

AI generators are opt-in; keys live in SecretStorage and are never written to settings. All model HTML is sanitized against an allowlist before it is shown or saved, and every webview uses a strict Content Security Policy.

See the full privacy policy for details.