Security/GitHub/Tool

opencode-guard

by gigi206·Last observed 2026-10-27
★ 0 stars⑂ 0 forks

opencode-guard is an OpenCode V2 plugin that intercepts tool actions, blocks or asks for confirmation on risky calls, and redacts secrets before they reach the model provider or session history. Each call passes local rules first, with a configurable decision model handling cases those rules leave unresolved.

Useful for

  • Use it to add confirmation and secret-redaction checks to OpenCode agent tool calls.

Key features

  • It routes every tool call through local rules first, then uses a configurable decision model for unresolved cases; it can block actions or request confirmation.
  • It masks secrets before they reach the model provider or stored session history.

Requirements & limitations

  • The plugin is a heuristic guardrail, not a sandbox, and can be bypassed.
  • The decision model requires a base URL and model name; if the key is missing, the decision model is disabled and a warning is logged.

Project information

CategorySecurity
TypeTool
Author / organizationgigi206
LicenseNOASSERTION
Last observed2026-10-27

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote