Configuration
Customize Opencode to fit your workflow using the .opencode file.
Global Config
The global configuration lives at ~/.opencode/config.json.
{
"default_provider": "anthropic",
"theme": "dark",
"auto_update": true,
"telemetry": false
}
Project Config
You can override settings per project by creating a .opencode file in the project root.
Example: Ignoring Files
Opencode respects .gitignore by default, but you can add specific ignore patterns for the agent context.
# .opencode
ignore:
- "dist/"
- "*.lock"
context_window_limit: 128000