Status: Private beta. The server (allternit-agents-server) is being built against the contract in cmd/allternit-api/openapi/selfhost-v1.yaml. These pages describe the intended behaviour from that contract. Commands and flags can change before release.
Allternit Self-Hosted Agents is an agent server you run on your own infrastructure. You run the API, the agent loop, the database and the sandbox workers. No Allternit account is needed, and the server makes no calls to *.allternit.com.

What you run

Architecture

A turn works like this:
  1. A client sends a message to a session (POST /v1/sessions/{id}/messages).
  2. The agent loop on the server calls the model. A turn that only needs the model finishes here, with no worker.
  3. When the model asks for a sandboxed tool, the server queues a tool call for the session’s environment.
  4. A worker for that environment claims the work, runs the tool in its sandbox and posts the result.
  5. The loop continues. The client follows every step on the event stream (GET /v1/sessions/{id}/events/stream).

The one outbound dependency

The server needs to reach your model provider. Everything else it talks to is something you run or name in the settings file: PostgreSQL, MCP servers you allow, your identity provider, your secret store and your telemetry collector. See Networking for the full list. Web tools (web search and fetch) are off in v1.

How it differs from BYOC

BYOC runs the Allternit data plane on your hardware, but it still depends on api.allternit.com: sign-in, pairing and the WebSocket relay go through it.

What v1 does not do

  • One deployment serves one tenant. Run a separate deployment per tenant.
  • No credential-injecting egress gateway. Workers enforce the environment’s network rules.
  • No web tools.

Known limits

This is the full list of what still does not work the way you might expect. Other pages link here.
  • SQLite is single node. Run several replicas only with PostgreSQL.
  • A turn on a replica that stops ends with an error. The session gets the error code server_restarted. Resend the message. Earlier messages are kept.
  • Files live on the worker pod. A file a session wrote in /workspace stays on that worker, not in the database.
  • A worker releases a session after it is idle. A worker’s background tasks and scratch files for the session end then. The wait is sessions.idle_timeout, 30 seconds by default. Set it to 1h for the old behaviour. See Configuration.
  • Live events across replicas need a direct PostgreSQL connection. The server uses LISTEN for this. Without a direct connection, events arrive by polling, within 1 to 5 seconds.
  • A session that moves to another replica rebuilds its context from the stored events. The next turn sees the earlier messages, but not state held only in memory.
  • Worker custom tools are commands only. The gizzi worker tools file runs a command for each call. Use an SDK worker for tools that need your own code.
  • Metrics gauges that come from the database repeat on every replica. Take one replica’s value, not the sum. See Observability.
  • Going back to 1.0 after migration 003 is not supported. Restore the database backup instead. See Operations.

Next

Quickstart

Start the compose bundle, mint the first key, run a session.

Configuration

Every key in the settings file.

Workers

Modes, flags, leases and the session secret.

Client apps

Connect Desktop, web, iOS and Gizzi Code to your server.