The edge

The edge is Coordigent running on a client's server while you maintain it. It runs checks on schedules, tells your Coordigent project how each one went, and opens a health alert in the project's support inbox when one keeps failing. It also holds the project's credentials vault, so a credential the client hands over is sealed to their own server and never sits on yours. When a failure has a fix, a playbook can repair it: an agent on the server drafts it, a person approves it there, and after three good runs it runs on its own.

This page is for the person who sets it up, usually on the client's server with the client's permission.

What it is and what it is not

The edge is:

  • Outbound only. It calls your Coordigent server over HTTPS and opens no port. Nothing can call in to it.
  • One credential. It holds one support link (cgsl_…) for one project. The link reaches only that project's support routes; it is not a login and cannot read your dashboard.
  • Local first. Checks, their output, the vault and every playbook script live on the server. What leaves is listed below.

The edge is not:

  • A remote shell. No one on your side can run a command on the server through Coordigent. The server acts only through checks in its own file and playbooks a person approved on it.
  • A monitoring stack. It has no dashboards, metrics history or paging of its own. A failing check becomes an item in the project's support inbox, and your loops and people take it from there.
  • A hiding place for secrets. A check names a vault credential; it never holds a password in its file.

What leaves the server

Sent to your Coordigent projectStays on the server
Each check's name, type and scheduleThe checks file
Each run's pass or fail, its signature and how long it tookEach run's output (redacted, at most 4,000 characters), kept 30 days
Alert changes: failing and recovered, with the signature and the failures in a rowEvery credential, and the vault's private key
Playbook changes: name, signature, hash, what happened and the run's outcomeEvery playbook's scripts and the output of its runs
Each credential's expiry, when its value has one: its name, ok, expiring or expired, and the dateThe value it was read from
Usage counts, unless telemetry is off

A signature names a failure by its class and the check's own target, such as http_502:/api/orders or disk_full:/var. It is never built from output, so it carries no secret and is the same on every run.

Set it up

You need a support link for the project: in the project's Loops → Links, an owner or admin mints one. Then, on the client's server:

curl -fsSL https://coordigent.com/install | sh -s -- --no-login
coord edge init --link cgsl_… --project acme-portal

--project is the project's support page slug, its name as a slug (Acme Portal is acme-portal), or its id. init refuses a link that belongs to another project. Then it:

  1. makes the vault's key pair on the server and registers the public half. From now on the edge holds the project's vault: the previous vault key is revoked, and credential drops seal to the edge;
  2. writes ~/.tower/edge.json (readable only by its owner, since it holds the link) and, when there is none, ~/.tower/edge/checks.yaml with a disk check;
  3. installs the background daemon as a launchd or systemd user service;
  4. runs every check once and prints the results.
FlagDoes
--link cgsl_…The support link. COORDIGENT_SUPPORT_LINK can stand in for it, and wins over edge.json whenever it is set
--project <slug>The project the link must belong to
--server <url>Your Coordigent server. Default: COORDIGENT_SERVER_URL, then https://coordigent.com
--label <name>The server's name in the vault and on alert timelines. Default: its hostname
--agent claude\|codex\|cursorThe agent that drafts playbooks on the server (Playbooks)
--agent-key-stdinRead the agent's model key from stdin instead of its variable
--repair-user <name>The low-privilege user playbook scripts run as when the daemon runs as root
--no-telemetrySend no usage counts (Telemetry)
--no-daemon-serviceDo not install the daemon's service

Then:

  • coord edge status [--json] lists each check's newest result, open alerts, problems in the checks file and results not sent yet.
  • coord edge check [<name>] runs every check, or one, now.

Checks

The checks live in ~/.tower/edge/checks.yaml, as a list under checks:. The daemon reads the file on every tick, so an edit takes effect without a restart. A check that does not parse is left out and named in coord edge status; the others still run.

Every check has:

FieldMeaning
nameLowercase letters, digits, ., _ and -. Unique in the file
typeOne of the types below
scheduleA cron schedule in the server's local time. Default */5 * * * *
timeout_secondsDefault 10, at most 300. A check that runs past it fails with timeout:<type>:<name>
checks: - name: api-health type: http schedule: "*/5 * * * *" url: http://localhost:8080/health expect_status: 200 max_latency_ms: 2000 - name: root-disk type: disk schedule: "*/15 * * * *" path: / max_used_percent: 90
TypeFieldsSignatures when it fails
httpurl; expect_status (any 2xx or 3xx when unset), body_contains, max_latency_mshttp_<status>:<path>, http_body:<path>, http_slow:<path>, http_timeout:<path>, http_unreachable:<path>
tcphost, porttcp_refused:<host>:<port>
tls_expiryhost; port (443), warn_days (14)tls_expiring, tls_expired, tls_untrusted, tls_error, each :<host>:<port>
dnshost; expect (addresses that must be among the answers)dns_unresolved:<host>, dns_mismatch:<host>
processmatch (text in a process's command line)process_missing:<name>
diskpath; max_used_percent (90)disk_full:<path>
queue_depthmax, and either url with json_path (dotted), or sql with credentialqueue_backlog:<name>, queue_unreadable:<name>
sqlcredential, query; min, max (on the first column of the first row)sql_below:<name>, sql_above:<name>, sql_error:<name>[:<code>], sql_refused:<name>, credential_missing:<name>
scriptcommand (a list: the program and its arguments, run without a shell)script:<name>:<word> from a signature: <word> line in its output, else script_exit_<code>:<name>, script_timeout:<name>

An HTTP check's <path> is the URL's path without its query. <name> is the check's name.

Database checks. sql and queue_depth name a vault credential (coord vault list) whose value is the database's URL: postgres://…, mysql://… or sqlite:<path>. The query must be one SELECT, WITH, SHOW or EXPLAIN statement, and it runs read-only: inside a read-only transaction that is rolled back on Postgres and MySQL (Postgres also with a statement timeout), and with the file opened read-only on SQLite.

Script checks. A script check runs its command as the daemon's user, with only PATH in its environment. Exit 0 passes. To name a failure yourself, print a line signature: <word> and exit non-zero.

Alerts

Two failures in a row raise an alert. On your side it opens a health_alert item in the project's support inbox, titled with the check and its signature. Each further failure bumps the same item; a failure with a different signature recovers the old alert and raises a new one; the first pass resolves the item. Severity is warn for tls_expiry, disk and queue_depth, and down for the rest.

Alerts wait on the server until your Coordigent server takes them, so if it was unreachable the item still hears every change, in order.

The vault and credential drops

The edge holds the project's credentials vault. When an agent working on the project needs a credential, it asks for it by name. The client's contact gets an email with a one-use link; the page it opens encrypts the value in their browser to the edge's key. The edge's daemon collects the sealed value within about 30 seconds and keeps it sealed in ~/.tower/local.db. Coordigent's server only ever sees the name, the status and ciphertext, and deletes the ciphertext once the edge has it.

  • coord vault list [--json] lists the credentials held here, by name only.
  • coord vault exec <name> --env <VAR> -- <command> runs one command with the value in $VAR. This is how a playbook script uses a credential.

Expiry. Once an hour the edge reads when each credential it holds stops working: a JWT's exp, or a PEM certificate's notAfter (the earliest, for a chain). It sends only the name, the date and a state: expired, expiring within 14 days, or ok. It sends again when the state changes and when 3 days are left. Your project's credentials list shows the date and the state. A value with neither, such as a password, has no expiry to report; for a site's certificate, use a tls_expiry check.

coord edge init replaces whichever machine held the vault before. Credentials stored there stay there; ask for them again to have them on the edge.

Playbooks

A playbook repairs one failure signature. It is a playbook.yaml and three scripts:

name: restart-api signature: http_502:/api/orders # the failure it repairs description: Restart the API container when it answers 502. timeout_seconds: 120 # per script, at most 600 commands: [docker, curl] # every command the scripts run, by name
  • precheck.sh exits 0 only when the repair applies now, and changes nothing.
  • repair.sh repairs, and changes nothing when DRY_RUN=1 is set.
  • rollback.sh undoes what repair.sh changed.

Each version is stored by a hash of all four files and never edited, so what a person approved is exactly what runs.

Drafted by an agent

With --agent, a failure that no playbook repairs dispatches that agent on the server, headless, in a folder of its own, with the check, its signature and its last three failures' redacted output. It may only read the server's state and write in its folder: it proposes, and never changes anything. What it leaves becomes a draft.

The agent runs on the client's own model key: given at init from the client's ANTHROPIC_API_KEY, OPENAI_API_KEY or CURSOR_API_KEY (or stdin with --agent-key-stdin) and kept in the edge's vault, or else the agent CLI's own login on that server. Coordigent provides no model key. Cursor runs only with a key in the vault, the client's own account. One agent runs per signature at a time, two an hour in all, each stopped after 30 minutes.

With no agent that can run, the edge runs checks and trusted playbooks only, and a failure no playbook repairs is handed to a person on its item, once per alert.

Approve, run, trust

StatusRunsBecomes
draftNeverapproved, when a person approves it on the server
approvedOnly when a person runs ittrusted, after 3 runs that repaired
trustedOn its own, as soon as its signature alerts: no model call, no personapproved again, after a run that failed or rolled back
rejectedNeverThe next failure dispatches the agent again
coord edge playbook list
coord edge playbook show restart-api # the scripts and its last runs
coord edge playbook approve restart-api # shows every script, then asks (--yes skips the question)
coord edge playbook run restart-api --dry-run # DRY_RUN=1: does not count toward trust
coord edge playbook run restart-api
coord edge playbook reject restart-api

Approval happens on the server, where the scripts are, because their text never leaves it. Your side sees each change on the alert's item: drafted, approved, trusted, demoted, and each run's outcome.

A run does precheck.sh (non-zero: the repair does not apply), then repair.sh, then the check once more. If the repair failed or the check still fails, it runs rollback.sh. The outcome is repaired, not_applicable, rolled_back, failed or refused.

Guardrails

  • A low-privilege user. A daemon that is not root runs scripts as itself. A daemon running as root runs them as --repair-user, and refuses to run a playbook without one.
  • A timeout per script. At the timeout, the script and everything it started are killed.
  • 3 runs an hour per playbook, dry runs aside, so a fix that does not hold stops and the alert stays open for a person.
  • The commands it may run. Scripts run in sh with a read-only PATH that holds only the commands in commands. A playbook is refused, when it is drafted, approved and run, if a script could run anything else: a command named by its path (/bin/rm, ./x) anywhere a command runs, including after env, xargs, timeout, find -exec or inside sh -c; a command in a variable; eval, . or source; a change to PATH; or the path of any other program on the server, even as an argument. Shell builtins such as echo, test and cd need no entry. An approved command that runs other programs (a shell, an interpreter, docker exec, ssh) can still run one whose name the script builds while it runs, so read every script before you approve it.
  • Output stays on the server, redacted.

The container image

For a server that runs containers, ghcr.io/startupproj/coordigent-edge is the edge in one image: coord and coord-mcp, with the daemon as its only process. Everything runs as the user edge (uid 10001), never root, so playbooks need no --repair-user. It exposes no port. All state is in the /data volume.

docker run -d --name edge --restart unless-stopped \
-e COORDIGENT_SUPPORT_LINK=cgsl_… -e COORDIGENT_EDGE_PROJECT=acme-portal \
-v coordigent-edge:/data ghcr.io/startupproj/coordigent-edge
docker exec edge coord edge status

On its first start it runs coord edge init from these variables:

VariableSets
COORDIGENT_SUPPORT_LINK--link. Required at the first start; when set later, it wins over the saved link
COORDIGENT_EDGE_PROJECT--project. Required at the first start
COORDIGENT_SERVER_URLYour Coordigent server. Default https://coordigent.com
COORDIGENT_EDGE_LABEL--label. Default the container's hostname
COORDIGENT_EDGE_AGENT--agent, with the client's key in its own variable (ANTHROPIC_API_KEY, …)
COORDIGENT_EDGE_TELEMETRYoff for --no-telemetry

Edit the checks with docker exec -it edge vi /data/edge/checks.yaml. The image has no agent CLI: to have playbooks drafted, build an image from it that adds claude, codex or cursor-agent, and set COORDIGENT_EDGE_AGENT.

An agent on the server

An agent running on the server itself (Claude Code, Codex or Cursor) reaches your side through coord-mcp. On a machine with edge.json and no login of its own, coord-mcp serves the support link's tools, and your project records the calls as the edge's. In the container: docker exec -i edge coord-mcp is the agent's MCP command.

Telemetry

Telemetry is on by default and is counts only, never names or text, and init says so:

EventCarries
edge.installedThe operating system, and whether it runs in a container
edge.check_runOnce a day per check type and result: the type, pass or fail, and how many runs
edge.playbook_promotedapproved or trusted
edge.repair_runWhether the playbook was trusted, and whether it repaired

--no-telemetry, or "telemetry": false in edge.json, turns it off and nothing is sent. The setting belongs to the edge: nothing on your side can turn it back on.

Remove the edge

On the server:

coord daemon uninstall # stops the daemon and removes its service
rm ~/.tower/edge.json # the edge's link and settings; every edge job goes idle
rm -r ~/.tower/edge # the checks file and drafts

The vault's credentials and the check history are in ~/.tower/local.db. Delete ~/.tower altogether if nothing else on the server uses Coordigent. For the image: docker rm -f edge && docker volume rm coordigent-edge.

Then, on your side, revoke the support link in Loops → Links, so it stops working wherever it was copied.