Skip to content
AnythingLLM Alternative
Page

Self-host an open-source AnythingLLM alternative

For hosting the agent service on company infrastructure, my pick is open-source Kortix, and I work on Kortix marketing, so weigh that connection accordingly. For a Kortix deployment, plan for the application stack and the separately configured session computers; self-hosting the application does not make the setup disconnected.

Quickstart

Start a Kortix instance, two ways

Install the CLI for the managed cloud, or stand up your own self-hosted stack from a terminal.

Illustrative example · terminal
$ curl -fsSL https://kortix.com/install | bash$ kortix init$ kortix ship
Illustrative example · terminal
$ curl -fsSL https://kortix.com/install | bash$ kortix self-host init --domain kortix.example.com$ kortix self-host start$ kortix self-host status
What it is made of

What a self-hosted Kortix is made of

Four layers, each one a real file or command you can open in the repo.

  1. L1
    Repo

    One git repo is the project

    Your agents, skills, company memory and connectors are files in one git repo you own. kortix.yaml declares the machine image, the connectors, the triggers, and secret names.

    Illustrative example · project
    project (git repo + kortix.yaml)└─ session ──> isolated sandbox on branch "<uuid>"└─ agent commits + pushes└─ change request ──> merge ──> default branch
  2. L2
    Sandbox

    Each session runs on its own sandbox

    Agent sessions run on a separate sandbox provider, not on the self-host stack. The default is Daytona; Platinum and E2B are also supported.

    Illustrative example · README
    Every session gets its own cloud computer —a disposable, isolated Linux sandbox on its own branch.
  3. L3
    Connectors

    Reach declared in the config

    Connector credentials are brokered server-side and never enter the machine.

    Illustrative example · kortix.yaml
    agents:  support-triage:    file: agents/support-triage.md    connectors: all
  4. L4
    Review gate

    Work lands through a change request

    An agent opens a change request when its session has commits ready. Merge is default-deny for agents, so a person reviews the diff.

    Illustrative example · review
    change request ──> you review & merge ──> mainMerge is default-deny for agents: you review the diff.

What self-hosting each AnythingLLM alternative needs

AnythingLLM ships in two shapes, and they are not the same product. The desktop app installs on macOS, Windows or Linux, runs locally, and includes a built-in LLM provider; it is single-user. The Docker deployment is the one that adds multi-user support, workspace access management, password protection and embeddable chat widgets. It needs Docker and an external LLM provider, and Mintplex Labs recommends it when many people use one instance at the same time. Both are open source. The split is documented in the Docker vs Desktop table, and the repo describes the app as running locally by default (AnythingLLM on GitHub).

Separate application hosting from session compute in your deployment plan. The self-hosting guide explains the application stack and the sandbox provider configuration.

Where a document chat stops and a company system starts

AnythingLLM does one job well: it answers over the documents you give it. You load files, pick a workspace and chat. The instance is the product, and the state that builds up lives inside that instance.

Kortix is built around a different unit. A project is a git repo that holds the agents, the skills they share, the company memory and the connectors as files, versioned and reviewed like code. One isolated sandbox per session. Each session has its own isolated machine and branch. When the work is ready, the agent opens a change request, and merge is default-deny for agents, so a person reviews the diff before it reaches main. That is the line between a self-hosted chat app and a self-hosted system of record: one keeps answers, the other keeps the work and the configuration that produced it.

What a Kortix self-hosted deployment takes

From the self-hosting documentation, a production instance needs:

  • One Linux box. The one-shot bootstrap script runs on Linux only.
  • A domain with A/AAAA records for the domain and for api.<domain>, both pointing at the box.
  • Ports 80 and 443 open, so the bundled proxy can issue a TLS certificate.
  • A sandbox provider key, set after the stack starts with kortix self-host configure.
  • A model key you own. Self-hosted instances use your own key by default.

The API has a default memory limit, and the docs keep that default on an 8 GiB host. Updates are automatic unless you pin a version or turn them off. Kortix has no separate backup system: each instance keeps its data in two directories under ~/.config/kortix/self-host/<instance>/ (volumes/db/data and volumes/storage), and you back those up with the instance's .env. Kortix runs on Kortix Cloud, in your VPC, or on your own on-prem network, and self-host is free; you pay your own model and compute bills.

Two limits are worth stating. The instance must be reachable, because each session's sandbox calls back to it, and the one-shot bootstrap pulls its images from docker.io. If your security review needs a tighter topology, Kortix scopes that with you instead of claiming it out of the box. To skip the server entirely, Get started with a managed project.

FAQ

Frequently asked questions

Yes. AnythingLLM offers a desktop app for macOS, Windows and Linux and a Docker deployment. The Docker deployment adds multi-user support and workspace access management; the desktop app is single-user. Both are open source, per the Docker vs Desktop table.

Self-host is free, and you pay your own model and compute bills. Kortix publishes what the free tier includes and what the team plan adds.

One Linux box, a domain with A/AAAA records for the domain and api.<domain>, ports 80 and 443 open, a sandbox provider key and your own model key. Installation is one Docker Compose stack, started with kortix self-host start.

Yes. Kortix runs on Kortix Cloud, in your VPC, or on your own on-prem network, and self-host is free. For an isolated topology, the Kortix team scopes it with you.

Yes. Kortix is open source; its public source is available at Kortix on GitHub.

Yes. Self-hosted instances use your own key by default, and Kortix supports any model provider with your own keys.

Terminal

Self-host the open-source CompanyOS

One command starts the stack, and the repo stays yours.

Open source · Any model, your keys · Self-host, VPC, or on-prem