START HERE · v0.4.2.55

Install & first mission

Source: modules/anthill/README.md, a path from the root of the product's repository — versioned with the code, rendered here at every release.

Current version: v0.4.2.55

Runs on: Windows or Linux

Web interface: http://localhost:8713/ui

Formicaria is a self-hosted AI workspace built around a simple idea: give the colony a goal, let the Queen (coordinator) organize the work, and have specialized ants research, inspect, build, test, review, and report back. Every ant has a plain role beside its name, in the console and in the list of every ant.

You use it through a browser, much like a normal AI chat. The difference is that a request can become a structured mission with a visible task trail, safety checks, proposed file changes, and a result you can inspect before anything is applied.

Formicaria runs on your own hardware and keeps its history in a local SQLite database. The easiest model setup is Ollama, although external model providers can also be added after installation.

New here? Start with the Windows or Linux instructions below. You do not need to edit a configuration file, build the source, or understand the colony architecture to get the first mission running.

Pick the install that fits you

Your setup Best choice
Windows desktop Windows quick start
Linux desktop or a quick test server Linux quick start
Proxmox or an always-on Debian/Ubuntu server LXC and systemd install
Linux host where you already use Docker Docker
You want to change Formicaria itself Build from source

Before you install

Formicaria is the application. The AI model normally runs through Ollama, either on the same computer or on another machine on your network.

For the simplest first setup, you need:

  • A 64-bit Windows or Linux computer
  • A web browser
  • Ollama with at least one chat model installed
  • About 10 GB of free disk space for Formicaria, its data, and a small model
  • 8 GB of system RAM at minimum; 16 GB or more is much more comfortable

The model is what uses most of the RAM and GPU memory. Formicaria itself is comparatively light. A GPU is helpful but not required for a small Ollama model.

This guide uses llama3.1:8b as an approachable starter model. It is not hardcoded into Formicaria, and you can choose a different model that better fits your hardware.

Windows quick start

The desktop app. FormicariaDesktop.exe — included in the Windows download below — is Formicaria as a native Windows application: the same colony and the same console the server install runs, in its own window instead of a browser tab. Double-click it and it boots the colony in-process (bound to this computer only) and opens the console; if a Formicaria server is already running on this machine it attaches to that one instead of starting a second colony. If anything goes wrong it says so in the window, and the full story is in %LOCALAPPDATA%\Anthill\desktop.log. It needs the Microsoft Edge WebView2 Runtime, which Windows 11 and updated Windows 10 already include (otherwise: aka.ms/webview2).

Using the desktop app? Do steps 1–2 below, then just run FormicariaDesktop.exe — steps 3–4 are the browser-based server route.

1. Install Ollama

Using the desktop app? Skip this step. Since v0.4.2.23, the first time you sign in Formicaria opens Give your colony a brain: one button installs Ollama, downloads a model sized to your computer (it reads your graphics card and memory and recommends one), and points the colony at it. The same screen links your Claude or ChatGPT — a subscription, signed in through the vendor's own window, or an API key with a "Get my key" button. Reopen it any time with Ctrl+K → "Set up a model".

To do it by hand instead, download and install Ollama for Windows, then open PowerShell and download one model:

ollama pull llama3.1:8b

If PowerShell says ollama is not recognized, close PowerShell, open it again, and retry.

2. Install Formicaria

Download formicaria-setup-<version>.exe from the latest release and run it. It walks the normal Windows steps: license agreement, install location, a desktop icon (on by default — untick it in the same screen if you don't want one), a Start Menu entry, and a standard uninstaller. When it finishes, hit the desktop icon.

Formicaria installs for you, not for the whole machine — under %LOCALAPPDATA%\Programs\Anthill — so Windows never asks for administrator approval, to install or to update.

Updates install themselves. A new release is downloaded in the background, checked against the SHA-256 published beside it, and applied the next time you start Formicaria: no wizard, no prompt, no administrator approval. A download that does not match its published checksum is deleted and never run. Turn it off, or switch it to notify-only, with auto_update in Settings → Colony. Your colony's memory and settings live under %LOCALAPPDATA%\Anthill and survive every update, reinstall, and uninstall.

If you have an older copy installed under Program Files (all users), Formicaria offers to move it once — Windows asks for approval that one time, to remove the old copy, and never again.

Prefer a portable copy instead? The formicaria-<version>-win-x64.zip still exists — extract it somewhere permanent, such as:

C:\Formicaria

Either download already contains the .NET runtime, and since v0.3.18.0 the FORAGER knowledge engine with its own Node runtime, in a forager folder beside the program. You do not need to install the .NET SDK, Node, or FORAGER.

3. Start Formicaria

Open the extracted folder, right-click an empty area, and choose Open in Terminal. Then run:

.\anthill.exe --api --host 127.0.0.1

Keep that terminal open while Formicaria is running.

If Windows SmartScreen appears, make sure the file came from the official release link above before choosing More info → Run anyway.

4. Open the colony

Go to:

http://localhost:8713/ui

Create the first administrator account, sign in, and continue to Your first mission.

The command above keeps Formicaria local to that computer. If you later want to reach it from another device on your private network, start it with --host 0.0.0.0 and use the LAN address printed in the terminal.

Linux quick start

These instructions use the prebuilt release, so the .NET SDK is not required.

1. Install Ollama and a model

curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3.1:8b

2. Download and unpack Formicaria

mkdir -p "$HOME/formicaria"
cd "$HOME/formicaria"
curl -fLO https://github.com/Formicaria/formicaria-releases/releases/download/v0.4.2.55/formicaria-0.4.2.55-linux-x64.tar.gz
tar --no-same-owner -xzf formicaria-0.4.2.55-linux-x64.tar.gz
chmod +x anthill

3. Start it

./anthill --api --host 127.0.0.1

Open http://localhost:8713/ui, create the first administrator account, and continue to Your first mission.

For a headless server that should be available on your private network, use:

./anthill --api --host 0.0.0.0

Then open the LAN URL printed at startup. Do not expose port 8713 directly to the public internet.

LXC and systemd install

This is the easiest always-on installation for Proxmox or a dedicated Debian/Ubuntu machine. The installer creates an unprivileged anthill service account, builds Formicaria, starts it with systemd, and keeps its data across upgrades.

For a Proxmox LXC, a practical starting size is:

  • Debian 12 or Ubuntu 22.04/24.04
  • Unprivileged container
  • 2 CPU cores
  • 4 GB RAM
  • 16 GB disk
  • DHCP or a reserved LAN address

That is enough for Formicaria itself. Ollama will usually run on a separate machine with more memory or a GPU.

This route builds Formicaria from source inside the container, so it needs read access to the source repository (a deploy key on the box; the script's header says how) and is the way the maintainers run their own deployments. Without repository access, use the tarball from the Linux quick start above and the systemd notes in docs/DEPLOYMENT.md.

Open the container console as root, clone the repository to /opt/anthill/src, and run:

apt-get update && apt-get install -y curl ca-certificates git
bash /opt/anthill/src/modules/anthill/deploy/lxc/setup.sh

Check that the service started:

systemctl status formicaria --no-pager
journalctl -u formicaria -n 30 --no-pager

The log prints the URL to open from another computer. Create the administrator account there.

If Ollama is on another machine, sign in and set its address under Settings → Colony → Ollama Host, for example:

http://192.168.1.50:11434

Ollama must be listening on the network, and your firewall must allow the Formicaria machine to reach port 11434. See Using Ollama on another machine.

The complete Proxmox, systemd, Docker, and Windows-service notes live in docs/DEPLOYMENT.md.

Docker

Use this route if you are already comfortable with Docker. The included Compose file is designed for a Linux Docker host and uses host networking so a local Ollama service works without extra container networking.

cd modules/anthill      # inside a checkout of the repository
docker compose up -d --build
docker compose logs -f anthill

The Compose route builds the image from source, so it needs a checkout of the repository.

Open the URL shown in the logs. Formicaria's database and configuration are stored in the named anthill-data volume.

Docker Desktop on Windows and macOS needs bridge networking instead of the shipped host-network configuration. Follow the bridge-mode example in docs/DEPLOYMENT.md.

Your first mission

1. Confirm the model is ready

If Ollama has exactly one model installed, Formicaria uses it automatically. If you have several, Formicaria will ask you to choose instead of guessing.

To select one manually:

  1. Open Settings.
  2. Choose Models in the Settings rail.
  3. Pick the model under Default model, such as llama3.1:8b.
  4. Click Save changes.

You can see installed model names with:

ollama list

2. Send a simple message

Open Chat and try:

Explain how this colony processes a mission. Keep the answer short.

Formicaria should create a mission, route the work, and return an answer in the conversation. The mission details are there when you want them, but you do not need to understand every internal event to use Chat.

3. Give it a project to work with

Formicaria can only inspect files inside its configured workspace boundary.

  1. Put the project in Git so you can restore it if needed.
  2. In Formicaria, open Security → Workspace Boundary.
  3. Set agent_workspace_dir to the absolute path of the project.
  4. Save the setting.

For example:

C:\Users\you\source\my-project

or:

/home/you/source/my-project

For Docker, the project must also be bind-mounted into the container. The example is in docs/DEPLOYMENT.md.

Start with a read-only mission:

Inspect this project and explain what it does. Do not change any files.

What is enabled on a new install?

The colony ships with the full twelve-role roster available. Roles still run only when a mission actually needs them; enabling the full roster does not force every role into every mission.

These are the fresh-install defaults that matter most:

Area Fresh-install behavior
Colony roster full — all twelve roles are available, with per-role kill switches
Local model Unchosen; the only installed Ollama model is selected automatically, otherwise Formicaria asks
File access Read tools are on, limited to .anthill/workspace until you choose another boundary
Web, AI shell, writes, and patch application Off
Autonomy, auto-apply, infrastructure, and container execution Off
Organizational knowledge (FORAGER) Off — see Organizational knowledge
Operator Shell Off; an administrator turns it on under Settings → Security & Gates if they need a host terminal
Network bind 127.0.0.1 (this machine only) by default; --host 0.0.0.0 listens on every interface over plain HTTP, so use it only behind an HTTPS proxy or on a network you trust

For colony-run missions, the SAFE_LOCAL safety profile keeps web search, the ant shell tool, file writing, patch application, and unattended auto-apply closed until you deliberately enable them. The read-only file tool remains available inside the workspace boundary.

Before allowing repository changes:

  • Use a Git repository with a clean backup or remote.
  • Keep the workspace boundary as narrow as possible.
  • Review proposed changes and verification evidence.
  • Leave auto-apply off until you have tested the full flow on a disposable project.
  • Leave the admin Operator Shell off unless you need a browser-accessible terminal.

Formicaria is still pre-1.0 software under active development. It has deliberate safety gates, but it should not be trusted with irreplaceable files or unattended production changes. The measured current state and known gaps are kept in docs/PLAN.md.

Organizational knowledge (FORAGER)

Formicaria can answer from your organization's own documents — contracts, runbooks, decision records — instead of from the model's training. The knowledge itself lives in FORAGER, a separate local application that turns documents into evidence-backed statements. Formicaria never parses a document, never stores knowledge, and never resolves a contradiction: it asks FORAGER and presents what comes back with its support level and its provenance intact.

It is off on a new install, and a colony with it off is a normal colony. No tools are registered, the Knowledge page says so, and nothing about missions changes. It also adds no tables to Formicaria's database, so turning it on and off again leaves nothing behind.

FORAGER is in the box

Since v0.3.18.0 every release archive and the Windows installer carry FORAGER beside anthill, in a forager/ folder — the engine, its interface and its own Node runtime, so there is nothing to install and nothing to download. The colony finds it there and runs it itself: open Knowledge and press Enable knowledge, and the engine starts under the colony's supervision, on a loopback port only the colony knows, with a credential the colony mints at every start. Its data lives under the colony's own data directory (forager-data), and it stops when the colony stops. Steps 1 and 2 below are for the other arrangement — a FORAGER you run yourself, on this machine or another — and knowledge_forager_bundled: false in .anthill/config.json is how you tell the colony to ignore the one it shipped with.

1. Run FORAGER yourself (only if you want to)

Follow FORAGER's own install guide. It binds 127.0.0.1:8790 by default and runs in deterministic mode with no model provider configured, which is enough — extraction quality improves with a model, but nothing here requires one.

Check it is up before going further:

curl http://127.0.0.1:8790/api/ready

A healthy instance answers {"status":"ok", …}. Formicaria probes this same path, so if curl cannot reach it, neither can the colony.

2. Point Formicaria at it and map your projects

Edit .anthill/config.json. With the engine that shipped in the box, skip the endpoint and set only the project map; for a FORAGER you run yourself, the endpoint too:

{
  "knowledge_forager_endpoint": "http://127.0.0.1:8790",
  "knowledge_project_map": {
    "proj_acme": "acme-contracts",
    "proj_platform": "platform-runbooks"
  },
  "knowledge_default_project": ""
}

knowledge_project_map maps your Formicaria project id to a FORAGER project id: a project that should read a knowledge base of its own. knowledge_default_project is your colony's knowledge base, and since v0.4.2.23 it is what every chat with no project, and every project with no entry in the map, reads — so importing files is all it takes for the colony to answer from them. The boundary still holds where it matters: a mission in another organization never reads the installation's knowledge, a project mapped to a base reads that base, and a project mapped to "" reads none.

Or do both from the console, without touching the file. The first files dropped on Knowledge › Import make your colony's knowledge base ("My knowledge") and go into it. The bar at the top of every Knowledge section shows your colony's knowledge first, and binds a project to a knowledge base of its own, picked from FORAGER's list or made there by name. Knowledge › Advanced lists every binding and changes where FORAGER is — loopback addresses only. What stays in the file is knowledge_forager_allow_remote (below): it decides whether the colony may trust a service on another machine as its source of fact, and a compromised console must not be able to widen that.

3. Turn it on

Open Knowledge and press Enable knowledge. It takes effect on the next request — no restart — because the module re-reads its settings on every call.

If the page shows the switch as pinned by ANTHILL_KNOWLEDGE_ENABLED, that environment variable overrides the config file; change it where the process environment is defined. You can also set "knowledge_enabled": true in the file directly.

4. Use it

The Knowledge area is named for what a person does there (v0.4.2.23): Import, Review, Browse, Export, and Advanced for everything else. Import opens with the four steps — add files, the colony reads them, settle what it was not sure of, ask away — and a drop zone. A bar at the top of every section says whose knowledge it shows (your colony's, or a project's own), with FORAGER's counts and how many disagreements await review, and where the engine stands.

Section What it holds
Import Every file FORAGER has registered for the knowledge base, and whether it could read it; each opens its own page — its facts, what went wrong in FORAGER's words, the extracted text, its chunks and the statements it supports. Upload files or Upload a folder (each batch is measured against your plan before anything is stored, then imported exactly as measured), or Import by path for material already on the machine — which says the folders the FORAGER the colony runs may read, and lets an administrator allow one (below). The last processing run, and Processing under it: the five phases, the eleven stages with their warnings, Run processing, Force full reprocess, Cancel and Retry.
Browse Every statement FORAGER holds, with FORAGER's filters — text, type, status, fact or inference, conflict state, review, a minimum confidence — its counts beside each choice and its four orders, a page at a time; or search them. Each shows its support level, its status and whether another statement disagrees with it, and opens Why FORAGER believes this — the exact passages behind it — where you mark it reviewed, reject it or reset its review. What a mission is told shows the block a mission receives, verbatim. People and organizations lists everyone FORAGER found, and opens a person's or an organization's page: the names they go by, what was merged into them, possible duplicates, relationships, the statements about them and where they are mentioned — and there a possible duplicate is merged or kept apart, and a merge undone.
Review One queue of disagreements. FORAGER's — conflicting values, sources that disagree, statements that lost their source, duplicate files, possible duplicate people or organizations — each open with both sides and their evidence, and decided with FORAGER's own choices: use the statement you select (FORAGER's suggestion is selected for you to confirm, never applied), keep both, dismiss, or archive the duplicate files; merge two people or organizations, or say they are not the same. The colony never picks one. Decided lists what was decided, by whom, and reopens it. And the colony's own objections, which you accept or decline and then apply to FORAGER.
Export Make a pack for another AI platform — for ChatGPT or Claude projects, for NotebookLM, for a vector database, or a spreadsheet (CSV), below — or an export of the whole knowledge base — an Obsidian vault, JSONL, or the colony package, with FORAGER's options — and download it through the colony, which hands it over only as the archive FORAGER recorded (its SHA-256 is checked). FORAGER's export history — format, state, file, size, what each holds, and whether its archive is still kept, with Download while it is — then the exports FORAGER announced, from which update each was made, and whether this colony reads the package format.
Advanced The engine the colony runs, the switch, the credential and endpoint of a FORAGER you run yourself, and every binding, your colony's own among them. Under it, How the colony studies (/knowledge/colony): Study new sources, the study schedule and what a published update does, What changed, What FORAGER has published with what the colony did about each update, and the Dead letters it could not use. Studying and reading FORAGER's updates now are done for the project picked in the bar.

Every statement carries its support level — direct fact, supported inference, uncertain inference, unverified claim — and a control that opens the exact source excerpt behind it.

The Map

The Map is one of the six tabs across the top (Chat, Colony, Knowledge, Map, Devices, Settings since 20 October 2026), and once a knowledge base is bound it is where the console opens (a new colony with nothing imported still opens where it did). It draws what FORAGER found in your documents as a graph: people, organizations, customers, projects, products, events, places and other things as discs coloured by kind, documents as squares, each sized by how many connections it has; a line between two things is a relationship FORAGER read (works for, located in, …), coloured by its kind, and the faint lines are where a thing is named in a document. The most connected thousand are drawn first — Draw … more adds the next thousand, up to six thousand on screen — and labels thin out as you zoom out, so a large knowledge base stays readable. Positions are laid out once and kept in your browser, so the map does not jump between visits.

  • Search takes the same words and operators as Knowledge's search — "a phrase", -word, OR, tag:, path:docs/transition, type:person, section: — and lights the matches, dims the rest and says how many it found and how many are drawn here (inside a neighbourhood it looks among its nodes, and says how many the whole map has); Show only the matches redraws just them, as a view you can step back out of. The chips under the search box switch each kind on and off, and Connections picks which relationship types to draw.
  • Click a node for its panel; double-click it (or Focus here) to redraw its neighbourhood, one to three steps out, with the breadcrumb — Whole map › Robert Smith · 2 steps out — as the way back. Shift-click selects several.
  • The panel reads what the knowledge base holds on the selection: the names a person or organization goes by, where a document sits and its connections; What the documents say — each statement with its support level, the document and place it rests on and the passage quoted, five at a time; Relationships, with their passages; Named in; Disagreements it is part of, with the colony's own objections and the ant that raised them. Open in Knowledge goes to the same record there.
  • Ask about this hands the selection to Chat as the question's context: the node (or every node selected), its statements with their quoted sources, its relationships and the documents it is named in, attached to the conversation as map-selection.md for the colony to read. A question typed in the panel is asked at once, in the project whose knowledge base the map shows (your colony's own questions go to the Questions project); without one, Chat opens with the context attached and a question offered. The answer comes back in Chat, answered by "Queen - coordinator", as the panel says.

The map is read through GET /knowledge/graph, the same permission and the same knowledge base as everything else on this page (docs/KNOWLEDGE_API.md), so a viewer of a project sees that project's map and nothing else's.

Taking it to another AI platform: the packs

Knowledge › Export opens with four packs, under For another AI platform: the knowledge base packaged for a tool the client already uses, every fact still carrying where it came from. Each says what it holds and the size it is built to; Generate and download has FORAGER build it, follows it, and takes the archive away through the colony once it matches the SHA-256 FORAGER recorded, then says what to do with the file.

Pack For In the archive Then
For ChatGPT or Claude projects a ChatGPT project's files, or a Claude project's knowledge upload/00 Index.md (what the knowledge base holds and what each file covers), then one Markdown file per group of subjects — people, organizations, projects and the rest, a large group split into parts, and groups shared out across the files when a project holds fewer files than there are groups, each file titled by the groups it holds — each statement under its subject followed by [Source: the document, where in it: “the words it rests on”], connections in words, and disagreements with each side's source Add every file in upload/ to the project. ChatGPT takes ten files in one upload, so a larger pack goes in two or three; its README says how many
For NotebookLM a notebook's sources one Markdown source per subject, or neighbouring subjects together when there are more subjects than a notebook holds sources (of one kind where the notebook holds enough sources; the README says when a source holds more than one), each opening with what it covers and closing with its numbered citations Add the files in upload/ to one notebook
For a vector database any vector store records.jsonl, one record per statement, named thing and connection — the text, flat metadata (what it names, the document, the page or lines) and its citations — with record.schema.json, and an embedding only where FORAGER made one, with the model that made it Load it as its README says (no vendor's SDK); embed a record without a vector with your own model
Spreadsheet (CSV) Excel, Numbers, Google Sheets or a database entities.csv, statements.csv and relationships.csv, whose ids join, each statement and connection with its citation in its own columns Open them; the README says how they join and what each count counts

Every pack also holds a README.md and a manifest.json: the revision it was built from, the counts, what was left out and why, and every file's size and SHA-256, so a copy can be checked.

  • Only what it can cite. A statement no document text could be quoted for is left out and counted, never stated bare; nothing is invented. A pack holds what the knowledge base says now: superseded and stale statements stay out.
  • Sized to the platform, or refused with the numbers. The two Markdown packs are built to each platform's published limits for a paid plan — a project of at most 25 files, each at most 30 MB and about 2,000,000 tokens, and 2,000,000 tokens in all; a notebook of at most 50 sources, each at most 500,000 words and 200 MB — and the page shows the numbers the engine is set to. They are FORAGER's settings (FORAGER_PACK_*; FORAGER's own guide to exports, exports.md in its documentation, gives each with the platform page it comes from), and the FORAGER the colony runs reads them from the colony's environment: set them where that environment is defined and restart the colony. A knowledge base too large for them is refused, and the page says FORAGER's sentence with what it needs and what the limit allows; nothing is cut to fit. The 2,000,000 tokens in all is a Claude project's (its context window, ten times over with RAG); a ChatGPT project states no total, so for one, raise FORAGER_PACK_CHAT_MAX_TOTAL_TOKENS (25 files of 2,000,000 tokens is 50,000,000) — or use the vector database pack, which has no size limit.
  • Embeddings are carried, never made. The vector database pack carries a statement's vector only where FORAGER embedded it (FORAGER_EMBEDDING_MODEL set when the knowledge base was processed), with the model's name; its manifest says when there are none, and why.

Making a pack and downloading it take what any export takes (below): read_knowledge, and for the download the project's operator or administrator role.

Missions reach the same knowledge through tools that are registered only while the integration is on. Five of them are read-only — knowledge_search, knowledge_retrieve (the main retrieval path), knowledge_get, knowledge_evidence and knowledge_entity — and all five are scoped to the mission's project through the map above, so a mission cannot name a FORAGER project directly.

The sixth, knowledge_review, does not change anything: it writes a proposal into Formicaria's approval pipeline for an operator to accept or decline. Nothing a mission does can edit your knowledge base.

Reading needs the read_knowledge permission, and so do making an export and downloading one (downloading also takes the project's operator or administrator role); making a knowledge base, starting, cancelling and retrying ingestion, and deciding what FORAGER asks a person to decide — a disagreement, a possible duplicate, a statement's review — need manage_knowledge. Both are granted by default — knowledge_enabled is the gate that actually matters, and it ships closed. Deciding is Forager's paid curation (forager.knowledge.curate): a colony whose Forager subscription has lapsed is refused it, and keeps reading and exporting everything it has.

Import by path on the FORAGER the colony runs. FORAGER reads a folder only under one it was allowed, and allows none by default. knowledge_forager_input_roots is the list the colony hands the engine it runs (as FORAGER_ALLOWED_INPUT_ROOTS) when it starts; it is empty by default, so nothing is allowed until you allow it. Every folder must lie inside the colony's workspace (agent_workspace_dir), where the colony's own import by path already confines a path — a folder outside is refused, with the reason. Sources › Import by path says what FORAGER may read now, lets an administrator edit the list, and offers Restart FORAGER now while a saved change waits for the engine's next start. A FORAGER you run yourself reads its own FORAGER_ALLOWED_INPUT_ROOTS.

Reaching a FORAGER on another machine

FORAGER authenticates every /api route, but it is built to own its loopback interface, and across a network the colony's credential is all that stands between that network and your knowledge base. Formicaria therefore refuses a non-loopback endpoint unless you say otherwise:

{
  "knowledge_forager_endpoint": "https://forager.internal:8790",
  "knowledge_forager_allow_remote": true,
  "knowledge_forager_token": "…"
}

knowledge_forager_token is required against FORAGER 0.7.0 and later, loopback or not: FORAGER authenticates every /api route, and a colony without a credential gets 401 on every retrieval and ingestion call. Mint an fgr_ integration token in FORAGER's Settings, scope it to read and ingest, limit it to the projects you have mapped, and paste it here. Rotating it takes effect on the next call. (This paragraph used to say the token was only for proxied installs; that was true before FORAGER 2026-09-08 and false after.) knowledge_forager_allow_remote is not editable from the console on purpose — putting a knowledge base on your network over plain HTTP is a decision to make in the file, deliberately, rather than one to inherit from a copied config.

When something is not working

The Knowledge area tells these apart on purpose — every section shows how to fix the first four, under the bar, since nothing else works until they are fixed — and which one you are in decides what to check:

What it says What it means
Knowledge is off · Connect a knowledge base knowledge_enabled is false. Nothing is wrong.
FORAGER is starting The colony runs its own FORAGER and it is on its way up; the page looks again by itself. If it says stopped, the card above it says why.
The knowledge base is not responding Configured, but a FORAGER you run yourself did not answer. Check it is running and that the endpoint matches.
FORAGER refused the credential FORAGER answered and refused the colony's credential. For a FORAGER you run yourself, give the colony a new fgr_ key in FORAGER's Settings and paste it on Connection; the one the colony runs is given a new credential at every start.
Searched, and nothing found FORAGER answered and knows nothing about that query — or the mission's project is not bound to a knowledge base.

A mission that cannot reach knowledge reports itself unavailable rather than answering from assumption, and missions continue without it.

For the boundary, the retrieval pipeline, the API surface and the security model, see docs/FORAGER_INTEGRATION.md, docs/KNOWLEDGE_ARCHITECTURE.md, docs/KNOWLEDGE_API.md and docs/KNOWLEDGE_SECURITY.md.

Using Ollama on another machine

On the Ollama machine, make Ollama listen on the network.

Linux:

sudo systemctl edit ollama

Add:

[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"

Then restart it:

sudo systemctl daemon-reload
sudo systemctl restart ollama

From the Formicaria machine, confirm it is reachable:

curl http://OLLAMA_MACHINE_IP:11434/api/tags

Finally, set Settings → Colony → Ollama Host to:

http://OLLAMA_MACHINE_IP:11434

Only expose Ollama to a trusted private network or protect it with an appropriate network boundary.

Signing in to a colony on another machine

Every colony serves its own console, so opening http://OTHER_MACHINE_IP:8713/ui in a browser needs nothing more.

The sign-in form's Connecting to Formicaria on another machine? is for a console that stays where it is, such as the desktop app's, and sends every call to the address typed there. A browser allows that only when both machines say so, each in its .anthill/config.json.

On the machine whose console you open, list the colony it may reach:

"console_connect_origins": ["http://OTHER_MACHINE_IP:8713"]

On the machine you sign in to, list the address you open that console at, exactly as the browser's address bar shows it (scheme, host and port; the desktop app's is http://127.0.0.1:8713):

"api_allowed_origins": ["http://THIS_MACHINE_IP:8713"]

Restart both. Each entry is an exact origin: a wildcard, a path or anything else is ignored with a warning at start. Both lists are empty by default, which keeps a console to the colony that served it. A call from another origin still signs in and passes every check a call from the colony's own console does.

A session belongs to the colony that issued it. Changing the address a console talks to, on the sign-in form or under Settings › Connection › API base URL, ends that browser's session before anything is sent, so neither machine ever receives the other's; the console asks you to sign in at the new address and reopens on it once you have.

Where Formicaria keeps its data

Formicaria creates its configuration automatically on first launch. You do not need to copy or edit config.example.json to get started.

Installation Data location
Windows or Linux release archive .anthill inside the folder you launch Formicaria from
Source checkout <repo>/.anthill
LXC installer /opt/anthill/.anthill
Docker The anthill-data volume, mounted at /app/.anthill

That directory contains the databases (anthill.db, infrastructure.db, and micromound.db once devices are turned on), configuration, logs, backups, exports, workspace, and local encryption material. Back it up before upgrading or moving the installation: Settings → Diagnostics → Back up now while Formicaria runs, or anthill --backup with it stopped — either takes every database, checks the copy and rehearses restoring it (docs/MIGRATION.md). The colony deletes every backup in its backup folder (backups in that directory) 30 days after it was taken — backup_retention_days, 7 to 90, changes the window — so copy a backup you are relying on somewhere else. What the colony said to itself while working — agent messages, artifacts, task results, events and source records — is deleted 180 days after its mission ended (event_retention_days; 0 keeps it all), and approvals, escalation decisions and metrics after two years; a running mission is never touched (one a stopped colony left running is ended as failed at the next start, counted as ended at its last sign of life), and the colony's own log of what its operators and API did is not swept (docs/MIGRATION.md). A decided patch loses its file contents and pre-apply backups 90 days after the decision (patch_retention_days, 30 to 365), conversations are kept until deleted unless conversation_retention_days chooses 90, 180 or 365 days of inactivity, and device evidence is kept 24 months (device_evidence_retention_months, never fewer than 12). The FORAGER engine the colony runs keeps what it derives by FORAGER's own windows — caches 90 days, the model's output 7, unsupported knowledge 180 — and Settings → Diagnostics sets them (forager_*_retention_*; left unset, FORAGER's default or its FORAGER_RETENTION_* variable applies, and a change applies at the engine's next start). Do not publish the directory or commit it to Git.

Beside those databases is the audit trail: audit.db and the audit folder, the colony's tamper-evident record of who did what — sign-ins and their refusals, accounts and roles, projects, devices, the operator shell, settings, backups, exports and the trail's own reads. Every record is chained to the one before it, and the files refuse any update or deletion. Never edit, vacuum or delete them by hand: a backup copies them but a restore never puts them back, and Compact & prune never touches them. Settings → Audit trail shows how far each stream verifies, what is waiting to be sealed, and the records themselves; an organization's owners read and export its trail there, and a break in a stream raises a notice across the whole console that nothing dismisses. anthill --audit-verify checks every stream from its first record (it only reads, so it runs beside a running colony), anthill --audit-export --out <folder> writes an organization's streams as files with the colony stopped, and anthill --audit-verify --export <folder-or-zip> checks an export anywhere, with no colony at all (docs/MIGRATION.md, "The audit trail").

An installation upgraded from a version before v0.4.2.0 keeps each module's tables inside anthill.db, and says so when it starts, until you stop Formicaria and run anthill --migrate-stores, which backs everything up, rehearses the move on the copy, and then moves them. See docs/MIGRATION.md.

Most settings are easier and safer to change through the web interface. The generated configuration file is .anthill/config.json if you need it for advanced deployment work.

Useful launch overrides:

Option What it changes
--host 127.0.0.1 Only this computer can open Formicaria
--host 0.0.0.0 Devices on the private network can open it
--port 8714 Uses a different web port
--ollama-host http://IP:11434 Uses Ollama on another machine
--ollama-model model:tag Selects a specific local model

Updating

Back up the .anthill data directory first.

Windows or Linux release archive

  1. Stop Formicaria.
  2. Download the newest archive from Releases.
  3. Replace the program files with the files from the new archive.
  4. Keep the existing .anthill directory.
  5. Start Formicaria again.

Database and configuration migrations run automatically at startup.

LXC / systemd

A service installed by deploy/lxc/setup.sh updates itself the same way the Windows app does: the colony downloads the next release's linux-x64 archive, verifies it against the published digest, and the unit's pre-start hook swaps it in at the next systemctl restart formicaria (or reboot). auto_update in .anthill/config.json turns that off or makes it notify-only. To rebuild from source instead:

cd /opt/anthill/src
git pull --ff-only
bash deploy/lxc/setup.sh

Docker deployment

git pull --ff-only
docker compose up -d --build

The anthill-data volume remains in place.

Source checkout

git pull --ff-only
dotnet build Anthill.sln -c Release
dotnet test Anthill.sln -c Release --no-build

Troubleshooting

The web page does not open

  • Make sure the Formicaria process is still running.
  • Use http://localhost:8713/ui on the same computer.
  • On another device, use the LAN URL printed at startup.
  • Do not enter http://0.0.0.0:8713; 0.0.0.0 is a listening address, not a browser address.
  • If port 8713 is busy, restart with --port 8714 and open that port instead.
  • For LAN access, make sure the host firewall allows the selected port on private networks.

Ollama is unreachable or no model is selected

Check Ollama locally:

ollama list
curl http://localhost:11434/api/tags

If Ollama is on another machine, replace localhost with its IP address. If several models are installed, choose one under Settings → Colony.

A mission cannot read the project

  • Confirm Security → Workspace Boundary points to the project's absolute path.
  • Confirm the Formicaria user has permission to read that directory.
  • For Docker, confirm the directory is mounted inside the container.
  • For an external coding agent, confirm its working directory is still inside the same boundary.

Reset a broken configuration without deleting mission history

Stop Formicaria and rename .anthill/config.json to config.json.bak. Start Formicaria again and it will create a fresh configuration. Your SQLite databases remain in .anthill/ (anthill.db and the files beside it).

Find the logs

LXC / systemd:

journalctl -u formicaria -n 100 --no-pager

Docker:

docker compose logs --tail 100 anthill

Portable Windows or Linux installs print startup and runtime errors in the terminal where Formicaria was started.

If you report a problem (formicaria.us/contact), include your Formicaria version, operating system, installation method, and the relevant error text. Remove API keys, tokens, passwords, webhook URLs, and other secrets first.

Command-line checks

Run these from the folder containing anthill or anthill.exe.

Linux:

./anthill --version
./anthill --selftest
./anthill --status

Windows PowerShell:

.\anthill.exe --version
.\anthill.exe --selftest
.\anthill.exe --status

Run anthill --help for the complete command list.

These open the colony's database, so they need it to themselves: while Formicaria is running, stop it first. One database has one writer. A command started while a colony is running is refused — it names the process that holds the database, changes nothing, and exits with code 11 — and the same goes for --set-password, so a lock-out is recovered by stopping the service, resetting the password, and starting it again. The files beside the databases named anthill.db.owner, infrastructure.db.owner and micromound.db.owner are how this is enforced; never delete them. anthill --inventory is the exception: it only reads, and works on a running colony. See docs/MIGRATION.md.

The audit trail's own checks:

./anthill --audit-verify                      # every stream from its first record; reads only, runs beside a running colony
./anthill --audit-export --out ./audit-export # an organization's streams as files, with the colony stopped (--org <id> when it has several)
./anthill --audit-verify --export ./audit-export   # or the .zip the console's Export downloaded; needs no colony

--audit-verify exits 0 when every stream verifies and 1 on a break; --audit-export exits 0 written and intact, 1 written with a broken stream (its manifest says where), 2 for a folder that is not empty or an organization the colony does not hold, and 11 while the colony runs — export a running colony from Settings → Audit trail instead.

Build from source

You only need this section if you are developing Formicaria, which means you have access to the repository it lives in (modules/anthill of the Formicaria repository).

Requirements:

  • .NET 10 SDK
  • Git
  • Optional: CMake and a C++20 compiler for the native kernel

The native kernel is optional. Without a C++ toolchain, Formicaria uses the managed C# implementation.

Clone and run:

cd modules/anthill      # inside a checkout of the repository
dotnet run --project src/Anthill.Cli -- --api --host 127.0.0.1

Run the full validation and publish flow:

Linux:

./build.sh

Windows PowerShell:

.\build.ps1

Run only the tests:

dotnet test Anthill.sln -c Release

How the repository is organized

src/Anthill.Cli/          Command-line entry point
src/Anthill.Api/          Web API and runtime host
src/Anthill.Core/         Queen, mission flow, memory, policy, and domain logic
src/Anthill.Modules/      Reasoning, tools, and infrastructure integrations
src/Anthill.SDK/          Shared contracts for modules and tools
src/Anthill.UI/           Browser interface
tests/                    Automated test projects
deploy/lxc/               LXC and systemd installer
docs/                     Architecture, operations, and roadmap documentation

Learn more

Current release

The shipped defaults make the full twelve-role roster available to new installations, confine write-capable external agents to Formicaria's workspace boundary, and ensures Archivist output exists before the learning pass consumes it. Finalization steps are also recorded so they are not applied twice during recovery.

That is the only release summary kept in this README. Older release notes belong in CHANGELOG.md.

License

Apache License 2.0