DEXPULL — Local AI Hub
Back to product

Product documentation

Dexpull DocStudio

Local document workspace: PDF page tools, real DOCX/PPTX/XLSX generation, streaming chat and encrypted BYOK providers.

Paste this link into ChatGPT and it will understand the full setup:/api/docs/dexpull-docstudio

Dexpull DocStudio - full installation and usage guide

Dexpull DocStudio is a local-first document workspace that runs on your own machine at localhost. It performs real PDF page operations, writes real Word, PowerPoint and Excel files, and streams real assistant replies. Text generation defaults to a local Ollama model. Cloud providers are strictly bring-your-own-key, keys are encrypted at rest, and no cloud service is substituted for a missing local engine. There are no fake previews, no invented progress values and no fabricated results: when a step fails the app reports the failure.

1. Download the product

Sign in at https://dexpull.in
Open Products -> Dexpull DocStudio, or go to /download-docstudio
Issue a free 30-day key and press "Download for localhost"

The key is checked on the server before the ZIP is streamed. It is bound to your account and to the dexpull-docstudio product, is valid for 30 days, and is never stored inside the bundle. No payment is collected. The download is named dexpull-docstudio.zip. There is no public direct ZIP URL: the bundle lives in private-bundles/ and is embedded in the Worker, so a direct static path returns 404.

2. Requirements and one-time install

Windows 10/11
Python 3.11 or newer (the backend uses asyncio.timeout())
Node.js 20+ and npm
8 GB RAM recommended

Open PowerShell in the folder that contains the ZIP:

Expand-Archive .\dexpull-docstudio.zip -DestinationPath .\dexpull-docstudio -Force
cd .\dexpull-docstudio
setup-windows.cmd

setup-windows.cmd is safe to run again. It creates backend.venv, installs backend\requirements.txt, runs npm install in frontend, and builds the frontend. The ZIP contains clean source only: node_modules, frontend\dist, .venv, caches and .env files are excluded, so the Python virtualenv and the frontend build are created locally.

The manual equivalent is:

py -3 -m venv backend\.venv
backend\.venv\Scripts\python.exe -m pip install -r backend\requirements.txt
cd frontend
npm install
npm run build
cd ..

3. Start the backend and frontend

The simplest path is:

start-docstudio.cmd

It opens two terminals that stay open. To run the two processes yourself:

Terminal 1, FastAPI backend on port 8000:

cd .\dexpull-docstudio
backend\.venv\Scripts\python.exe -m uvicorn app.main:app --host 127.0.0.1 --port 8000

Terminal 2, Vite frontend on port 5173:

cd .\dexpull-docstudio\frontend
npm run dev -- --host 127.0.0.1

Frontend:  http://localhost:5173
Backend:   http://127.0.0.1:8000
API docs:  http://127.0.0.1:8000/docs
Health:    http://127.0.0.1:8000/health

Close the two terminals to stop the product. Nothing is installed system-wide and no document is uploaded.

4. API token

There is no token bootstrap endpoint. On first start the backend creates an API token in its local storage root and prints that location in the server console. Open the app, go to Settings, paste the token into API token and save. The default storage root is shown at startup and can be moved with DEXPULL_DOCS_ROOT; the token itself can be pinned with DEXPULL_DOCS_API_TOKEN.

The token stays in this browser's localStorage. It is sent as the X-Dexpull-Token header on every API call except /health, and as the only WebSocket subprotocol for /ws/chat. It is never printed after saving and is never logged. If the backend rejects it, the header changes to "Token needed" and Settings shows a setup hint.

5. Local storage layout

All state stays under the storage root printed at startup:

<root>\documents     uploaded and generated source files
<root>\images        uploaded images used by Document and Slides
<root>\exports       generated .docx, .pptx, .xlsx and PDF outputs
<root>\database      SQLite database (expull-docs.db) and provider keys
<root>\temp          temporary work
<root>\logs          local logs
<root>\api.token     generated API token

/api/files/{path} serves only documents, images and exports; the token, database and logs can never be downloaded through that route. Uploads are capped at 25 MB and restricted to a small allowlist of PDF, image and text extensions.

6. Local engine and optional local image endpoint

Ollama is the default text provider. Install it, start it and pull a model, for example:

ollama pull llama3

The default endpoint is http://127.0.0.1:11434 and can be changed with OLLAMA_URL. The default Ollama model is llama3; you can select another one in the workspace. Chat streams real chunks from Ollama and reveals only characters that actually arrived.

The Document workspace can place images into a .docx. It reads images only from the storage root, and can optionally ask a local image endpoint for an image via DEXPULL_DOCS_IMAGE_URL (default http://127.0.0.1:8000/api/images/generate). Point that at a local ComfyUI-backed service or any endpoint that returns raw image bytes or a JSON body naming a local image path. This is best-effort: if the endpoint is offline or returns nothing usable, the document is still written and the note honestly reports that the image was skipped. No placeholder picture is substituted.

7. BYOK provider keys

Settings -> Provider keys accepts your own keys for OpenAI, Gemini, Anthropic and Unsplash. Each key is encrypted with AES-256-GCM before it is stored in SQLite. ENCRYPTION_KEY must be a 64-character hex string (32 bytes); a missing or malformed value fails loudly rather than storing plaintext.

There is deliberately no GET route that returns keys. /api/health/providers and /api/settings report only names and availability. Optional server-side fallbacks are OPENAI_API_KEY, GEMINI_API_KEY / GOOGLE_API_KEY, ANTHROPIC_API_KEY and UNSPLASH_ACCESS_KEY / UNSPLASH_API_KEY. Default cloud models are gpt-4o-mini, gemini-4-hydrogen and claude-3-5-sonnet-latest. Unsplash is used only for real photo search in Slides: the results and thumbnails shown in the UI come from the actual API response.

A cloud key is used only when you explicitly pick that provider. Leaving Ollama selected never spends a cloud key, and a missing cloud key produces a real error rather than a local substitute.

8. The six workspaces

PDF        Upload PDFs, merge, split, delete pages, rotate pages, reorder pages with a live
           order index, and extract text. Downloads come from /api/files/<path>. Page counts
           come from real numeric fields and real page_texts, with a manual fallback - no fake
           thumbnails are drawn.
Document   Prompt + provider/model + uploaded images produce a real .docx. The backend reports
           paragraph and image counts; download the file to review its content. The optional
           local image endpoint is described in section 6.
Chat       Streaming assistant replies over /ws/chat from Ollama or a BYOK provider. The
           typewriter reveal shows only characters actually received in token/message frames.
           Streams are bounded by a deadline and byte/line budgets.
Slides     Prompt + provider/model + real Unsplash search results (POST /api/images/search)
           produce a real .pptx. The backend reports slide and image counts.
Sheets     Editable grid: add/remove rows and columns, a value field and an fx formula field
           per cell, A1-keyed cells/formulas payloads, local formula evaluation, and real
           evaluated/failed counts written to an .xlsx.
Settings   Token, backend URL, BYOK provider keys (status only), provider availability,
           connection test and non-secret backend settings.

9. Honest behavior and limits

No cloud AI inference unless you supply a BYOK key and select that provider.
No fake rendering, progress, previews or results; failures surface as real errors.
/api/doc/generate and /api/ppt/generate return counts, not invented document text.
No arbitrary Python execution from prompts; only allowlisted file and document operations.
No OS-wide file deletion; only user-selected files inside the storage root are touched.
The local studio needs no account or credit balance; the platform website handles sign-in
and distributes code only.

10. Verification commands

curl http://127.0.0.1:8000/health
curl -H "X-Dexpull-Token: <token from the printed token file>" http://127.0.0.1:8000/api/health/providers
backend\.venv\Scripts\python.exe -m pytest backend\tests -q
cd frontend && npx tsc --noEmit && npm run build

Expected: health returns status ok, providers lists ollama plus the four BYOK providers with availability only, tests pass, and TypeScript plus the Vite build are clean. Generate a small PDF, DOCX, PPTX and XLSX and confirm each downloaded file opens.

11. Troubleshooting

App cannot reach backend     run start-docstudio.cmd again; backend must listen on 127.0.0.1:8000
"Token needed" in header     copy the current token printed at backend startup into Settings
No engine / empty Chat       start Ollama and pull llama3, or select a configured BYOK provider
Offline                      local Ollama work continues; BYOK providers and Unsplash need the internet
Invalid BYOK key             remove and re-paste the key in Settings; the real provider error is returned
ENCRYPTION_KEY error         set exactly 64 hex characters before saving any provider key
Image skipped in Document    start the local image endpoint or set DEXPULL_DOCS_IMAGE_URL correctly
Upload rejected              use an allowed extension under 25 MB (pdf, png, jpg, jpeg, gif, webp, bmp, tiff, txt)
Port already in use          stop the old uvicorn/Vite process or change the port and the backend URL in Settings
Spreadsheet failed/timeout   simplify the formula grid; local evaluation is bounded to 30 seconds

12. Paste this into ChatGPT

The raw, machine-readable version of this guide is served at:

https://dexpull.in/api/docs/dexpull-docstudio

On a local install the same path is:

http://localhost:4000/api/docs/dexpull-docstudio

Copy either URL into ChatGPT. The response is plain Markdown with Content-Type text/markdown, so an assistant can read the setup commands, ports, storage layout, provider rules, the six workspaces, limitations and troubleshooting steps without guessing.