Skip to main content
Wrap a LangChain agent with Adrian in two lines and watch events appear in your dashboard.
1

Sign up to Adrian

Go to app.adrian.secureagentics.ai and create an account.
2

Create an agent profile and API key

From the dashboard, create an agent profile (name, remit, and execution mode - Audit / Human Review / Block) and generate an API key bound to it. We operate a generous fair-use policy based on total tokens used across all keys on the account, viewable in the dashboard.
3

Install the Adrian SDK

Requires Python 3.12+. Install the LangChain provider for your agent’s model alongside it:
4

Wrap your LangChain agent

The ws_url above points at Adrian Cloud. The SDK’s default is ws://localhost:8080/ws (a self-hosted backend), so set ws_url= or ADRIAN_WS_URL to wss://adrian.secureagentics.ai/ws for the hosted service.
Use the async pattern (asyncio.run + await llm.ainvoke) rather than sync llm.invoke - the WebSocket transport runs on the asyncio loop, and sync llm.invoke returns before the loop has a chance to flush events.
Set OPENAI_API_KEY in your environment alongside ADRIAN_API_KEY for the snippet above; ChatOpenAI reads it directly.
5

See your agent populate in Events

Run your agent. Within seconds, events appear in the dashboard’s event feed with their classification verdicts and severity codes. See Severity codes for what each M-code means.
That’s it: your first agent event is in Adrian. See How it works for what happens to it, or Integrations to route alerts to Slack or Discord.

Demo

Watch the walkthrough