Skip to main content

How it works

Your agent requests. Your runner executes.

When your agent needs something done, it doesn't reach for a shell. It asks emisar to run one declared action, on one server, for a stated reason. Your rules decide whether that runs right away, gets refused, or waits for a person to approve it. A small program on your server, the runner, does the work, and every step goes into the audit log.

The three pieces.

Connect your agent to emisar through the CLI for terminal use and scripts, or through MCP if your AI client supports it. The runner opens an outbound TLS WebSocket and exposes no inbound listener. The control plane relays requests and results between them and enforces your policy.

Step 10 of 10. Everything is on the record. The audit trail holds all three decisions, the refused one included, and the runner keeps its own hash-chained journal of the two runs on the host.

Watch it work

Watch a real incident resolve.

A CSI driver erased 33 hours of metrics by reformatting a live storage volume. Follow the agent's investigation, the approved action that stopped further writes, and the Terraform fix it prepared for review.

# nomad-hvn03 · Dell R640 · Pure FlashArray over iSCSI multipath · democratic-csi v1.9.5
curl -fsSL https://emisar.dev/install.sh | sudo EMISAR_ENROLLMENT_KEY=emkey-enroll-… EMISAR_PACKS=linux-core,debugging,fs-search,docker,nomad bash
install target: linux/amd64 via systemd
latest release: runner-v0.32.1
install emisar runner-v0.32.1 to /usr/local/bin/emisar (and configure as a service)? [y/N] y
downloading emisar-0.32.1-linux-amd64.tar.gz from Emisar release mirror
checksum signature verified AndrewDryga/emisar/.github/workflows/runner-release-trusted.yml
checksum verified sha256:9f2c1e7b4a0d5c3e…
extracting
staging binary at /usr/local/bin/.emisar-stage.Qw3rTz/emisar
verified: emisar version 0.32.1
creating system user emisar
mkdir /etc/emisar
mkdir /var/lib/emisar
mkdir /var/log/emisar
installed binary to /usr/local/bin/emisar
installed pack linux-core (bundled)
installed pack debugging (bundled)
installed pack fs-search (registry)
installed pack docker (bundled)
installed pack nomad (registry)
writing pre-configured config to /etc/emisar/config.yaml
writing runner.env stub to /etc/emisar/runner.env
writing /etc/systemd/system/emisar.service
starting emisar.service
recorded installer ownership at /etc/emisar/install-receipt
installed emisar runner-v0.32.1
==============================================================
emisar runner-v0.32.1 installed.
Binary: /usr/local/bin/emisar
Config: /etc/emisar/config.yaml
Secrets: /etc/emisar/runner.env (chmod 600)
Data: /var/lib/emisar
Logs: /var/log/emisar/events.jsonl (security log)
Pre-configured from install env (EMISAR_URL + EMISAR_ENROLLMENT_KEY).
Edit /etc/emisar/config.yaml to tighten runner.group / labels later.
The service is running. Check the runner connection:
sudo /usr/local/bin/emisar status
sudo emisar status
✓ connection connected · heartbeat sent 3s ago
✓ catalog 5 packs · 193 actions advertised · all available
✓ process PID 2214 · up 9s · 1 connection attempt(s)
✓ runs 0 in flight (last reported by the daemon)
✓ checks 7 local readiness checks passed
Runner is connected and healthy.
sudo journalctl -u emisar -f -o cat
time=2026-10-28T13:41:06.873Z level=INFO msg=cloud.dial url=wss://emisar.dev/runner/socket/websocket external_id=nomad-hvn03
time=2026-10-28T13:41:07.412Z level=INFO msg=cloud.connected actions=193 packs=5 inflight_runs=0 requeued_starts=0 requeued_results=0
time=2026-10-28T13:47:02.114Z level=INFO msg=cloud.run_started request_id=req_7Hk2pQ9xWm4LsN1vT8cRaA action_id=nomad.alloc_stop
time=2026-10-28T13:47:02.497Z level=INFO msg=cloud.run_finished request_id=req_7Hk2pQ9xWm4LsN1vT8cRaA action_id=nomad.alloc_stop status=success exit_code=0 duration_ms=383 reason=""

The agent used fs, debugging, docker, and nomad packs from the catalog. Only the high-risk action was paused for human approval.

You set the rules once.

One person sets the policy for the whole team, so no engineer keeps a private approval list for their AI. Every agent in your workspace goes through the same rules.

The default policy

Every action has a risk tier, and the tier decides what happens.

  1. low 1,241 actions
    Allowed Runs right away linux.disk_usage
  2. medium 258 actions
    Allowed Runs right away docker.logs
  3. high 364 actions
    Approval Waits for a person nomad.job_revert
  4. critical 55 actions
    Denied Never runs kubernetes.drain

Your rules come first

Rules match an action pattern, and the first match wins. A runner or a runner group can have rules of its own.

  1. 1 *.delete_* Denied
  2. 2 nomad.job_* Approval
  3. 3 Anything else its tier decides

A person approves

A request that needs approval waits for one approver or two, in the console or from email. Approvals that keep repeating can become standing grants that expire on their own.

Each host has the last word

The runner can allow or deny actions itself and cap the risk it accepts, whatever the cloud policy says.

admission:
  deny: ["*.purge_*"]
  max_risk: medium

Read the policy docs 

One request, in detail.

Here is the approval step from the map, field by field: an agent asks to end one database session that is holding a lock. The names and timings are illustrative.

  1. 01

    The agent asks

    The agent picks an action from its catalog and supplies the runner, the arguments, and a reason a person can read later.

    request summary · not an API payload
    {
      "tool": "run_action",
      "action_id": "postgres.terminate_backend",
      "args": { "pid": 48213 },
      "reason": "pid 48213 has held a lock on orders for 9 minutes; checkout writes time out",
      "runner": "db-iad-01"
    }
  2. 02

    emisar checks it

    emisar checks that the agent may use this runner, the action belongs to a trusted pack, and the arguments are valid. A pack whose hash matches the published catalog is trusted automatically. An admin must review and trust custom or modified packs.

    the checks
    ✓ action   postgres.terminate_backend — in your catalog
    ✓ pack     postgres @ 3f9c1e27… — trusted for this account
    ✓ args     pid = 48213 — an integer from 1 to 4194304
    ✓ runner   db-iad-01 — this agent may use it
  3. 03

    Your rules decide

    Your policy allows the request, refuses it, or holds it for a person. Ending a session is high risk, so the default policy holds it, and Jordan approves it before the runner starts.

    the decision
    policy     high risk → the default for its tier
    decision   require_approval → waiting for a person
    approved   Jordan Lee · 41 seconds later ✓
  4. 04

    The runner does the work

    The runner checks the request against its installed pack and its local rules, then runs the pack's fixed command. It masks secrets that match its patterns before the output leaves the host.

    on your server
    runner   db-iad-01
    check    pack hash + arguments — verified again on the host ✓
    run      $ psql -XAt -c "SELECT pg_terminate_backend(48213);"
    result   exit 0 · 0.04s · t
  5. 05

    Everything is on the record

    Follow the request in the console from approval to result. The audit event links to the run, where you can inspect the command and its output.

    where to look
    Audit
    The request, the policy decision, Jordan's approval, and the outcome.
    Run history
    The arguments, the command, and the redacted output.
    Host journal
    A separate record the runner keeps on its own disk, chained line to line.

Read the full technical guide 

Run your first gated action in five minutes.

Install the runner, connect your agent, and put a real request through.

Three runners. Seven-day audit. No credit card.