Docs Run Entropix yourself

Operator commands

The entropixd commands for migrations, feature switches, usage and memory.

Besides running the portal, the entropixd program has commands for the person who runs the server: apply migrations, turn feature switches on or off for an organisation, bring agents' built-in skills up to date, ask for repository rescans, read model usage, set model prices and rebuild the memory search index. This page gives the syntax of each, with examples and what it prints.

On your server A shell with the server's environment Operator

Before you start

  • Run the commands with the same environment as the server (see Configuration). Every command checks the whole configuration first and stops if any setting is invalid.
  • The commands connect to the database with ENTROPIX_DATABASE_MIGRATE_URL (the owner) when it is set, otherwise with ENTROPIX_DATABASE_URL. They open at most two connections, so they are safe to run while the server is up.
  • Where a command takes <org>, give the organisation's id or its name. The name is matched without regard to case. An unknown one stops the command with no organisation with the id or name "…".
  • Options go after the other arguments, for example features set Acme review.packs on --operator alex.
  • --operator names you. It defaults to your login name ($USER).
CommandWhat it does
migrate [--check]Apply pending database migrations, or list them.
features list / features setShow or set an organisation's feature switches.
skills updateBring agents' built-in skills up to the current version.
repos rescanAsk for a fresh scan of an organisation's repositories.
usageModel use per organisation and kind of work.
prices list / prices setShow or set the price of a model, used for cost on Usage.
memory reindexRebuild the memory search index.

Run entropixd with no command to start the portal itself (see Install and run).

migrate

entropixd migrate
entropixd migrate --check
  • migrate applies every pending migration and exits. It prints applied N migration(s).
  • migrate --check changes nothing. It prints no pending migrations and exits with status 0, or one line per pending migration (pending: <module>/<number>_<name>) and exits with status 1 and N pending migration(s). Use it in a deploy script to decide whether to take a backup first.

Both refuse, as the server's start does, when a migration that was already applied has been changed or is missing. Migrations take a lock in the database, so running migrate while a server starts applies each one once. To make sure migrations run only from this command, set ENTROPIX_DATABASE_MIGRATE=off for the server.

features

entropixd features list [<org>]
entropixd features set <org> <key> <off|shadow|on> --operator <name> [--note <text>]
entropixd features set --all-orgs <key> <off|shadow|on> --operator <name> [--note <text>]

features list

Prints one tab-separated line per switch that has been set: organisation name, key, state, operator, when it was set (UTC) and the note. Give an organisation to see only its switches; without one it covers every enabled organisation. It ends with the reminder # a harness.* key not listed reads on (set it off to turn it off).

$ entropixd features list Acme
Acme	review.packs	on	alex	2026-11-02T09:14:05Z	trying packs on one team
Acme	harness.explore	off	sam	2026-11-03T16:40:00Z
# a harness.* key not listed reads on (set it off to turn it off)

A switch not listed reads its default: on for every harness.* key and for review.security, off for the other review.* keys.

features set

Sets one switch for one organisation and prints set <key> to <state> for <org>. With --all-orgs in place of the organisation, it sets every enabled organisation in turn, printing a line for each and then set <key> to <state> for N organisations. If one fails, it stops there; the organisations before it keep the new state.

entropixd features set Acme review.risk_tier shadow --operator alex --note "watch tiers for a week"
entropixd features set --all-orgs review.wb_gate on --operator alex
  • The state is off, shadow or on; anything else gives a feature's state is off, shadow or on, not "…".
  • The key must be lower case letters, digits, ., _ or -, 2 to 64 characters. The command does not check it against the real switches, so copy keys from Feature switches.
  • Each change is written to the organisation's audit log, with your operator name, the old and new state and the note.

skills update

entropixd skills update <org> [--agent <name>] [--dry-run] --operator <name>

Does what Update skills on an agent's Know-how tab does, for every agent in the organisation or for the one named with --agent. Use it after an upgrade that ships new built-in know-how, so organisations do not have to press the button agent by agent.

  • A built-in skill (or main skill) that nobody has edited is replaced with the current text.
  • One a person has edited is kept as it is.
  • A code reviewer that is missing one of the built-in review skills gets it added.
  • Every write is a new version of the skill (see Main skill and skills).

It prints a header line, then for each agent with something to do, what it would add, replace and keep, then updated once it has. With --dry-run it prints the plan and writes nothing.

$ entropixd skills update Acme --dry-run --operator alex
organisation Acme, operator alex (dry run)
reviewer	add [failure-scenarios]	replace [reviewing-a-change]	kept (edited) [writing-a-finding]

repos rescan

entropixd repos rescan <org> [--repo <name>] [--force] --operator <name>

Asks for a new scan of every repository in the organisation, or of the one named with --repo (its name, address key or id). This is the same as Rescan on an agent's Connections tab; --force is the same as Redraft anyway, which writes a new reference even when the repository has not changed since the approved one.

  • The running server does the scan, and a person approves the result as usual. Nothing reaches an agent until they do (see Repositories).
  • A repository whose last scan still waits for a decision is skipped: <repo> skipped: ….
  • Each one asked for prints <repo> rescan requested.
  • A --repo that matches nothing stops with no repository "…".
Good to know

skills update, repos rescan and memory reindex act as the organisation's first enabled admin, since the changes need an admin's rights and a person to attribute them to. New versions name that admin. Your --operator name is printed, not stored. An organisation with no enabled admin gives organisation "…" has no enabled admin to act as.

usage

entropixd usage [--org <org>] [--days 7] [--json]

Prints each organisation's model use by kind of work and purpose, the same figures as the By job table on Usage. Without --org it covers every enabled organisation. --days is the window ending today, 7 by default (a value below 1 reads as 7).

$ entropixd usage --org Acme --days 30
org   kind     purpose  jobs  calls/job  tokens/job  cache %  tool %  errors %  cost
Acme  review   main     41    9.2        88310       71%      64%     0%        $4.12
Acme  chat     main     230   2.1        12044       58%      22%     1%        $1.37
Acme  chat     route    230   1.0        610         0%       0%      0%        —
ColumnMeaning
kindThe kind of work, such as chat, goal, review, prd-draft, scan or memory.
purposemain for the job's own calls, or a smaller step such as route, plan, explore, check or refute.
jobs, calls/job, tokens/jobHow many jobs, and model calls and tokens (input plus output) per job.
cache %Cached input as a share of input.
tool %Tool results as a share of what was sent, by size.
errors %Model calls that failed.
costWhat the calls cost in US dollars at today's prices, or — when any call's model has no price.

With --json it prints one JSON array of objects with the fields OrgID, OrgName, JobKind, Purpose, Jobs, Calls, Errors, Input, Output, Cached, RequestBytes and ToolResultBytes, for your own reports.

prices

entropixd prices list
entropixd prices set <model> in=<$> cached=<$> write=<$> out=<$> --operator <name>

Sets what a model costs, in US dollars per million tokens: in for input not read from the cache, cached for input read from the cache, write for input written to the cache, and out for output. Prices are one table for the whole portal, keyed by the model's name exactly as model calls record it; they are not per organisation. Cost is worked out when you read it, from the current price, on Usage › By job and in usage.

$ entropixd prices set claude-sonnet-4-5 in=3 cached=0.3 write=3.75 out=15 --operator alex
set the price of claude-sonnet-4-5
$ entropixd prices list
claude-sonnet-4-5	3	0.3	3.75	15	alex	2026-12-05T09:12:00Z
# US dollars per million tokens: model, in, cached, write, out; a model not listed is unpriced
  • prices set needs all four prices, each once and 0 or more, and --operator (it has no default here). Setting a model again replaces its price.
  • prices list prints one tab-separated line per model: model, the four prices, who set them and when.
  • A model with no price shows — for cost, and so does a row whose calls mix a priced and an unpriced model.

memory reindex

entropixd memory reindex <org>
entropixd memory reindex --all-orgs
entropixd memory reindex <org|--all-orgs> --vectors

Rebuilds the search index agents use to recall facts, from the facts stored in the database. The portal keeps the index up to date by itself; use this after restoring a backup, or if recall seems to miss facts you can see on the Memory page (see Memory). It prints <org>: N items reindexed. With --all-orgs it runs every enabled organisation in turn; one that fails prints <org>: not reindexed: …, the rest still run, and the command exits with status 1 at the end. The vectors meaning search uses (see Embed model) are kept; --vectors deletes them too, and the portal embeds everything again in the background.

What you can and can't do

You can
  • Run any command while the server is up.
  • Check for pending migrations without applying them.
  • Set a switch for one organisation or all of them, with a note.
  • Preview a skills update with --dry-run.
  • Read usage as a table or as JSON.
  • Set a model's price, so Usage shows what each kind of work cost.
You can't
  • Approve a rescan's result from the command line: a person approves it in the portal.
  • Overwrite a skill a person has edited with skills update.
  • Undo a migration with these commands: restore a backup instead.
  • Rely on features set to catch a misspelt key.
  • Keep an old price for past calls: cost always uses today's price.