trustops-agent
v0.2.3
Published
Policy-enforced AI agent runtime for TrustOps. Ed25519-signed audit logs and PreToolUse policy hooks for Claude Code.
Maintainers
Readme
trustops-agent
Policy-enforced AI agent runtime for the TrustOps Platform.
Installs on any machine where you want a Claude-based agent to run. Connects to your TrustOps server via Socket.io, consults the policy engine before every tool call, and signs every emitted log with Ed25519 so the audit chain is cryptographically verifiable.
Install
The recommended install is the one-liner from your TrustOps instance:
curl -sSL https://app.trustops.eu/install.sh | sudo TRUSTOPS_TOKEN=oat_xxx bashIt installs Node 20, creates a trustops system user, sets up a systemd unit, and starts the agent.
Manual
npm install -g trustops-agent
TRUSTOPS_API_URL=https://app.trustops.eu TRUSTOPS_TOKEN=oat_xxx trustops-agentHow it works
- On startup it loads (or generates) an Ed25519 keypair at
~/.trustops/key.jsonand registers the public key with the server. - On every prompt it installs
.claude/settings.jsonwith aPreToolUsehook into the working directory. The hook curlsPOST /api/policies/evaluateand returns{permissionDecision: "deny", permissionDecisionReason}if the policy engine refuses the tool call. - Every log entry is hash-chained per prompt: each log carries
prevHash,hash, andsignature. The server stores them verbatim and/api/audit/verify?promptId=Xwalks the chain offline.
License
MIT
