adrian-init

A setup command for Adrian security that helps choose a backend and configure its API key. It verifies whether Adrian is already configured and keeps the key out of chat output.

In plain words
What is it for?
Use it to check Adrian configuration, select a security backend, configure the required API key, and verify the setup result.
Why use it?
It guides first-time setup without asking you to paste or display a secret. If verification fails, it continues through the setup flow instead of stopping immediately.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/secureagentics/adrian/adrian-init
Clone the repo
git clone --depth 1 https://github.com/secureagentics/Adrian
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,324 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.01324
Opus 5 $0.00007 $0.00662
Sonnet 5 $0.00003 $0.00265
Haiku 4.5 $0.00001 $0.00132

Measured yesterday against content hash e30c4c4ad3ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adrian-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/claude-code/commands/adrian-init.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Walk the user through Adrian setup in a SINGLE run - concisely, step by step.

CRITICAL - do the WHOLE flow in ONE invocation. NEVER finish by telling the user to run /adrian-init again. If a check fails, that is your cue to CONTINUE with the setup steps below yourself. In particular: if you run verify first and it FAILS, do NOT stop and re-prompt - go straight to step 1 and continue the setup in the same run.

SECURITY - non-negotiable: NEVER ask the user to paste their API key into the chat, and NEVER print, cat, or echo the key value or the contents of the .env file. The key stays out of this conversation. You only ever run the verify command (which reports OK/FAIL, not the key).

0. (Optional) Short-circuit if already configured

You MAY first run adrian-python -m adrian_cc.agent verify:

  • OK → Adrian is already set up; say so and stop. Nothing else to do.
  • FAIL (or not configured) → this is expected for first-time setup. Do NOT stop, and do NOT ask the user to re-run the command - immediately continue to step 1 in this same run.

1. Choose the backend

Use the AskUserQuestion tool (header "Backend"). The tool auto-adds an "Other" free-text choice = the custom path; word it so the user knows Other = a custom self-hosted URL:

  • "Adrian Cloud (hosted)" - managed backend. (Recommended)
  • "Self-hosted (local)" - a local OSS backend on the default host/port.
  • (built-in "Other") - the user types a custom self-hosted host/port or ws:// URL.

Resolve the answer to a WebSocket URL:

  • Adrian Cloud (hosted) → wss://adrian.secureagentics.ai/ws
  • Self-hosted (local) → ws://localhost:8080/ws
  • "Other" free text → normalize whatever they typed:
    • a full ws:// or wss:// URL → use as-is
    • host:portws://host:port/ws
    • host only → ws://host:8080/ws (Defaults: port 8080, path /ws, scheme ws:// unless they gave wss://. If their input is ambiguous, confirm the resolved URL before writing.)

2. Write the config (commented, with an API-key PLACEHOLDER)

Create ~/.adrian/ if needed and write ~/.adrian/.env with ADRIAN_WS_URL set to the resolved URL and a short # comment above each variable explaining what it's for, so the user can understand and hand-tune the settings they weren't asked about:

# Adrian backend WebSocket URL (set from your backend choice above).
ADRIAN_WS_URL=<resolved>

# Your Adrian API key - replace this placeholder with your real key:
# adr_live_... (Adrian Cloud, from your dashboard) or adr_local_... (self-hosted).
ADRIAN_API_KEY=REPLACE_WITH_YOUR_ADRIAN_KEY

# Seconds to wait for a verdict before giving up on a tool call.
ADRIAN_CC_VERDICT_TIMEOUT=15

# What happens if Adrian can't reach the backend or a verdict times out:
#   true  = fail open  - allow the tool (best-effort monitoring, never blocks work)
#   false = fail closed - block the tool (max security, but blocks work when the backend is down)
ADRIAN_CC_FAIL_OPEN=true

The ADRIAN_API_KEY line is a PLACEHOLDER written for the user, so all they have to do is swap the value. Preserve an existing real key: if ~/.adrian/.env already has an ADRIAN_API_KEY line, do NOT overwrite it with the placeholder - detect this silently with grep -q '^ADRIAN_API_KEY=' ~/.adrian/.env (exit status only; it never prints the value). Never print the file contents or the key. Tell the user the exact file path you wrote.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 98 lines · 14 tokens per session scan A e30c4c4ad3ef

Subscribe to this mod's changes

adrian-init is a command published in the GitHub repository secureagentics/Adrian (553 stars, last pushed 12d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,324 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.