First administrator, people and keys
Sign in as the first administrator, add people, create keys, and send one test usage record.
Built from commit f569b4a on Nov 14, 2026
This page is generated from the maintained install guide, GUIDE.md, at source commit fa247a8. Keep the signed guide that came with your installed release.
Sign in as the first administrator
Open https://YOUR_DOMAIN/login, enter the admin_email from your config, and
enter the sign-in code from the email Tach sends. The code works for 10 minutes.
Tach sends at most one sign-in email per address per minute: asking again within
60 seconds sends no new email, though the page looks the same. If no email
arrived, wait a minute and ask again. A new email replaces the earlier code, so
use only the newest one. If still nothing arrives, check the [smtp] settings
and your relay’s logs.
After signing in, confirm that Users appears for the administrator.
Connect computers
Open https://YOUR_DOMAIN/setup on each computer and copy its OS command.
Run as the ordinary user, never root (Python 3.9+ standard library required).
The command fetches the immutable, versioned agent/install.sh or install.ps1
from https://tach-site.pages.dev/tools/tach/releases/vVERSION/, not from your
instance, and passes https://YOUR_DOMAIN as its first argument. VERSION is
the instance’s installed server release. The initial fetch requires HTTPS/TLS 1.2+
and does not follow redirects. The site script embeds the agent public key; a
compromised instance cannot substitute the verifier or its trust root.
IT: verify the installer out of band before distribution. Obtain release.pub
from the independent r90group/tach-release-key repository (package release key,
not agent-release.pub). From the versioned site’s agent/ directory, download
install.sh (or install.ps1), SHA256SUMS and SHA256SUMS.minisig over HTTPS.
Verify minisign -Vm SHA256SUMS -p release.pub. Read the SHA-256 entry named
agent-install.sh or agent-install.ps1 from that authenticated file and compare
it with shasum -a 256 install.sh (PowerShell: Get-FileHash install.ps1 -Algorithm SHA256).
Distribute that authenticated digest through your independent IT policy/channel;
never obtain the expected digest or key from the instance being enrolled.
After checking, run sh install.sh https://YOUR_DOMAIN or
& .\install.ps1 https://YOUR_DOMAIN, followed by fleet arguments if needed.
agent-release.pub in that same public repository is the separate raw base64
Ed25519 public key for agent manifests, already embedded in each site installer.
The installer verifies the exact signed manifest with the pinned agent Ed25519
key and checks the binary’s size and SHA-256 before execution. It uses private
staging, refuses a foreign installed agent and never overwrites another tach
command on PATH. The private command is ~/.local/share/tach-agent/tach (Windows:
%USERPROFILE%\.local\share\tach-agent\tach.exe). It is separate from the
VM’s sudo tach administrator command and the read-only query CLI.
Approve your own computer in the browser. The agent reads only qualified usage metadata from Claude Code, Codex CLI, Pi and OMP files and backfills all retained history. It never changes harness settings, runs no listener and keeps no local accounting database. Five-minute user jobs reconcile again; server receipts alone deduplicate. Deleted history and unsupported harnesses are coverage gaps, not zero usage. Check Receiving and Report after use; Health lists versions, coverage, last scans and receipts. Cursor has no local per-request records.
If Health shows that a tool’s history “was skipped because other accounts on that computer
can change its folder”, run tach status on that computer. It names each folder and the
fix (chmod go-w FOLDER). The agent refuses such folders by default so that another account
cannot plant usage. Where a shared group is intended, the person can consent with
tach connect https://YOUR_DOMAIN --allow-group-writable.
IT uses the same binary with tach connect https://YOUR_DOMAIN --fleet-token-file /PRIVATE/TOKEN --email PERSON_EMAIL. Tokens are issued through Enrollment and cannot ingest or
query. Store them privately. Personal browser approval never consents for another
person. tach status, tach update and tach uninstall use the private command;
uninstall preserves harness history and unknown legacy custody.
Health controls the instance’s auto (default), pinned (hold the current
packaged cohort only) or off update policy. The CLI equivalent inside the server
container is tach-server agent-policy [auto|pinned|off]. Downloads come from this
instance, not a workstation-to-publisher connection. A server package change with
an unavailable pin refuses downloads rather than relabeling latest bytes; select
auto or explicitly pin its new cohort to resume. Historical version selection is
not supported. A rollback to a server predating agent policy refuses a pin or
off setting; deliberately select auto first if that rollback is intended. No
policy is silently reset. Signed monotonic sequences refuse replay; rollback requires older
bytes to be signed again at a higher sequence. Off fetches no manifest or binary.
Cowork organization export remains separate (see COWORK.md in the package). Old credential-
preserving reconnect is for the remaining legacy migration only, not a new-agent
route; it will be removed after those senders reconnect. Never delete unresolved
local queues or enable both old export and file capture over unjoinable history.
Manage people and keys from the command line
For scripts, the same changes run on the VM through the server’s command line in
the running container. Each command prints one JSON document. A new key appears
in that output only and cannot be shown again, so send it straight to a
root-only file, never to the terminal. Add a person (append --admin for an
administrator), then create a personal ingest key for that person’s collector:
sudo docker exec tach-selfhost /usr/local/bin/tach-server people add --email PERSON_EMAIL --name 'PERSON NAME'
sudo sh -c "umask 077; set -C; docker exec tach-selfhost /usr/local/bin/tach-server keys create --email PERSON_EMAIL --scope ingest --label 'LABEL' > /root/tach-ingest-key.json"
Use --scope query for a personal query key, which reads answers, and write it
to /root/tach-query-key.json. Organization keys are for Cowork organization
export only, not computer enrollment or canonical /v1/events writes. The output
contains Cowork export and privacy artifacts, never Claude Code/Codex settings:
sudo sh -c "umask 077; set -C; docker exec tach-selfhost /usr/local/bin/tach-server keys create --organization --email ADMIN_EMAIL --label 'LABEL' > /root/tach-organization-key.json"
If the command stops because the file exists, move the earlier key to your
secret store and delete that file first. The file is JSON; the key is its key
field. In the organization file, managed_artifacts also contain the
key, so treat the whole file as secret until it is deployed. Move the key to
your secret store, then delete the file, for example
sudo rm /root/tach-ingest-key.json.
people list, keys list (or keys list --email PERSON_EMAIL) and
keys revoke KEY_ID take the same
sudo docker exec tach-selfhost /usr/local/bin/tach-server prefix. Lists show
key IDs, never keys. A failed command prints a JSON error whose message says what
to do. If a command’s output was lost, check keys list before retrying, and
revoke any key whose value you no longer have.
To add many people at once, such as a company roster, import one CSV file whose
header row is email,name,role,department. A role is admin or member; an
empty role keeps a person’s role, and new people become members. Department
groups usage in Report and grants no access. An empty name or department keeps
the current one; Not set clears a department. The import sends no email and
creates no keys, and it leaves people who are not in the file unchanged. Name
yourself, an active administrator, with --as. First preview the file:
sudo docker exec -i tach-selfhost /usr/local/bin/tach-server people import --as ADMIN_EMAIL --file - < roster.csv | python3 -m json.tool
The preview changes nothing. It lists every row by its line number as create,
update (with each changed field, every role change included), unchanged or
refused (with a reason and a message). To apply exactly what you reviewed,
run the same command with --apply and the preview’s preview value:
sudo docker exec -i tach-selfhost /usr/local/bin/tach-server people import --as ADMIN_EMAIL --file - --apply PREVIEW < roster.csv | python3 -m json.tool
Refused rows change nothing. Correct them and import the file again; rows
already applied show as unchanged. If people or departments changed after
your preview, the apply stops with preview_changed and changes nothing, so
preview again. To see usage by department, open
https://YOUR_DOMAIN/report?group_by=tag:Department.
Check one receipt
Use the first administrator’s ingest key for this test. This command writes its header to a root-only file without displaying the key:
sudo python3 -I - <<'PYTHON'
import json
import os
from pathlib import Path
os.umask(0o077)
key = json.loads(Path('/etc/tach/first-admin-keys.json').read_text())['ingest_key']
Path('/root/tach-ingest-header').write_text('X-Ingest-Key: ' + key + '\n')
PYTHON
Create one agent_usage.v1 request with a fresh event ID and the current UTC
time:
EVENT_ID=$(cat /proc/sys/kernel/random/uuid)
EVENT_TIME=$(date -u +%Y-%m-%dT%H:%M:%SZ)
cat > tach-smoke.json <<EOF
{"schema":"agent_usage.v1","events":[{"event_id":"$EVENT_ID","event_time":"$EVENT_TIME","source":"pi","session_id":"install-smoke","provider":"openrouter","model":"install-smoke","usage":{"uncached_input_tokens":1,"output_tokens":0,"cache_read_tokens":0,"cache_write_tokens":0,"cache_write_1h_tokens":0,"reasoning_tokens":0}}]}
EOF
Send it. For a private CA, add --cacert YOUR_CA_FILE to the curl command,
before the URL, or it fails with exit 60. The internal-CA form follows the
block:
sudo curl --fail-with-body --silent --show-error --request POST \
--header 'Content-Type: application/json' \
--header @/root/tach-ingest-header \
--data-binary @tach-smoke.json https://YOUR_DOMAIN/v1/events
With tls.mode = "internal" (isolated labs only), send it with this command
instead. It trusts Caddy’s internal CA:
sudo curl --cacert /var/lib/caddy/.local/share/caddy/pki/authorities/local/root.crt \
--fail-with-body --silent --show-error --request POST \
--header 'Content-Type: application/json' \
--header @/root/tach-ingest-header \
--data-binary @tach-smoke.json https://YOUR_DOMAIN/v1/events
Expect HTTP 200 and {"accepted":["EVENT_ID"],"duplicates":[]}, with the
EVENT_ID you generated. Run the same send command again: it returns HTTP 200
with {"accepted":[],"duplicates":["EVENT_ID"]} and creates no second usage
record. Confirm the receipt in Receiving. This test event records one input
token; its model is not in the price catalog, so it has no price. Then remove
the key header and the request file:
sudo rm /root/tach-ingest-header
rm tach-smoke.json
Ingest-only hostname
An ingest-only hostname is a second name for the same Tach server. It accepts only OTLP usage on that name. Anthropic’s monitoring reference describes the exporter inside the Cowork VM on the user’s computer. Its current coverage article also covers cloud sessions on Anthropic infrastructure. Test reachability from the execution modes your organization enables, including off-VPN devices.
A second hostname is not network isolation. Anyone who can reach the VM’s
443 can request the main hostname too. Main-host pages, public downloads,
/onboard/device and /healthz remain reachable; query and ingestion APIs use
keys rather than requiring browser sign-in. To keep pages, query and
administration private, use a gateway with an ingest-only public listener and a
private backend. Restrict the VM’s NSG to the gateway subnet and approved
private clients; deny direct internet access. See the
Azure Application Gateway pattern.
Do this before opening internet ingress.
On that hostname, Caddy passes only POST /v1/logs and POST /v1/metrics to
Tach. The path must be exactly one of those two, with no query string. Caddy
answers other origin-form routes with 404 itself, so the request never reaches Tach:
pages, sign-in, setup, /v1/query, /v1/delivery, /v1/events and
/healthz. Tach checks the ingest key, the body size and the stored fields
exactly as it does on the main hostname. Tach accepts OTLP over HTTP with JSON
bodies only, not protobuf. Caddy handles OPTIONS * itself with 200; it does
not forward that request or accept usage. Malformed HTTP and mismatched TLS SNI
can be refused before route matching.
To add one:
-
Choose a hostname, such as
tach-ingest.your-company.example. Create its DNS A record pointing at your approved gateway, or at the VM only if direct main-host exposure is explicitly acceptable. -
Allow inbound TCP 443 on that approved edge, and TCP 80 where ACME needs it. Do not open direct internet access to a private backend VM.
-
Add this section to your source config,
/root/tach-config.toml:[public_ingest] hostname = "tach-ingest.your-company.example" -
Run
validateas in Configure, then rerun the same install command from Install.
The installer checks that Caddy serves this hostname with a trusted certificate
and answers 404 there for /healthz. Its output then ends with
Ingest-only hostname: https://YOUR_INGEST_HOSTNAME accepts only POST /v1/logs and /v1/metrics.
To remove the hostname, first repoint every exporter to a reachable replacement,
start new sessions and confirm fresh receipts. Stop export where there is no
replacement. Only then remove DNS/gateway exposure, delete the section and rerun
the installer. Do not rely on a successful HTTP response from an unconfigured old
name: Caddy can return an empty 200 without forwarding or storing any usage.
The hostname uses the same tls.mode as domain. tach status verifies TLS on
both names. Use a fully qualified DNS hostname, not an IP address or localhost.
The modes are:
acme: Caddy gets a separate public certificate for each name, so both need public DNS and the ports above.provided: the certificate must list bothdomainand the ingest hostname. Exporting environments must trust it, so for cloud Cowork use a certificate from a public certificate authority. Validation refuses a certificate whose SAN does not cover every configured hostname; it does not substitute ACME for a supplied certificate.internal: isolated labs only.
Check it on the VM. The first command must print 404, from Caddy. The second
must print 401: Tach refuses a request without an ingest key. For a private CA
or internal, add --cacert as in Check health.
curl --noproxy '*' --silent --output /dev/null --write-out '%{http_code}\n' \
--resolve YOUR_INGEST_HOSTNAME:443:127.0.0.1 https://YOUR_INGEST_HOSTNAME/login
curl --noproxy '*' --silent --output /dev/null --write-out '%{http_code}\n' \
--resolve YOUR_INGEST_HOSTNAME:443:127.0.0.1 --request POST \
--header 'Content-Type: application/json' --data '{"resourceLogs":[]}' \
https://YOUR_INGEST_HOSTNAME/v1/logs
To send usage through the ingest hostname:
- Cloud Cowork: in your Claude organization’s OpenTelemetry export
settings, set the endpoint to the base address
https://YOUR_INGEST_HOSTNAME, without a path. Cowork adds/v1/logsand/v1/metricsitself. Set the protocol tohttp/jsonand the headerx-ingest-keyto an organization key (see Manage people and keys from the command line). Deploy the metadata-only policy below before enabling export. - Computers: install the file-only agent from the independent release site and pass the main instance origin. Enrollment and canonical batches (
/v1/events) use the main hostname only.
The ingest hostname limits only what requests addressed to it can reach. The
main hostname is served on the same address and port. Caddy refuses a connection
opened for one hostname that names the other in its Host header (421
Misdirected Request). Strict SNI is server-wide: adding the ingest hostname also
refuses SNI-less requests to the main site, including IP-SAN clients. It does not
hide the main site: anyone who can reach port 443 on the VM can still request the
main hostname, including public and key-authenticated routes. To
keep the web interface on your internal network, let the internet reach the VM
only through a gateway that forwards only the ingest hostname, such as
Azure Application Gateway.
Cowork metadata-only policy
Organization export requires Team or Enterprise. Anthropic lists Desktop
1.1.4173 for local monitoring, but Tach requires 1.15962.0 or later to enforce
otlpContentCapture, and 1.22209.3 or later for cloud monitoring. Check
provider availability
before rollout. Cowork organization settings do not configure Desktop’s
Code tab. Configure that as Claude Code, separately; do not use a Code-tab
session as proof of Cowork export.
Before export, enforce effective otlpContentCapture=[] on every device. Missing
or empty-string policy is not safe on older versions. Windows: deploy REG_SZ
otlpContentCapture with value [] under HKLM\SOFTWARE\Policies\Claude.
macOS: deploy <key>otlpContentCapture</key><string>[]</string> through MDM for
com.anthropic.claudefordesktop.
Linux Desktop is a vendor-supported beta on Ubuntu 22.04+ and Debian 12+,
x86_64 or arm64. Cowork requires hardware virtualization, QEMU/UEFI packages and
user access to KVM and vhost-vsock. Follow
Anthropic’s Linux instructions.
Deploy the following native JSON value in the existing root-owned
/etc/claude-desktop/managed-settings.json, preserving unrelated keys:
{"otlpContentCapture": []}
The file must be regular, not a symlink, root-owned and not group/world-writable;
its parent directory must likewise be root-owned, non-symlink and not
group/world-writable. Follow the
managed file and precedence reference.
This is a vendor-documented recipe, not proof of your fleet’s policy delivery.
An unreadable/rejected file applies none of its settings. Check schema and
policy-load failures for managed-settings.json in ~/.config/Claude/logs/main.log
without retaining content-bearing logs. If bootstrap or another managed source
supplies the effective configuration, ensure it too explicitly sets the empty
array; do not assume a local file wins.
On every OS, fully quit and restart Desktop, verify the effective empty-array
policy and start a new Cowork session before enabling organization export.
If policy cannot be confirmed, leave export off. Use a bare-origin endpoint
https://YOUR_INGEST_HOSTNAME, http/json, and
x-ingest-key=<organization ingest key>. Never append /v1/logs to that origin.
Confirm fresh Cowork usage after starting Start Cowork check in Tach Setup.
Native export is best effort, not lossless delivery or complete coverage.
Tach discards non-allowlisted fields; that is not a substitute for preventing
content from crossing the network. Never retain request bodies as proof.