Deployment
On-premise deployment
Run AgentID inside your own network. What is delivered, the components, what stays inside and what leaves, requirements and sizing, TLS, access restriction, sign-in, backup, updates and what is confirmed during installation.
AgentID runs in one of two ways: as the cloud service, or on-premise in your own network. On-premise, the dashboard, the API, detection and all stored data run on a server you operate, without the AgentID cloud. The product is the same: the same dashboard, the same Guard and detection pipeline, the same clients.
What is delivered
- An offline installation archive with every container image, including the detection models. The server needs no container registry and no internet access to install.
- Scripts for installation, creating administrators, a smoke test, backup, restore and rendering the browser extension policy.
- An installation and operations guide with the exact commands, a guide for Microsoft Entra ID, and an acceptance test that your IT team runs together with AgentID.
- Updates as a new archive; see Updates and rollback.
AgentID delivers the archive to you directly; it is not a public download.
Components
Everything runs on one Linux server in Docker Compose. Only the gateway publishes a port.
Workstations Administrators
(browser extension, Claude Desktop companion)
│ HTTPS 443, /api/v1/* only │ HTTPS 443, allowed networks only
▼ ▼
gateway TLS with your certificate, routing, admin network restriction
├─► app dashboard, API, attachment text extraction and OCR
│ └─► guard detection service: Guard, ML models, PII span stage
└─► auth / rest / storage database API, authentication, file storage
└─► db PostgreSQL
cron scheduled jobs (retention, cleanup, webhook replay)
migrate applies database migrations at start, then exits| Service | Role |
|---|---|
gateway | Terminates TLS with the certificate you provide, routes requests and enforces the admin network restriction. The only service with published ports (443, and 80 for the redirect to HTTPS). |
app | The AgentID web application: dashboard, public API (/api/v1/*), and attachment processing with local OCR. |
guard | The detection service: Guard with its ML models (prompt injection, named-entity recognition, toxicity) and the PII span stage in one container, the same image AgentID runs in its cloud. It is not published; only app calls it. Masking uses no LLM. |
db | PostgreSQL. Data is stored in a data directory on the server. |
auth, rest, storage | Authentication, the database API and file storage on the local disk. |
migrate | One-shot job that applies database migrations on every start; migrations already applied are skipped. |
cron | Runs the application's scheduled jobs. |
Data flows
What stays inside your network
- Prompts, pasted text and files sent for checking: from the workstation to
gateway→app→guard, all on your server. - Detection: rules and validators, the PII span stage, named-entity recognition, the ML classifiers and OCR all run locally.
- Stored data: activity records, audit logs, configuration, API key hashes and staged files, in PostgreSQL and on the server's disk.
- Encryption keys and server secrets: generated on the server during installation and kept in a root-only configuration file.
What leaves your network
By default the server makes no outbound connection: none to AgentID, to AI providers, to telemetry or to other third-party services. The only outbound connection is to your identity provider when you use Microsoft Entra ID.
| From | To | Why |
|---|---|---|
| Server | login.microsoftonline.com (443) | Only with Microsoft Entra ID sign-in: OIDC discovery, signing keys and the code exchange. The server calls it directly, not through an HTTP proxy. |
| Server | Your internal DNS and NTP | Name resolution and time. Token validation tolerates a clock difference of two minutes. |
| Workstations | Microsoft sign-in domains (443) | The Entra ID sign-in window, when SSO is used. |
| Workstations | clients2.google.com, clients2.googleusercontent.com (443) | Installing and updating the browser extension from the Chrome Web Store, in Chrome and Edge. |
| Workstations | The AI services themselves | The prompt, after AgentID checked it. This is the traffic AgentID protects, not traffic it adds. |
E-mail (invitations, password reset) is sent only if you configure your own internal SMTP relay. The stack was run in a network without outbound access; everything worked except the connection to Entra ID.
Requirements and sizing
| Minimum (small profile) | Recommended (full profile) | |
|---|---|---|
| CPU | 4 vCPU, x86-64 with AVX2 | 8 dedicated vCPU |
| RAM | 8 GB, plus 4 GB swap as a reserve | 16 GB |
| Disk | 60–80 GB SSD | 100 GB SSD |
| OS | Linux (Ubuntu Server LTS) with Docker Engine 24 or later and the docker compose plugin | Same |
The installer checks the hardware and stops on fewer than 4 CPUs, less than 8 GB RAM or a CPU without AVX2. Below 8 CPUs or 16 GB RAM it selects the small profile: the span stage runs in one process on shorter text segments, and the toxicity model is off (lexicon detection stays on). The full profile uses the settings AgentID runs in its cloud.
Measured
Measured on 2026-10-29 with this bundle on a 4 vCPU server (small profile):
| Measurement | Result |
|---|---|
| Memory of the whole stack at peak | 4.0 GB |
| Masking a prompt | About 1 s for 300 characters, 2.4 s for 1,000, 3.4 s for 2,000, 4.1 s for 4,000 |
| 10 concurrent users | No test value was left unmasked. Part of the prompts was not finished by the span stage in time and was masked by local detection (rules and validators), which is less accurate for names and addresses |
| Container images / installation archive | About 20 GB / 6.0 GB |
Capacity depends on prompt length and concurrency. Sizing for your number of users is agreed with AgentID and confirmed with a load test on your hardware during installation; see Verification status.
What you provide
- A Linux server that meets the requirements, and a DNS name for it.
- A server certificate, its private key and the CA chain from your certificate authority. Workstations must trust that CA.
- The administrator networks (CIDR ranges) from which the dashboard may be reached.
- Firewall rules for the flows in What leaves your network, and inbound 443 from workstations.
- For SSO: an app registration in Microsoft Entra ID; see Single sign-on.
- Device management (Group Policy, Intune or MDM) to install and configure the clients; see Managed devices.
- Operation of the server: disk encryption, monitoring, and off-server storage of backups.
TLS
- The gateway uses your certificate; it does not request certificates from a public CA.
- The installer checks that the key matches the certificate, that the hostname is in the SAN, that the certificate is valid and that the chain leads to your root.
- The containers trust your CA for their own calls through the gateway.
- The gateway sends
Strict-Transport-Security; port 80 only redirects to HTTPS. - A TLS-inspecting proxy between workstations and the AgentID server must not replace the certificate, otherwise the clients refuse the connection.
Admin network restriction
The gateway separates two kinds of traffic:
| Path | Reachable from |
|---|---|
/api/v1/*: browser extension, Claude Desktop companion, Guard and Ingest API | Every workstation that can reach the server |
| Everything else: the dashboard and the database service APIs | Only the administrator networks you list, and the containers' own network |
A request to the dashboard from any other address gets 403 Forbidden. API requests still need a valid API key or device credential.
Sign-in and SSO
- Dashboard: a server administrator creates accounts with a script; self sign-up is disabled. Administrators sign in with a password or with Microsoft Entra ID (single tenant). An Entra sign-in works only for an account that already exists in AgentID with the same e-mail address. The generated password remains as break-glass access for an Entra outage.
- Browser extension: user identity through OIDC with Entra ID; allowed e-mail domains and required groups are checked on the server. See Single sign-on.
- Claude Desktop companion: does not sign in with Entra ID. The identity is the installation on the computer, each with its own revocable credential.
The client secret of the Entra app registration is stored on the server only, never in the extension or in a managed policy.
Clients
| Client | On-premise |
|---|---|
| Browser extension | Installed from the Chrome Web Store and pointed at your server by managed policy (baseUrl). See Managed devices. |
| Claude Desktop companion, Windows | The install command and the organization package are served by your server and trust only your host. |
| Claude plugin (Cowork, Claude Code), macOS companion and SDKs | Use the same API on your server. They are not part of the on-premise acceptance test so far; agree their use with AgentID. |
Scheduled jobs
The cron service runs these jobs (times in UTC):
| Job | Schedule | What it does |
|---|---|---|
| Webhook replay | Every 5 minutes | Retries webhook deliveries that failed |
| Attachment cleanup | Daily 02:17 | Deletes staged attachment uploads |
| Endpoint retention | Daily 02:31 | Deletes expired endpoint events |
| Data retention | Daily 02:47 | Deletes activity data older than the organization's retention period |
| Stale key review | Daily 03:05 | Finds API keys that were not used for 90 days |
A daily job that was due while the service was down is not run again after a restart on the same day.
Install step by step
This is the order of an installation. The installation guide delivered with the archive has the exact file names and values for your version; where the two differ, follow the delivered guide. All scripts are in the scripts/ directory of the unpacked archive and are run as root on the server.
Before you start, have ready everything in What you provide: the server with Docker Engine and the docker compose plugin, the DNS name, the certificate files and the administrator networks.
Unpack the archive
Copy the archive and its checksum file to the server, verify the checksum, and unpack the archive into a directory of its own, for example under /opt:
sha256sum -c <archive>.tar.sha256
sudo tar -xf <archive>.tar -C /optRun the following steps from the unpacked directory.
Add the certificates
Put three PEM files into certs/:
| File | Content |
|---|---|
certs/tls.crt | The server certificate with the server's DNS name in the SAN, followed by intermediate certificates if any |
certs/tls.key | Its private key, without a passphrase |
certs/ca.crt | The root (and intermediate) certificate of your certificate authority |
Run the installer for the first time
sudo scripts/install.shThe installer checks Docker and the hardware (x86-64 with AVX2, at least 4 CPUs and 8 GB RAM), loads the container images from the archive and creates the server configuration file (.env, readable by root only). It then stops and lists the values you still have to fill in.
Fill in the configuration
Edit the configuration file and fill in the listed values: the administrator networks that may reach the dashboard, the Microsoft Entra ID settings, and the browser extension ID. The delivered guide names each setting. The installer generates the server's secrets (database, signing and encryption keys) itself; do not set them by hand.
Run the installer again
sudo scripts/install.shIt verifies the certificates, starts the services, applies the database migrations and waits until the application and the detection service are healthy. The first start of the detection service loads the models and can take a few minutes. The installer is repeatable: after an error, fix what the message names and run it again.
Create the first administrator
sudo scripts/create-admin.sh <email>The script prints a generated password. Use the person's Entra sign-in address if you use Entra sign-in. Open https://<your AgentID host> from an administrator network, sign in and create your organization. Add further administrators with sudo scripts/create-admin.sh <email> --org "<organization name>".
Set up the organization and the first AI system
In the dashboard:
- Set the data retention in Settings.
- Register an AI system with the Browser Extension target, and switch on the masking, blocking and failure mode you want. A new system does not mask until you switch it on.
- If you use SSO, save the system's Browser Extension SSO settings; see Single sign-on.
Render the extension policy
On the system's Integration tab generate a managed rollout bundle (after saving SSO, so the policy contains it) and copy the enrollment token. On the server run:
sudo scripts/render-extension-policy.sh <enrollment-token>It writes the policy for Chrome and Edge to extension/out/: the values for Group Policy, .reg files for a manual test on one workstation, and the managed policy as JSON. These files contain the enrollment token; treat them as confidential. Deliver the policy as described in Managed devices. The option --hardened also writes the browser policies from Tamper-resistant deployment.
Run the smoke test
sudo scripts/smoke-test.sh
sudo scripts/smoke-test.sh <api-key> <system-id>Without arguments the script checks the services, the migrations, TLS, the database and the reachability of Entra ID. With an API key and a System ID it also sends a Guard request with personal data and expects it masked.
Then check two or three test workstations before the wider rollout:
chrome://policyoredge://policylists the policies, and the extension is installed by the administrator,- Sign in with SSO shows the user's e-mail address in the popup, and a user outside the allowed group is refused,
- a prompt with a made-up name and e-mail address is masked, and the record appears in the activity log with the user's identity,
- with a fail-closed system, a prompt is not sent while the application is stopped (
sudo scripts/compose.sh stop app), and works again aftersudo scripts/compose.sh start app.
Schedule the backup
Run scripts/backup.sh daily from the server's scheduler, for example with cron:
30 3 * * * /opt/<unpacked directory>/scripts/backup.sh >> /var/log/agentid-backup.log 2>&1See Backup and restore.
Day-to-day commands
| Task | Command |
|---|---|
| Status of the services | sudo scripts/compose.sh ps |
| Logs of a service | sudo scripts/compose.sh logs -f app |
| Restart a service | sudo scripts/compose.sh restart app |
| Apply a changed configuration file | sudo scripts/compose.sh up -d |
| Stop AgentID, keep the data | sudo scripts/compose.sh down |
If the installation fails
| Symptom | Check |
|---|---|
| The installer stops with an error | The message names the cause: a certificate, a missing value in the configuration file, RAM, AVX2. Fix it and run the installer again |
| A service is not running or is unhealthy | sudo scripts/compose.sh ps, then sudo scripts/compose.sh logs --tail 100 <service>; also check free disk space |
| The detection service stays in starting | The first start loads the models. If it stays unhealthy, check its logs and the free memory |
| Certificate error in the browser | The workstation must trust your CA, and the server certificate must contain the DNS name in the SAN |
The dashboard answers Forbidden | The administrator's network is not in the allowed administrator networks. Add it to the configuration file and apply it |
| The extension is not installed or has no configuration | chrome://policy → Reload policies; check the policy values and the access to clients2.google.com and clients2.googleusercontent.com |
| Prompts are not sent (fail closed) | The state of the server and the user's SSO session. Protection can be switched off temporarily with enabled = 0 in the extension policy |
Installation and operations
- Installation is a repeatable script: it loads the images, generates the secrets, starts the services, applies the migrations and waits until the application is healthy.
- Smoke test: a script checks the services, TLS, the database, Entra reachability and, with an API key, masking through the Guard API.
- Logs are rotated per service (3 × 10 MB). Prompt text is not written to the logs.
Backup and restore
- Backup is a script (
sudo scripts/backup.sh) that writes the database, the stored files and the server configuration to a root-only directorybackups/<timestamp>/, and by default deletes backups older than 7 days (--keep-days Nchanges this;0keeps all). Run it daily from the server's scheduler. - A backup contains the server's keys and the stored records. Keep copies outside the server only encrypted, with the same retention.
- Restore is a script (
sudo scripts/restore.sh backups/<timestamp>) that stops AgentID, sets the current data aside, restores the configuration, files and database from a backup, verifies the database and starts the services. It restores into the same or a new installation of the same version; for a new installation, copycerts/and the backup directory into it first. - After a restore, run the smoke test. Everything created after the backup was taken, for example devices activated since, is gone.
Updates and rollback
AgentID delivers an update as a new archive. The server does not update itself. A rollback is a restore of the backup into the previous version.
Back up
In the directory of the running version: sudo scripts/backup.sh.
Stop the old version
sudo scripts/compose.sh down. The data stays on disk.
Unpack the new version
Unpack the new archive into its own directory, as in Unpack the archive.
Move configuration, certificates and data
Move the configuration file, certs/ and data/ from the old directory into the new one.
Run the installer
sudo scripts/install.sh in the new directory. It keeps the existing secrets and applies new database migrations automatically. Finish with the smoke test.
To roll back after a failed update: in the new directory run sudo scripts/compose.sh down, copy the backup directory you made before the update into the previous version's directory, and run sudo scripts/restore.sh backups/<timestamp> there.
Some updates are delivered as a smaller update archive that is installed into the existing directory; it comes with its own instructions.
To take protection off the workstations, remove the extension policy assignment or set enabled to 0; see Remove or roll back the extension. To remove the server installation completely, stop it and delete its directory, including data/ and backups/.
Topology
- The deployment is a single server. High availability, clustering and automatic failover are not part of the bundle; availability is that of the server, and recovery is by restore from backup.
- While the server is unavailable, each AI system's failure mode decides: fail-closed clients do not send prompts, fail-open clients send them unchecked.
- Rotating the server's encryption key needs a migration: it invalidates SSO sessions and stored encrypted payloads.
- The detection models are part of the
guardimage and are AgentID's confidential assets.
Verification status
Verified by AgentID on 2026-10-29 in a test environment (4 vCPU, 16 GB RAM, a test certificate authority):
- installation from the offline archive and all database migrations on an empty database,
- TLS with a private CA, and the admin network restriction,
- masking through Guard and the span stage,
- SSO enforcement on the server (requests without a valid session are refused),
- the scheduled jobs,
- operation without outbound network access,
- load with the small profile (results above).
Backup with restore into an empty data directory, and the update procedure, were exercised on later bundle versions. The Claude Desktop companion's server-side flow (activation, checking, heartbeat, the fail-closed switch, revocation) was verified with a simulated client.
Confirmed during your installation, as steps of the acceptance test:
| Step | Why it is confirmed on site |
|---|---|
| Microsoft Entra ID sign-in for the browser extension and the dashboard | Depends on your tenant, claims and conditional access |
| Installing the browser extension by Group Policy or Intune on your workstations | Depends on your device management and browser policy |
| The Claude Desktop companion on your Windows clients, including application control (AppLocker, App Control); the companion's scripts are not code-signed in this version | Depends on your endpoint policy |
| Installation on your server and operating system image | The test environment was a container host, not a clean virtual machine |
| Load with your traffic, the full profile and more than 10 concurrent users | Not load-tested by AgentID beyond the measurement above |
| Restore from backup on your hardware | Part of your operating procedure |