Docs Run Entropix yourself

Configuration

Every environment setting, what it does and its default.

entropixd reads its settings from environment variables when it starts. This page lists every one, grouped by what it controls, with what it does and its default. Only ENTROPIX_DATABASE_URL is required; everything else has a default or turns a feature off when left out.

On your server The environment of the entropixd process and of every entropixd command Operator

Before you start

  • Settings are read once, at start. Restart the process after changing one.
  • The commands (entropixd migrate, features and the rest) read the same settings and refuse to run if any is invalid, so give them the same environment as the server.
  • A value the portal cannot use stops the start with a message naming the setting, for example ENTROPIX_LLM_PARALLEL: 100 is outside 1 to 64. A missing optional setting prints a warning instead and turns off what needs it.
  • Settings an organisation chooses for itself (its models, tools, channels, Git host) are not here: admins set them on Settings.

Database

SettingWhat it doesDefault
ENTROPIX_DATABASE_URLThe Postgres 17 database the portal works in, as a postgres:// or postgresql:// URL with a host, for example postgres://entropix_app:…@host:5432/entropix?sslmode=require. In production, connect as the app role.Required
ENTROPIX_DATABASE_MIGRATE_URLA second URL, for the owner role, used only to apply migrations (and by the commands). Leave it out and migrations run on ENTROPIX_DATABASE_URL, whose role must then own the schema.Not set
ENTROPIX_DATABASE_ROLEA role every connection switches to, for a setup with one login: connect as the owner and set this to the app role. See Database roles in short.Not set
ENTROPIX_DATABASE_MAX_CONNSThe most database connections one process opens, shared by page requests and background work. 1 to 64.16
ENTROPIX_DATABASE_MIGRATEauto applies pending migrations at start. off never does, and refuses to start while any is pending (ENTROPIX_DATABASE_MIGRATE=off and N migration(s) are pending …: run entropixd migrate first), so migrations run only when you run entropixd migrate.auto

Server

SettingWhat it doesDefault
ENTROPIX_ADDRThe address and port the portal listens on. Unless ENTROPIX_PUBLIC_URL is https, it must be a loopback address (localhost:4173, 127.0.0.1:4173, [::1]:4173), or the portal refuses to start.localhost:4173
ENTROPIX_PUBLIC_URLThe address people and services use to reach the portal: scheme, host and optional port only, with no path, query or password. Every link the portal hands out is built from it: invite and reset links, the /mcp address, Slack and Teams setup, tool server sign-in callbacks, the GitHub App's callback. Set it to your proxy's https address; that lifts the loopback rule and marks session cookies secure.http:// + ENTROPIX_ADDR

Security

SettingWhat it doesDefault
ENTROPIX_SECRET_KEYEncrypts every secret organisations store: SSH keys, model keys, Git host tokens, tool server credentials, channel bot tokens, Chat API callback secrets, memory provider keys and what runners carry. Chat API keys and runner credentials are kept only as hashes, so they need no key. Use a long random value (for example openssl rand -hex 32); any length works. Changing it later makes every stored secret unreadable, so keep it with your backups. Unset, the start warns ENTROPIX_SECRET_KEY unset — no organisation can connect GitLab or add an SSH key, so no repository can be scanned, and Settings tells admins keys can't be saved yet.Not set
ENTROPIX_GITLAB_ALLOWED_NETWORKSNetworks, as comma-separated CIDR ranges (10.0.0.0/8, fd00::/8), that outbound connections may reach even though they are private or link-local. By default the portal refuses to connect to such addresses, so an organisation cannot point it at your internal network. Despite its name, it covers every outbound connection, not only GitLab: list a network here to allow a self-hosted GitLab, SSH Git remotes, model servers, tool servers and their sign-in, memory providers, Slack, Discord and Teams clients, or hosts an agent calls with http_request, inside it. A bad entry stops the start: … is not a network in CIDR form (10.0.0.0/8, fd00::/8).None

Model

These set a model for the whole server. An organisation that adds its own model servers on Settings › Models uses those instead (see Choose a model). With neither, nothing that needs a model can run, and the start warns about it.

SettingWhat it doesDefault
ENTROPIX_LLM_BASE_URLThe model server's address. An address on api.anthropic.com uses Anthropic's own Messages API, with prompt caching. Any other address is treated as OpenAI-compatible: the portal posts to {base}/chat/completions, for example http://localhost:11434/v1 for Ollama. Both this and ENTROPIX_LLM_MODEL must be set. Unlike addresses organisations enter, this one may be on a private network.Not set
ENTROPIX_LLM_MODELThe model name to ask for. It must be able to call tools.Not set
ENTROPIX_LLM_API_KEYThe key sent to the model server with each request. Leave it out for servers that need none, such as a local Ollama.Not set
ENTROPIX_LLM_REASONING_EFFORTSent as the request's reasoning effort. Passed on as written; which values work is up to the model server. none turns thinking off on Ollama.Not set
ENTROPIX_LLM_MAX_TOKENSThe most tokens one answer may have. A positive whole number.2048
ENTROPIX_LLM_TIMEOUTHow long one model call may take, as a duration such as 90s or 10m.5m
ENTROPIX_LLM_MAX_PROMPT_BYTESThe most bytes of instructions and prompt one job may send, checked before its first call. The default suits a model with about 128,000 tokens of context; lower it for a small local model. A job over the limit fails with a message naming this setting. Not applied on Anthropic, where the first request is counted in tokens against the model's own window instead.262144 (256 KiB)
ENTROPIX_LLM_CONTEXT_TOKENSThe model's context window in tokens, 4,000 to 2,000,000. The chat context bar measures against it for organisations with no model of their own, and Settings › Models shows it as the portal default. Set, it wins over the window the portal reads from the model server at start.Read from the model server, else 128000
ENTROPIX_LLM_BATCH1 (or true, on) sends skill summaries, rule suggestions and chat summaries through Anthropic's Message Batches API on an Anthropic address, which costs less but is slower. A batched job holds its worker slot while it waits (up to 15 minutes each), which can delay that organisation's other background work and channel replies; the start warns about this. 0, false, off or empty turns it off.Off
ENTROPIX_LLM_PARALLELThe most model calls in flight at once per model server (this server's model and each organisation's own), first come first served. Shared across all processes on one database. 1 to 64. Set 1 for Ollama.4
ENTROPIX_REVIEW_MASK_ABOVE_BYTESOnce a review's tool results pass this many bytes, it clears results older than its newest 3 tool turns, down to half this size, so long reviews fit the model's window. 0 turns clearing off; a negative number is refused.65536

ENTROPIX_LLM_MAX_TOKENS, ENTROPIX_LLM_REASONING_EFFORT and ENTROPIX_LLM_TIMEOUT also fill in for an organisation's model server that leaves those fields blank.

Background work

The portal does its model work in the background: reviews, PRD drafts, chat answers, goals, scans and memory. These settings decide how much runs at once.

SettingWhat it doesDefault
ENTROPIX_TESTS_DAILY_RUNSReview test runs each organisation may start per day (UTC); 0 is no limit. See Review tests.50
ENTROPIX_WORKER_REVIEW_SLOTSReviews and PRD drafts running at once in this process, across all organisations. 1 to 16. Chat answers do not use these slots: they have a pool of their own, six per process and at most three per organisation at once, so a chat never waits behind a review.2
ENTROPIX_WORKER_GOAL_SLOTSGoals working at once in this process, across all organisations. 1 to 16.2
ENTROPIX_WORKER_PER_ORGPRD drafts, reviews and goals one organisation may run at once, across all processes, so one busy organisation cannot take every slot. 1 to 8.1
ENTROPIX_WORKER_MEMORY_SLOTSMemory jobs at once: learning facts from conversations and keeping the memory search index up to date. 1 to 8.1
ENTROPIX_WORKER_AWS_MAP_SLOTSAWS account map scans at once (see AWS and Google Cloud). 1 to 8.1
ENTROPIX_FORGE_REVIEWS_PER_HOURThe most pull request reviews one organisation may start in a rolling hour. A merge request over the limit is not reviewed; it is recorded with its reason on Settings › Integrations and not retried. A positive whole number.60

Git

SettingWhat it doesDefault
ENTROPIX_GIT_CACHE_DIRWhere the portal keeps its copies of repositories, one directory per organisation. It holds source code, unencrypted: put it on a protected disk. Each process needs its own; it does not need backing up.entropix-git (in the working directory)
ENTROPIX_GIT_MAX_REPO_BYTESThe most one repository's copy may take on disk, in bytes. A fetch that passes it is stopped.2147483648 (2 GiB)

GitHub App

One GitHub App serves every organisation on the server. Registering it is described on Install and run. Leave all six out and GitHub is not offered; organisations can still use GitLab.

SettingWhat it doesDefault
ENTROPIX_GITHUB_APP_SLUGThe App's name in its GitHub address. Connect GitHub sends admins to github.com/apps/<slug>/installations/new.Not set
ENTROPIX_GITHUB_CLIENT_ID, ENTROPIX_GITHUB_CLIENT_SECRETThe App's OAuth client. Used only to check with GitHub that an installation belongs to the person connecting it. Set both or neither: one without the other stops the start.Not set
ENTROPIX_GITHUB_APP_IDThe App's id. With the private key, it lets the portal act as the App: read pull requests, post comments and set statuses. Set it and a private key, or neither: one without the other stops the start.Not set
ENTROPIX_GITHUB_PRIVATE_KEYThe App's private key, as the PEM text.Not set
ENTROPIX_GITHUB_PRIVATE_KEY_FILEOr: the path to the PEM file, read at start. An empty file is refused. Set this or ENTROPIX_GITHUB_PRIVATE_KEY, never both.Not set
ENTROPIX_GITHUB_WEBHOOK_SECRETThe secret GitHub signs each webhook delivery with. Left empty, every delivery to /hooks/github is refused, and the start warns.Not set

To let organisations connect the App you need the slug, client id and client secret. To review pull requests you also need the webhook secret, the App id and a private key. The start warns when only part of either set is there.

Coding agent plugin

SettingWhat it doesDefault
ENTROPIX_PLUGIN_MARKETPLACEWhere developers install the Entropix plugin from: an owner/repo shorthand or a Git URL. The Your coding agent page then shows claude plugin marketplace add <source> and claude plugin install entropix@entropix. Left empty, that page says the plugin is not offered from this portal yet and that the claude mcp add command alone gives every Entropix tool. See Connect Claude Code or Cursor.Not set

A complete example

ENTROPIX_DATABASE_URL='postgres://entropix_app:…@db.internal:5432/entropix?sslmode=require'
ENTROPIX_DATABASE_MIGRATE_URL='postgres://entropix_owner:…@db.internal:5432/entropix?sslmode=require'
ENTROPIX_ADDR='127.0.0.1:4173'
ENTROPIX_PUBLIC_URL='https://entropix.example.com'
ENTROPIX_SECRET_KEY='…'
ENTROPIX_LLM_BASE_URL='https://api.anthropic.com'
ENTROPIX_LLM_MODEL='…'
ENTROPIX_LLM_API_KEY='…'
ENTROPIX_WORKER_REVIEW_SLOTS=4
ENTROPIX_GIT_CACHE_DIR='/var/lib/entropix/git'

What you can and can't do

You can
  • Run with only a database URL and add the rest as you need it.
  • Set one model for the whole server, or none and leave models to organisations.
  • Tune how much background work runs at once, per process and per organisation.
  • Allow specific private networks for self-hosted services.
You can't
  • Change a setting without restarting.
  • Set a value outside its range: the start refuses it.
  • Change ENTROPIX_SECRET_KEY without losing every stored secret.
  • Set an organisation's own choices (its models, tools, channels) here.