Set up and verify AgentGuards in OpenCode. Use when the user asks to configure AgentGuards, set their API key, or check that the guardrails are wired up correctly.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# AgentGuards setup
Guide the user through finishing AgentGuards setup after installing the
plugin. The plugin already bundles the enforcing hooks — the user must supply
their API key and, optionally, register the MCP server.
## Steps
1. **Check for the API key.** Look for the `AGENTGUARDS_API_KEY` environment
variable. If it is missing or does not start with `ag_`, tell the user to:
- Get a key from the dashboard at https://agentguards.co/dashboard/keys
- Export it so both the plugin and the MCP server can read it. For the
current shell and future sessions, add to their shell profile
(`~/.bashrc`, `~/.zshrc`, etc.):
```
export AGENTGUARDS_API_KEY=ag_your_token_here
```
- Restart OpenCode (or start a new session) so the plugin picks up the key
from the environment.
2. **Confirm the URL (optional).** AgentGuards defaults to
`https://prod.agentguards.co`. Only set `AGENTGUARDS_URL` if the user runs a
self-hosted instance.
3. **Fail-open vs fail-closed.** The plugin fails **closed** by default — if
the AgentGuards service is unreachable, actions are blocked. A user who
prefers availability over strict enforcement can set
…
The line at the top of this page pins the label git:20260713.7345168, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_fi4elhpresmyuez7
GET https://markdownregistry.com/api/v1/resolve?ref=alelaguard/agentguards-plugins/setup
GET https://markdownregistry.com/api/v1/blob/d87d693ab8d8114bff671a453cf3d659d522be54939e9e43ccedc7240a1db4ec
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
alelaguard/agentguards-plugins · claude-directory/skills/guardrails/SKILL.md · How AgentGuards enforces its guardrails in Claude Code — fully automatic, via hooks, with nothing for you to call. Load…
alelaguard/agentguards-plugins · claude-directory/skills/setup/SKILL.md · Set up and verify AgentGuards in Claude Code. Use when the user runs /agentguards:setup, asks to configure AgentGuards…
alelaguard/agentguards-plugins · claude-directory/skills/status/SKILL.md · Report AgentGuards guardrail status. Use when the user runs /agentguards:status or asks whether AgentGuards is active…
alelaguard/agentguards-plugins · claude-selfhosted/skills/guardrails/SKILL.md · AgentGuards security guardrails for a self-hosted appliance — explains that enforcement is fully automatic via hooks…
alelaguard/agentguards-plugins · claude-selfhosted/skills/setup/SKILL.md · Set up and verify AgentGuards in Claude Code against a self-hosted appliance. Use when the user runs…
alelaguard/agentguards-plugins · claude-selfhosted/skills/status/SKILL.md · Report AgentGuards guardrail status for a self-hosted appliance. Use when the user runs /agentguards:status or asks…
alelaguard/agentguards-plugins · claude/skills/guardrails/SKILL.md · How AgentGuards enforces its guardrails in Claude Code — fully automatic, via hooks, with nothing for you to call. Load…
alelaguard/agentguards-plugins · claude/skills/setup/SKILL.md · Set up and verify AgentGuards in Claude Code. Use when the user runs /agentguards:setup, asks to configure AgentGuards…
alelaguard/agentguards-plugins · claude/skills/status/SKILL.md · Report AgentGuards guardrail status. Use when the user runs /agentguards:status or asks whether AgentGuards is active…
alelaguard/agentguards-plugins · codex-selfhosted/skills/guardrails/SKILL.md · AgentGuards security guardrails for a self-hosted appliance — explains that enforcement is fully automatic via hooks…
alelaguard/agentguards-plugins · codex-selfhosted/skills/setup/SKILL.md · Set up and verify AgentGuards in Codex against a self-hosted appliance. Use when the user asks to configure…
alelaguard/agentguards-plugins · codex-selfhosted/skills/status/SKILL.md · Report AgentGuards guardrail status for a self-hosted appliance. Use when the user asks whether AgentGuards is active…
garrytan/gbrain · plugin/skills/setup/SKILL.md · Add keyless GBrain memory to an existing agent, or connect a hosted brain while preserving identity and configuration
garrytan/gbrain · skills/setup/SKILL.md · Add keyless GBrain memory to an existing agent, or connect a hosted brain while preserving identity and configuration
nanocoai/nanoclaw · .claude/skills/setup/SKILL.md · Run initial NanoClaw setup. Use when user wants to install NanoClaw, configure it, or go through first-time setup…
tencent/teamai-cli · skill-data/setup/SKILL.md · TeamAI day 0 and repo lifecycle: create a team repo as admin, join an existing team as a member, manage members, roles…
fcakyon/claude-codex-settings · plugins/overleaf-skills/skills/setup/SKILL.md · This skill should be used when user asks to "set up overleaf", "configure overleaf cookie", "overleaf auth failed"…
fcakyon/claude-codex-settings · plugins/github-dev/skills/setup/SKILL.md · This skill should be used when the user asks "how to setup GitHub CLI", "configure gh", "gh auth not working", "GitHub…