Adrian
Open-source runtime security engine for AI agents: it watches actions and reasoning in real time and intercepts malicious tool use, prompt injection and policy drift before the agent acts.
- Source repo
- secureagentics/Adrian
- Stars
- ★ 595
- Last updated
- 27d ago
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 59/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformClaude Code · OpenAI API · Claude API
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Engineering teams running autonomous agents over sensitive data (e.g. investment research) who want data exfiltration and credential leakage blocked before actions execute.
- Not a fit if
- Teams without an NVIDIA GPU wanting full self-hosting
- Teams needing production CrewAI or OpenClaw support
- Teams requiring WhatsApp, Teams or PagerDuty alerts
- Website
- secureagentics.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-10-21+0.9 ★/day over 7 days
- Source review
- 59/100 · Major gaps
What does this agent do, and when should you use it?
Adrian is an open-source, AARM-aligned runtime security monitoring and control engine for AI agents by Secure Agentics. Unlike monitoring that stops at activity logs (APIs, MCP, tool calls), it also analyses the agent's reasoning traces, which OpenAI and DeepMind research cites as delivering +35% detection accuracy and 4x more nuanced attacks caught. It detects prompt injection and jailbreaks (direct and indirect), tool poisoning and off-policy tool calls, data exfiltration and credential leakage, plus privilege escalation and out-of-remit actions. The stack comprises a Go backend (WebSocket + dashboard API + AI engine), a Next.js dashboard, Python and TypeScript SDKs, and a local Llama.cpp container serving a Gemma model as the classifier. Deployment is either via the managed dashboard at app.adrian.secureagentics.ai or a fully offline, data-sovereign self-hosted stack driven by Docker Compose. SDKs integrate with two lines of code (adrian.init()/shutdown()) for LangChain/LangGraph, Anthropic and OpenAI Agents SDK, and a Claude Code plugin secures every tool call with no code changes.
At runtime, the Adrian SDK intercepts your agent's event stream: it auto-instruments LangChain/LangGraph and streams activity logs (tool calls, actions, outputs) plus reasoning traces to the Adrian backend. A classifier model (Llama.cpp serving a local Gemma model when self-hosted, or the managed service in the cloud) judges each action against the agent's configured remit and full session context, producing verdicts of alert, human review or block; the control plane steps in before the action lands. Operators generate API keys in the dashboard or via Settings → Agents, and configure audit vs block mode, alerting channels and accepted behaviours. Integration is two lines of code: adrian.init(api_key=...) and adrian.shutdown(). The Claude Code plugin installs via /plugin marketplace add secureagentics/Adrian and /adrian-init, classifying every tool call in real time.
- Engineering teams running autonomous agents over sensitive data (e.g. investment research) who want data exfiltration and credential leakage blocked before actions execute.
- Teams building multi-step LangChain/LangGraph agents in production who need alerting or real-time blocking when prompt injection or jailbreaks occur.
- Developers using Claude Code in the terminal who want every tool call classified, with risky actions blocked or held for approval inline.
- Organisations with data-sovereignty or offline compliance needs that must run agent security monitoring on their own infrastructure with no telemetry leaving the box.
- Security teams tracking whether agents drift out of remit (e.g. an e-commerce agent resetting user passwords) rather than relying solely on dataset-trained classifiers.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Ports
3000- Install notes cover
- Docker
How do you install or deploy this agent?
Managed: 1) sign up at app.adrian.secureagentics.ai and generate an API key; 2) pip install adrian-sdk; 3) pip install langchain langchain-openai (or langchain-anthropic, etc.). Self-hosted: 1) git clone https://github.com/secureagentics/Adrian && cd Adrian; 2) docker compose --profile setup run --rm setup bootstrap (interactively downloads the Gemma 4 E4B ~5GB or E2B ~3GB classifier, or pass --gguf my-model.gguf); 3) docker compose --profile llm up -d; 4) browse http://localhost:3000 and sign in with admin@localhost and the bootstrap-printed password. Prerequisites: Docker + Docker Compose v2, an NVIDIA GPU with CUDA driver, NVIDIA Container Toolkit, ~10 GB disk. Claude Code plugin: /plugin marketplace add secureagentics/Adrian then /adrian-init.
How do you use this agent?
Minimal managed-mode usage: import adrian; adrian.init(api_key="adr_live_..."), then invoke your LangChain/LangGraph agent normally (the SDK auto-instruments it), and call adrian.shutdown() at the end. Events appear in the dashboard within seconds, classified by severity. Self-hosted, the SDK defaults to ws://localhost:8080/ws so only the API key is needed. Create an SDK key in Settings → Agents → New key, and configure the agent's remit, audit vs block mode and alerting channels. A full runnable example is at examples/python/quickstart.py in the repository.
What are this agent's strengths and limitations?
- Analyses behaviour and reasoning together; OpenAI/DeepMind research cited in the README reports +35% detection accuracy and 4x more nuanced attacks versus behaviour-only monitoring, a concrete differentiator.
- Supports fully offline, data-sovereign self-hosting including a local Gemma classifier, with no telemetry leaving the box.
- Intervenes before actions execute (alert / human review / block), not after the fact.
- Judges actions against a working model of the agent's remit across the session, catching out-of-remit behaviour no training set would flag.
- Self-hosting requires an NVIDIA GPU and a heavyweight local model (Gemma 4 E4B ~5GB); CPU-only is possible but officially acknowledged as slow on real workloads.
- Production support is tied to LangChain/LangGraph (>=1.0,<2.0), the OpenAI Agents SDK or Anthropic SDK; CrewAI and OpenClaw are roadmap-only.
- Alerting is currently limited to Discord and Slack; WhatsApp, Teams and PagerDuty are not yet available.
- Contributors must sign a CLA and follow style rules (British English, no em-dashes), adding friction for external contributions.
How does this agent compare with similar options?
The README explicitly contrasts Adrian with activity-log-only monitoring and with classifiers trained only on prompt-injection datasets, which it says catch only previously seen patterns; Adrian instead judges behaviour against the agent's remit and session context. No named commercial competitors are listed.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Adrian This agent | 59 · Major gaps | Library / SDKFreemium | ★ 595 | 27d ago | Python | Claude Code · OpenAI API · Claude API |
| HOL Guard | 80 · Good | CLIFreemium | ★ 1.1k | today | Rust | Codex · Claude Code |
| Node9 | 68 · Some gaps | CLIFreemium | ★ 225 | today | TypeScript | Codex · Claude Code |
| Prismor | 61 · Some gaps | CLIFree + model costs | ★ 495 | today | Python | Codex · Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The hook source says events are sent to the Adrian backend over WebSocket, where alert, block, or human-review modes apply; blocking and review depend on server policy, and the plugin defaults to fail-open, so failures may still allow actions. The event includes tool inputs, outputs, reasoning, and path context, and a PII redaction module is imported, but the provided excerpts do not establish protection for every sensitive field and storage stage. TLS verification, API-key connection revocation, and key rotation paths have code support. Evidence for dependency auditing and event rollback or recovery is limited. Source copyright names Secure Agentics and the marketplace manifest gives a contact email, making attribution traceable while publisher identity remains unknown.
The backend entrypoint, plugin mode description, and README architecture are broadly consistent, and the README presents managed and self-hosted paths. However, the hook defaults to a local WebSocket endpoint while the managed quickstart requires endpoint configuration that is not detailed here. The README gives dependency ranges and a verification date, but the packet does not show full dependency locks or availability guarantees. Timeouts, a health check, structured logs, and configurable fail-open behavior support diagnosis; static evidence cannot establish runtime outcomes.
The README identifies Python/LangChain, TypeScript, Anthropic, and Claude Code integrations, distinguishes managed and offline self-hosted deployments, and states NVIDIA GPU and model-storage requirements. The plugin supports audit, block, and HITL policies and submits tool events for assessment, giving reasonably clear scenarios and triggers. The provided source focuses on Claude Code hooks, while other framework support is primarily documented, so full marks are not warranted.
The README has clear quickstart, self-hosting, architecture, integration, and contribution sections. Installation steps include Docker, GPU, SDK, and dependency-version guidance, with readable examples. The security policy explains reporting, response targets, and research scope, and discloses the lack of a paid bounty and local-classifier limitations. The complete Apache 2.0 license is explicit and merits full marks. The supplied files do not show a clear release history or routine changelog, so version/change documentation is partial. Copyright and a security contact are clear, but maintenance responsibility and team capacity are only lightly described.
The product combines runtime events and reasoning context for classification and supports alerting, blocking, and human review, offering potential value beyond static analysis. The dashboard, logs, and hook response structure provide usable outputs. The README's detection-improvement figures and coverage claims link to research but provide no Adrian-specific evaluation details in this packet. Cost-benefit treatment is partial: self-hosting requires a GPU, about 10 GB of disk, and a local model; managed use requires an API key, while latency, false-positive rates, and ongoing costs are not quantified.
The README links research for detection claims and relative improvements, but the supplied materials do not include methods or results supporting the product-specific figures, limiting claim traceability. The architecture diagram, quickstart, security policy, hook implementation, and sample tests corroborate event reporting, policy modes, and integration paths; they do not establish actual detection effectiveness. The README separates product descriptions, configuration examples, and limitations to some extent, while SECURITY.md notes that classification depends on remit and policy settings, supporting a reasonable distinction between facts and conditional claims.
- The plugin defaults to fail-open, so a failure or timeout may let a tool call proceed. Check ADRIAN_CC_FAIL_OPEN, execution mode, and classifier-error policy against the deployment's risk requirements.
- Tool inputs, outputs, and reasoning context are sent to the configured Adrian backend. Confirm the managed or self-hosted data path, retention policy, and coverage of sensitive-data redaction.
- The README's detection-improvement figures are product-documentation claims; the supplied materials do not independently establish Adrian's detection performance or false-positive rate.
FAQ
Is Adrian free?
What hardware does self-hosting need?
Can I use it without writing code?
What happens when a risky action is detected?
Which agent frameworks are supported?
Is Adrian open source?
Is Adrian safe to use?
Is Adrian still maintained?
Who makes Adrian?
What is Adrian's official website?
Thanks — we use this to improve the page.