Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions packages/web/src/content/docs/permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down