Plugins

A plugin is a hook plus an SDK: it binds one surface's native interception points (an agent framework's tool lifecycle, a gateway's request/response filters, a sandbox's exec chokepoint) to the OGR contract — emitting GuardEvents, enforcing Verdicts — with the SDK doing the wire work underneath. Install one and a real agent is guarded without writing code.

The four hook categories

CategoryBindsAltitudeExamples
Agent hooksa framework's tool/model lifecycle (pre/post tool, pre/post model)invocationClaude Code, Codex, Hermes, LangGraph, OpenClaw, opencode
Gateway hooksan LLM proxy's request/response path, normalized across protocolsconversationHigress WASM plugin, OpenAI/Anthropic gateway example
Sandbox hooksthe exec chokepoint where commands actually runexecutionsrt and OpenShell backends (via the Hermes plugin)
eBPFkernel-level process/file/network observationexecution (kernel sensor)the OGR eBPF reference sensor

Kernel-level integrations map their events to the same execution observation point — same contract, unbypassable sensor.

Install matrix

SurfacePackage / installRegistry
Claude Code/plugin install openguardrails@openguardrailsClaude Code marketplace (guide)
Codexmarketplace pluginClaude Code/Codex marketplace
Hermespip install openguardrails-instrumentation-hermesPyPI (srt guide, OpenShell guide)
LangGraphpip install openguardrails-instrumentation-langgraphPyPI
OpenClawnpm i openguardrails-instrumentation-openclawnpm
opencodenpm i openguardrails-instrumentation-opencodenpm
Gateway (OpenAI/Anthropic)pip install openguardrails-gatewayPyPI
HigressWASM pluginrepo
eBPF sensorCO-RE kernel program + userspace PEPrepo

Language libraries pull in their core SDK (openguardrails / @openguardrails/core) automatically; self-contained marketplace plugins bundle it and need no separate runtime install.

Browse the full gallery with screenshots and writeups on the showcase.

Guides

  • Claude Code — a PreToolUse hook denies risky tool calls (curl|bash, obfuscated exec, non-allowlisted egress, credential reads) before they run, even in bypass mode.
  • Hermes + srt (personal) — one laptop, OS-level filesystem and network isolation from one policy.json.
  • Hermes + OpenShell (team) — multi-tenant container isolation with a central OPA/Rego egress proxy.

No plugin for your stack? The pattern is four steps — instrument your agent.