An OpenCode V2 plugin that auto-approves permission prompts for one session, while explicit deny rules still block.
This plugin runs on OpenCode. New accounts through my referral link get $5 in usage credits, and I get $5 too:
mkdir -p ~/.config/opencode/plugins
curl -fsSL \
https://raw.githubusercontent.com/jadmadi/opencode-skip-permissions/main/skip-permissions.ts \
-o ~/.config/opencode/plugins/skip-permissions.tsFor one project, put it in .opencode/plugins/. Tested against OpenCode v2.1.4.
To pin a release, replace main in the URL with a tag such as v2026.10.1.
| Command | Effect |
|---|---|
/skip-permissions on |
Auto-approve ask decisions in this session |
/skip-permissions off |
Stop auto-approving |
/skip-permissions or /skip-permissions status |
Show the state |
The setting is session-scoped and never turns on by itself.
The plugin registers a permission evaluate hook. Permission hooks run for
allow and ask decisions, and an explicit configured deny is final and
never reaches the hook. So when the flag is on, the hook upgrades an ask to
allow, and a deny still blocks. Nothing is written to opencode.json.
With this on, the model can run tools that would otherwise ask for approval.
Deny rules still apply, but anything only guarded by an ask prompt runs
without one. Use it only in a workspace you trust, and turn it off when done.
bun testInspired by MiMoCode's /skip-permissions. See NOTICE.
AGPL-3.0-only. Copyright (C) 2026 Jad Madi.