From ae2699f9733e3c5833e1e1cf520a6b44402184bd Mon Sep 17 00:00:00 2001 From: Cody Churchwell Date: Mon, 5 Jan 2026 12:22:30 -0500 Subject: [PATCH] docs: add Autonomous Mode section to permissions docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a new section explaining how to run OpenCode without any permission prompts by setting "permission": "allow" in config. This is the equivalent of Claude Code's --dangerously-skip-permissions flag. Includes: - Clear example config - Security warning about risks - Use cases (CI/CD, automation, trusted environments) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- packages/web/src/content/docs/permissions.mdx | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/packages/web/src/content/docs/permissions.mdx b/packages/web/src/content/docs/permissions.mdx index 69c7206c7eb5..68b2dcd5f361 100644 --- a/packages/web/src/content/docs/permissions.mdx +++ b/packages/web/src/content/docs/permissions.mdx @@ -45,6 +45,39 @@ You can also set all permissions at once: --- +## Autonomous Mode (Skip All Prompts) + +To run OpenCode fully autonomously without any permission prompts (similar to Claude Code's `--dangerously-skip-permissions` flag), set `"permission": "allow"` in your config: + +```json title="~/.config/opencode/opencode.json" +{ + "$schema": "https://opencode.ai/config.json", + "permission": "allow" +} +``` + +This allows all tools to run without approval: +- File writes and edits +- Shell/bash commands +- Web fetches +- All other tool calls + +:::caution[Security Warning] +Autonomous mode gives the AI full control to execute any action without confirmation. Only use this in trusted environments where you understand the risks. The AI could potentially: +- Modify or delete files +- Run destructive shell commands +- Make network requests +- Access sensitive data +::: + +**Use cases for autonomous mode:** +- CI/CD pipelines and automation +- Batch processing tasks +- Trusted development environments +- When you want maximum speed without interruptions + +--- + ## Granular Rules (Object Syntax) For most permissions, you can use an object to apply different actions based on the tool input.