Adrian-OSS is a free, open source ai security & privacy project written in Python and released under Apache-2.0. It has 602 GitHub stars, 98 forks and 9 open issues, and was last pushed 29 hours ago. On this registry it ranks #52 of 59 tracked projects in AI Security & Privacy, with 5 head-to-head comparisons available.

What is Adrian-OSS?

Adrian-OSS is an open-source, Apache-2.0 runtime security engine for AI agents that examines both agent activity and reasoning, then blocks or holds risky actions before they land, aimed at developers and security teams running autonomous agents in production.

What it is

Adrian-OSS is an open-source runtime security monitoring and control engine for AI agents, aligned with the AARM specification at aarm.dev. It analyses agent activity logs — tool calls, actions and outputs — alongside reasoning traces to detect malicious, misaligned or out-of-remit behaviour, including policy drift, and it can optionally intervene in flight. It is written in Python under Apache-2.0, with SDKs for Python (including LangChain and Anthropic integrations) and TypeScript, plus a native Claude Code plugin.

Agent attacks slip past static analysis and network monitoring, and most agent monitoring stops at activity logs such as APIs, MCP, database interactions and tool calls. Adrian adds reasoning analysis to that behavioural view, judging each action against a working understanding of the agent's remit and correlating evidence across the session, which the project contrasts with classifiers trained only on prompt-injection datasets. The README's example is an e-commerce agent that begins resetting user passwords: no training set would flag it, but the remit comparison does.

Key capabilities

  • Runtime analysis of activity logs (tool calls, actions and outputs) and reasoning traces, so an action is judged by why it was taken and what the agent plans next.
  • Optional in-flight intervention in audit or block mode, so a risky action is stopped or held rather than only recorded.
  • Detection of direct and indirect prompt injection and jailbreaks, tool poisoning, unsafe or off-policy tool calls, data exfiltration, secret and credential leakage, privilege escalation and out-of-remit actions.
  • Session-level correlation against the agent's declared remit, rather than matching only against known prompt-injection datasets.
  • Python SDKs for LangChain and Anthropic and a TypeScript SDK, with auto-instrumentation of LangChain and LangGraph.
  • A native Claude Code plugin installed with /plugin marketplace add secureagentics/Adrian and /adrian-init, which classifies every tool call in the terminal without code changes.
  • Configuration of agent remit, audit versus block mode, alerting channels, and accepted behaviours versus known risks.

Who uses it and how

  • Python teams running LangChain or LangGraph agents can auto-instrument with pip install adrian-sdk, define the agent's remit and choose audit or block mode.
  • Claude Code users can secure every terminal tool call through the plugin, with risky actions blocked or held for approval in the terminal.
  • Security and governance teams can begin in audit mode to observe and alert on out-of-remit behaviour, then move to blocking once accepted behaviours are configured.
  • Teams wanting a managed control plane can sign up at app.adrian.secureagentics.ai and install only the SDK; those needing the engine on their own infrastructure can follow the self-hosting path.

Getting started

The quickest route is the managed dashboard at app.adrian.secureagentics.ai, where sign-up produces an API key and the local install is pip install adrian-sdk with langchain and the provider package for the agent's model. The repository also provides GET_STARTED_AI_GUIDE.md for an agent-assisted install and a self-hosting section for running Adrian on your own infrastructure.

How it compares

The facts provided name no competing products, so Adrian-OSS stands alone in this registry as a runtime agent security and control engine. Its own contrast is with behaviour-only monitoring and prompt-injection classifiers, citing OpenAI and DeepMind research for claims of 35% greater detection accuracy and 4x more nuanced attacks caught.

When to use it — and when not to

Adrian-OSS fits teams whose agents run on LangChain, LangGraph, Anthropic's SDK, TypeScript or Claude Code, and who want an inline control that can audit first and block later. It is a weaker fit where the stack falls outside those integrations, since the supplied facts describe no other SDKs, or where the team cannot run the self-hosted engine and does not want the hosted dashboard. The detection figures rest on external research rather than an independent benchmark of Adrian, and self-hosting requirements are left to a separate section, so a self-hoster should read that material before committing.

project readme (upstream, from github) — read inline

Agent attacks slip past static analysis and network monitoring.

Adrian catches them at runtime, by watching what the agent actually does (its actions and its reasoning) and stepping in before it acts. Open source, free forever.

+35% detection accuracy · 4x more nuanced attacks caught vs behaviour-only monitoring (OpenAI & DeepMind research)

Stars Licence Dashboard PyPI Discord LinkedIn Product Hunt

⭐ If you think agents need a runtime security layer, star the repo. It is how new people find Adrian, and how we know to keep building it in the open.


Adrian is an open-source, AARM-aligned runtime security monitoring and control engine for AI agents. It analyses both agent activity logs (tool calls, actions, outputs) and reasoning traces to detect malicious, misaligned, or out-of-remit behaviour, and optionally intervene in-flight. SDKs are available for Python (LangChain, Anthropic) and TypeScript (sdk/typescript/README.md), plus a native Claude Code plugin that secures every tool call from your terminal.

🆕 Claude Code plugin - now live. Drop Adrian into Claude Code and every tool call is classified in real time, with risky actions blocked or held for your approval right in the terminal. No code changes: install with /plugin marketplace add secureagentics/Adrian then /adrian-init. Full guide: integrations/claude-code/README.md.

Documentation  •  Dashboard  •  Discord  •  LinkedIn

▶️ See it in action: Adrian catches an agent going out-of-remit in real time and steps in before the action lands.

https://github.com/user-attachments/assets/ba50e6e4-fe3e-47b2-aa69-2902e1ef2924

New to Adrian? Check out the Launch Video.

Why Adrian is different

Most agent monitoring stops at activity logs: APIs, MCP, DB interactions, tool calls, etc. Adrian enhances this by also analysing the agent's reasoning: understanding why it took an action, under what context, and what it is planning on doing next. Combining behaviour and reasoning analysis like this is exactly what the OpenAI and DeepMind research found catches far more, and Adrian is the first tool to put it into a deployable security control, free forever.

What it catches:

  • Prompt injection and jailbreaks, direct and indirect
  • Tool poisoning and unsafe or off-policy tool calls
  • Data exfiltration and secret / credential leakage
  • Privilege escalation and out-of-remit actions

Classifiers trained on prompt-injection datasets only catch what they have seen before. Adrian works differently: it holds a working understanding of what your agent is meant to do and judges each new action against that, correlated across the whole session. So when your e-commerce agent starts resetting user passwords, something no training set would flag, Adrian catches it.

Quickstart

Want the stupidly simple, 60-second hands-off install? Feed your coding agent (Claude, Codex, Cursor, etc.) this file: GET_STARTED_AI_GUIDE.md. It will walk you through the installation process (video guide here). Always review instructions manually.

The next fastest way to try Adrian is the managed dashboard at app.adrian.secureagentics.ai. Sign-up takes a minute and there is nothing to install beyond the SDK. To run Adrian on your own infrastructure instead, jump to Self-hosting below.

  1. Sign up at app.adrian.secureagentics.ai and generate an API key.

  2. Configure Adrian for your agent and your preferences (remit of your agent, audit vs block mode, alerting channels, accepted behaviours vs known-risks).

  3. Install the SDK:

    pip install adrian-sdk
    
  4. Install LangChain and the provider for your agent's model (the SDK auto-instruments LangChain / LangGraph; pick whichever provider matches your model):

    pip install langchain langchain-openai   # or langchain-anthropic, etc.
    # or, in a uv project:  uv add langchain langchain-openai
    

langchain pulls langgraph in, so this covers both create_agent and create_react_agent. Last verified 2026-06-24 with langchain==1.3.9, langgraph==1.2.5, langchain-core==1.4.7, langchain-openai==1.3.2. Supported: langchain/langgraph/langchain-openai `>=1.0,=1.2.19,

  1. Wrap your LangChain agent. Two lines of Adrian (init + shutdown) bracket your normal LangChain / LangGraph code:

    import asyncio
    import adrian
    from langchain_openai import ChatOpenAI
    
    async def main():
        adrian.init(api_key="adr_live_...")
        llm = ChatOpenAI(model="gpt-4o")
        response = await llm.ainvoke(
            "Find the most underpriced recent IPOs and build an investment strategy",
        )
        print(response.content)
        adrian.shutdown()
    
    asyncio.run(main())
    

    Full runnable version (with env-var checks) at examples/python/quickstart.py. More complex examples using agents are in examples/python/.

  2. Run your agent. Events appear in the dashboard within seconds, classified by severity.

Full guide: Quickstart.

Self-hosting

Adrian supports entirely offline, data sovereign deployments using just a handful of docker commands. This repository ships everything needed to run the entire Adrian stack on a single host: the Go backend (WebSocket + dashboard API + AI engine), the Next.js dashboard, the Python SDK, and a Llama.cpp container that serves a local Gemma model. No managed cloud, no telemetry leaving the box.

Hardware support: Tested on NVIDIA GPUs with Gemma 4 (E2B / E4B) which is the model the bootstrap picker downloads by default. CPU-only is technically possible but will be slow on real workloads with those sized models.

Prerequisites

  • A host with Docker + Docker Compose v2.
  • An NVIDIA GPU with recent CUDA driver and the NVIDIA Container Toolkit installed (for the bundled Llama.cpp classifier). ~10 GB free disk for the model.

Bring-up

  1. Clone:

    git clone https://github.com/secureagentics/Adrian-OSS
    cd Adrian
    
  2. Run bootstrap. Creates data/adrian.db, applies migrations, generates a random admin password, and writes .env. With no --gguf flag, the bootstrap interactively offers to download the recommended on-device classifier (Gemma 4 E4B, ~5 GB, or E2B ~3 GB) into ./models/.

    # Default: interactive picker downloads Gemma 4 E4B / E2B
    docker compose --profile setup run --rm setup bootstrap
    
    # Already have a GGUF under ./models/? Pass it by name
    docker compose --profile setup run --rm setup bootstrap \
        --gguf my-model.gguf
    
  3. Start the stack.

    docker compose --profile llm up -d
    
  4. Open the dashboard. Browse to http://localhost:3000. Sign in with admin@localhost plus the password the bootstrap printed; you'll be prompted to set a new one. Create an SDK API key and configure Adrian to monitor your specific agent from Settings → Agents → New key.

  5. Wrap your agent. The SDK lives in-tree under sdk/. Install it into a fresh .venv via the bundled Make target (uses uv):

    make sdk-install
    source .venv/bin/activate
    

    Install LangChain and the provider for your agent's model into the same venv:

    uv pip install "langchain>=1.0,=1.0,`langchain` pulls `langgraph` in, so this covers both `create_agent` and `create_react_agent`. Last verified 2026-06-24 with `langchain==1.3.9`, `langgraph==1.2.5`, `langchain-core==1.4.7`, `langchain-openai==1.3.2`.</sup>
    
    Use the same `adrian.init` snippet as in the [Quickstart](#quickstart) above. The SDK defaults to `ws://localhost:8080/ws`, so a self-hosted setup needs nothing more than the API key - drop the `ws_url=` line.
    

To reset the admin password, change the model and much more check out the dedicated Docs site.

Architecture

flowchart TD
    Agent[Agent runtime] --> SDK[Adrian SDK]
    SDK --> Backend[Adrian backend]
    Backend --> Classifier[Classifier model]
    Classifier --> Verdict{Verdict}
    Verdict --> Control[Control plane]
    Verdict -.->|"Alert /<br>Human Review /<br>Block"| Agent

Integrations

SupportedOn roadmap
Frameworks LangChain      Claude Code   Anthropic SDK CrewAI   OpenClaw
Alerting Discord   WhatsApp      PagerDuty

Full list: Integrations. New: the Claude Code plugin is live. ⭐ the repo or join Discord.

Contributing

⭐ Star the repo if Adrian is useful. Then see CONTRIBUTING.md for the full guide. In short: sign the CLA, branch off main, follow the PR template, and use British English / no em-dashes in prose.

See CONTRIBUTORS.md for the list of people who have shaped Adrian, and how to add yourself.

Licence

Adrian is released under the Apache 2.0 licence. New source files should carry the SPDX header from LICENSE_HEADER.txt.

Community

  • Discord for chat with the team and other Adrian users
  • LinkedIn for product updates

Featured on

Frequently asked questions

Is Adrian-OSS free to use?

Adrian-OSS is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Adrian-OSS do?

Open-source runtime AI agent security tool - monitors and controls AI agents, catching malicious tool use, prompt injection, and policy drift in real time, befo

What is Adrian-OSS written in?

Adrian-OSS is primarily written in Python. Its source is publicly available at https://github.com/secureagentics/Adrian-OSS, and it has 602 GitHub stars.