Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created July 11, 2026 16:50
Show Gist options
  • Select an option

  • Save jkeam/20e880e90a17487a2119ea4d115629a3 to your computer and use it in GitHub Desktop.

Select an option

Save jkeam/20e880e90a17487a2119ea4d115629a3 to your computer and use it in GitHub Desktop.
File from ~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mode": {
"plan": {
"model": "anthropic/claude-opus-4-8",
"tools": { "write": false, "edit": false, "bash": false }
},
"build": {
"model": "anthropic/claude-sonnet-5",
"tools": { "write": true, "edit": true, "bash": true }
}
},
"small_model": "anthropic/claude-haiku-4-5",
"permission": {
"edit": "allow",
"bash": {
"npm *": "ask",
"git *": "ask",
"rm *": "ask",
"*": "ask"
},
"webfetch": "allow"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment