Skip to main content

Prerequisites

Before you install architxt, make sure you have the runtime stack, document parsing service, at least one LLM provider, and an optional Hindsight server ready.

Runtime​

architxt is a Node.js application with an Express backend, a Next.js frontend, and a SQLite database. You only need Node.js and npm to get started.

RequirementMinimumNotes
Node.js22.0.0Required for native ESM, fetch, and better-sqlite3 binary compatibility
npm10.0.0Bundled with Node.js 22+
git2.30+For cloning and updates

Verify your versions:

node --version # Should print v22.x.x or higher
npm --version # Should print 10.x.x or higher

If Node.js is too old, install via nvm:

nvm install 22
nvm use 22

Docling​

The extract pipeline uses Docling to parse PDFs, Word documents, and images into structured markdown. architxt expects Docling to be running as a standalone server via docling serve.

This is optional if you only plan to upload plain text or images handled directly by the vision pipeline, but for most document workflows it is required. A GPU is recommended for Docling processing — CPU-only conversion is much slower and can become a bottleneck when batching large PDFs or slide decks.

Install and start Docling​

# Requires Python 3.10–3.12
pip install docling docling-serve --extra-index-url https://download.pytorch.org/whl/cpu

# Default port is 5001
docling serve

The --extra-index-url installs the CPU-only PyTorch wheel, which is required for correct image extraction. Without it, embedded images may not be extracted properly.

Point architxt at the Docling server​

In server/.env:

DOCLING_SERVICE_URL=http://localhost:5001

Force OCR when needed​

If your PDFs contain subsetted fonts without ToUnicode CMaps, extracted text may show glyph artifacts such as /g###/ tokens. Enable forced OCR to eliminate this corruption:

ARCHITXT_DOCLING_FORCE_OCR=true

This is slower but produces clean text from problematic PDFs.

LLM provider access​

At least one LLM provider must be configured. architxt uses LLMs for denoising, vision analysis, research synthesis, and mental-model generation. The backend reads provider settings from server/.env and references each stage by a named provider, not by hard-coded URLs.

Supported provider types:

ProviderRequired variablesNotes
Ollama LocalARCHITXT_OLLAMA_LOCAL_URLSelf-hosted models on your machine. No API key needed.
Ollama CloudARCHITXT_OLLAMA_CLOUD_API_KEYManaged Ollama endpoint. Get a key from ollama.com.
OpenAI CompatibleARCHITXT_OPENAI_API_KEYOpenAI or any OpenAI-style API endpoint.
AnthropicARCHITXT_ANTHROPIC_API_KEYClaude models via Anthropic's API.

The minimum environment block is:

# Local Ollama example — only a URL is required
ARCHITXT_OLLAMA_LOCAL_URL=http://localhost:11434

# Or add a cloud key
ARCHITXT_OLLAMA_CLOUD_API_KEY=your-key-here

Default models​

Each provider has a default model that is used when a stage does not override it:

ProviderDefault modelVariable
Ollama Localqwen3.5:4bARCHITXT_OLLAMA_LOCAL_DEFAULT_MODEL
Ollama Cloudkimi-k2.7-code:cloudARCHITXT_OLLAMA_CLOUD_DEFAULT_MODEL
OpenAIgpt-4oARCHITXT_OPENAI_DEFAULT_MODEL
Anthropicclaude-3-sonnet-20240229ARCHITXT_ANTHROPIC_DEFAULT_MODEL

Stage-specific model overrides​

Some pipeline stages can use a different provider or model from the defaults. The most common overrides are:

StageDefault providerDefault modelVariable
Vision / diagram descriptionollama_cloudgemma4:31b-cloudARCHITXT_VISION_MODEL
Document denoise (LLM)ollama_cloudgpt-oss:20b-cloudARCHITXT_DENOISE_LLM_MODEL

Set the matching *_PROVIDER and *_MODEL variables in server/.env if you want to route a specific stage elsewhere. The backend uses fail-fast config validation, so an invalid or missing required value exits immediately with a clear error.

Timeout defaults​

ProviderDefault timeout
Ollama Local300 seconds
Ollama Cloud300 seconds
OpenAI60 seconds
Anthropic180 seconds
Vision300 seconds
Denoise LLM600 seconds

Increase the matching ARCHITXT_*_TIMEOUT_MS variable if you process large documents or run on slower hardware.

Hindsight​

Hindsight is a vector-memory server. architxt pushes documents, entity labels, mental models, and directives to a Hindsight bank, and pulls existing knowledge back into the working graph. It is a critical dependency for the full knowledge workflow: without it you can upload and inspect individual documents, but you cannot build contextual graphs, run mental models, or perform cross-document reasoning.

Hindsight is required for:

  • Enterprise semantic search across documents.
  • Cross-document reasoning and mental models.
  • Contextual-graph sync and refresh.
  • Evidence-backed synthesis with exact memory IDs.

What you need​

RequirementPurpose
Hindsight server URLBase URL of the running Hindsight instance, e.g. http://localhost:8080
API tokenBearer token for authentication
Target bankThe bank that will hold your architxt corpus

You configure Hindsight as a server record inside architxt rather than in server/.env. After starting architxt, use Settings → Servers or the /api/v1/servers API to add:

  • base_url — the Hindsight server URL.
  • api_key — your API token.
  • name — a readable label.

Once a server is saved, you can select its banks from the Hindsight Sync page.

When you configure a Hindsight bank for use with architxt, set the default models for retain and reflect operations to gpt-oss:120b-cloud. These operations handle ingestion and reasoning over your corpus, and the larger model gives more reliable extraction and synthesis.

OperationRecommended model
Retaingpt-oss:120b-cloud
Reflectgpt-oss:120b-cloud

For detailed setup instructions, including how to install Hindsight and configure a bank, see the Hindsight install guide. It is also recommended to install the Hindsight Control Plane UI so you can inspect banks, memories, and operations outside of architxt.

Pre-install checklist​

  • Node.js 22+ and npm 10+ installed.
  • Python 3.10–3.12 available if you plan to run Docling.
  • Docling installed and docling serve reachable on the URL you will set in server/.env.
  • At least one LLM provider configured with a working endpoint or API key.
  • Hindsight server running and ability to create your first bank.

Next steps​