Context Compaction

Control how OpenCode manages long conversations by compacting context.

Auto Compaction
Automatically compact when context is full
Prune Tool Outputs
Remove old tool outputs to save tokens

Token buffer to maintain during compaction

File Watcher

Configure which directories to ignore when watching for file changes.

Plugins

Load plugins from npm or local files.

Instructions

Include instruction files that provide context to the model.

Provider Restrictions

Restrict which providers can be used.

These providers won't be loaded even if credentials are available

Only these providers will be enabled (empty = all enabled)