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 project | Stays on the server |
|---|---|
| Each check's name, type and schedule | The checks file |
| Each run's pass or fail, its signature and how long it took | Each 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 row | Every credential, and the vault's private key |
| Playbook changes: name, signature, hash, what happened and the run's outcome | Every 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 date | The 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-logincoord 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:
- 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;
- writes
~/.tower/edge.json(readable only by its owner, since it holds the link) and, when there is none,~/.tower/edge/checks.yamlwith a disk check; - installs the background daemon as a launchd or systemd user service;
- runs every check once and prints the results.
| Flag | Does |
|---|---|
--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\|cursor | The agent that drafts playbooks on the server (Playbooks) |
--agent-key-stdin | Read 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-telemetry | Send no usage counts (Telemetry) |
--no-daemon-service | Do 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:
| Field | Meaning |
|---|---|
name | Lowercase letters, digits, ., _ and -. Unique in the file |
type | One of the types below |
schedule | A cron schedule in the server's local time. Default */5 * * * * |
timeout_seconds | Default 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| Type | Fields | Signatures when it fails |
|---|---|---|
http | url; expect_status (any 2xx or 3xx when unset), body_contains, max_latency_ms | http_<status>:<path>, http_body:<path>, http_slow:<path>, http_timeout:<path>, http_unreachable:<path> |
tcp | host, port | tcp_refused:<host>:<port> |
tls_expiry | host; port (443), warn_days (14) | tls_expiring, tls_expired, tls_untrusted, tls_error, each :<host>:<port> |
dns | host; expect (addresses that must be among the answers) | dns_unresolved:<host>, dns_mismatch:<host> |
process | match (text in a process's command line) | process_missing:<name> |
disk | path; max_used_percent (90) | disk_full:<path> |
queue_depth | max, and either url with json_path (dotted), or sql with credential | queue_backlog:<name>, queue_unreadable:<name> |
sql | credential, 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> |
script | command (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 nameprecheck.shexits 0 only when the repair applies now, and changes nothing.repair.shrepairs, and changes nothing whenDRY_RUN=1is set.rollback.shundoes whatrepair.shchanged.
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
| Status | Runs | Becomes |
|---|---|---|
draft | Never | approved, when a person approves it on the server |
approved | Only when a person runs it | trusted, after 3 runs that repaired |
trusted | On its own, as soon as its signature alerts: no model call, no person | approved again, after a run that failed or rolled back |
rejected | Never | The next failure dispatches the agent again |
coord edge playbook listcoord edge playbook show restart-api # the scripts and its last runscoord 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 trustcoord edge playbook run restart-apicoord edge playbook reject restart-apiApproval 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
shwith a read-onlyPATHthat holds only the commands incommands. 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 afterenv,xargs,timeout,find -execor insidesh -c; a command in a variable;eval,.orsource; a change toPATH; or the path of any other program on the server, even as an argument. Shell builtins such asecho,testandcdneed 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-edgedocker exec edge coord edge statusOn its first start it runs coord edge init from these variables:
| Variable | Sets |
|---|---|
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_URL | Your 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_TELEMETRY | off 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:
| Event | Carries |
|---|---|
edge.installed | The operating system, and whether it runs in a container |
edge.check_run | Once a day per check type and result: the type, pass or fail, and how many runs |
edge.playbook_promoted | approved or trusted |
edge.repair_run | Whether 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 servicerm ~/.tower/edge.json # the edge's link and settings; every edge job goes idlerm -r ~/.tower/edge # the checks file and draftsThe 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.