Your data never leaves
your machines.
Terminal bytes, transcripts, diffs and code go between your device and your host directly, over your SSH or an encrypted peer-to-peer link, and never touch our cloud. What the cloud carries is push, entitlements, routing metadata and the sealed approval path: frames it cannot open, decisions it cannot forge.
What crosses the wire
Three parties, two of them yours. Each link below is labelled with what actually travels along it.
- gold — sealed frames (state, spans, held calls)
- grey — your signed decisions
- dashed — sign-in, plan & device public keys (metadata only)
Entitlements gate cloud push fan-out only — the terminal, transcripts, diffs and tunnel approvals keep working offline, unsubscribed and with no account. When the link to the daemon is down, Approve and Deny disable with a reason; nothing queues, and held calls keep counting down on the host.
How each part behaves
What is built today, stated plainly. Nothing here is a roadmap.
Keys are made on the device
Pairing generates an Ed25519 signing key and an X25519 box key on the device. The host pins the public halves; the private halves never leave. Every frame to a device is sealed to its box key, and every decision from it is signed with its signing key.
private keys never uploaded · protocol 3.1
What the relay can see
Ciphertext, which device it is for, size and time.
Not your code, commands, diffs or transcripts.
Your decisions cross it signed, not sealed: it can see which call you answered and how, and cannot alter one. The cloud also throttles each host and account, so one runaway host cannot flood your devices.
Cloud-side session metadata expires six hours after the last event. Push tokens live until you unpair the device.
routing metadata only · 6h TTL
Approvals fail closed
The daemon owns the clock: 30 minutes by default, and a held call denies at zero with a reason the agent can read. Extend adds five minutes to the deadline, at most three times per call; it never resets the clock and never disables the timeout, and a fourth extend is refused. Under 40% of the window left, the sheet warns DENYING SOON. A device that cannot reach the daemon cannot decide — the buttons disable with a reason, nothing queues. Auto-approve-on-timeout does not exist as a setting.
Each decision is Ed25519-signed on the device, verified against the pinned key, with the span id inside the signed form and a single-use nonce. The cloud relays it and cannot forge it.
Since protocol 36 the decision also carries a digest of the exact tool, command and target you were shown, and the host checks it against the call it holds: a signature given for one command cannot release another. The held calls the host sends through the cloud are signed with its own key, and your device shows nothing it cannot verify against the key it pinned at pairing. Device actions name the host they are for, so one cannot be replayed to another.
While older app versions update, a host still accepts their unbound forms: the legacy-forms setting, on by default for now, with every use logged and audited. Once all your devices are current, neku set legacy-forms off refuses them. A device can turn it off; only the host can turn it back on.
timeout → deny · offline → no decision · protocol 8.8
Pairing and revocation
There is one way to pair: neku pair on the host shows a single-use code, as a QR, a link and text, with a 120-second window. Over your SSH tunnel the code goes straight to the host, and the SSH session is the authorisation.
From anywhere else it goes through your account without ever leaving the device: the device sends a proof keyed by the code, the cloud relays it, and the host answers with its own key under the same code. The cloud never sees the code, so a hostile relay or a stolen sign-in cannot get a key pinned, and cannot stand in for the host. A host that is in no account yet joins yours only after someone at its terminal agrees to your account by name.
neku unpair drops the pinned keys at once, rejects any in-flight decision signed by that device, and stops sealing to it.
neku pair · neku devices · neku unpair · protocol 3.2–3.5
Signed releases
Every release manifest carries an Ed25519 signature. The public key is pinned inside install.sh and built into the neku binary. The installer verifies the signature before it runs anything, takes each tarball's digest from the verified manifest, and refuses a mismatch — there is no skip flag. neku update repeats the same check with the key already in your binary and never installs an older version.
A first install is different: the script, the key in it and the release all come from get.neku.sh, so comparing them with each other proves nothing about that server. Compare the key with this page instead, which a different bucket and a different deploy serve. Save the script, then:
grep '^KEY=' install.sh | cut -d'"' -f2 | openssl base64 -d -A | shasum -a 256
Release key fingerprint (SHA-256 of the raw key; the installer prints it too):
655b 3d36 b4db a301 4c0c 450b a414 cc34 dd8b 8d4f a256 9ff0 159c 4e40 6526 5514
This page and get.neku.sh are still run from one cloud account, so the check catches a tampered release server, not a compromise of that account. A copy outside it is planned.
verify, then run · threat model 4.2
Policy backstops
Policies are evaluated on the host, first match wins, no match asks. Two rules sit above every policy and cannot be configured away: a command containing a shell control construct (& | $( ` > <, a subshell or a newline) is never auto-approved, a chain joined only by && || ; runs only when every part would be approved on its own, and a write that lands on the policy file — judged by the resolved path, not its spelling — is never auto-approved. Policy authoring is a signed device action; the daemon never accepts a policy decision over the wire.
Some calls always ask, whatever your rules and even in Full-Auto: stopping or reconfiguring Neku, and writing shell startup or autostart files (rc files, LaunchAgents, systemd user units, crontab). The policy file loads only as Neku wrote it or as you accepted it with neku policy accept; an edit made behind its back leaves the last accepted copy in force and says why. The gate's own hook entries are fingerprinted, and tampering is reported.
~/.config/neku/policies.toml · approval-policies 5–6
What is kept, and for how long
Neku reads transcripts where the agent wrote them and never copies one into its own store. On the host: daemon logs 7 days, the policy audit log 30 days, the event buffer 24 hours. In the cloud: inbox events and session metadata 6 hours, entitlements for the life of the account, push tokens until the device is unpaired. Nothing is retained by tier.
host 7d / 30d / 24h · cloud 6h · data-handling 2
Gateway and daemon
The gateway binds loopback only and requires a bearer token, so another user on the same host cannot read your sessions. Your devices reach it over your own SSH; a paired device can reconnect with its pinned key instead of a token. The daemon runs as your user, needs no root and opens no inbound port. The observing hook always exits 0 within 250 ms so it can never break the agent it watches. When the daemon is not running, the approval gate gives no answer at all, so the agent's own permission settings decide, exactly as if Neku were not installed.
loopback + bearer · protocol 5.2
Enclaves and host git
An enclave is a container on your host with its own hook socket; the host's is never mounted into it. Its work leaves as a git bundle the host treats as untrusted input, and host git never runs inside a tree an agent can write, so a repo's own config cannot run code on the host. File steps never write through symlinks, and a template that leaves out a network policy gets monitoring where the host can route egress.
functional 17 · threat model, enclaves
Skip the cloud entirely
Nothing requires an account. Pair over SSH, open the UI with neku web-tunnel, and every approval, transcript and diff works with the cloud unreachable or never configured. Only push, pairing through your account and the browser at app.neku.sh need the cloud. neku login --url points the daemon at a different uplink.
no account needed · [SELF-HOST GUIDE]
Responsible disclosure
Found something? Tell us before you tell the internet.
Mail [SECURITY EMAIL] with a description and, if you can, a way to reproduce it. We acknowledge within [RESPONSE TIME] and will credit you in the changelog unless you would rather we did not.
please do not test against other people's hosts
- SOC 2[SOC 2 STATUS]
- Data processing agreement[DPA ON REQUEST]
- Third-party penetration test[PEN TEST STATUS]
- Subprocessor list[SUBPROCESSORS]
We list no certification we do not hold.
Read the threat model, then install it.
The daemon is the only piece that touches your code, and it stays on your machine. The installer verifies its signature before it runs.
runs on your machines · end-to-end encrypted · timeouts deny