Skip to content

About

OpenCode V2 plugin that auto-approves permission prompts for one session

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

opencode-skip-permissions

An OpenCode V2 plugin that auto-approves permission prompts for one session, while explicit deny rules still block.

OpenCode

This plugin runs on OpenCode. New accounts through my referral link get $5 in usage credits, and I get $5 too:

https://opencode.ai/go?ref=N9H3ZEP22A

Install

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.ts

For 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.

Use

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.

How it works

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.

Warning

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.

Tests

bun test

Attribution

Inspired by MiMoCode's /skip-permissions. See NOTICE.

License

AGPL-3.0-only. Copyright (C) 2026 Jad Madi.

About

OpenCode V2 plugin that auto-approves permission prompts for one session

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages