You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: specify --tools on command-line for enabling/disabling tools #9386
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When running with opencode run I want to be able to specify --tools '-*,read,write,webfetch' to define which tools the model can use. The proposed syntax is -* (disable all), or enable by listing them, or * to enable all. See #5339
Add --tools flag to serve, web, and TUI commands to enable selective tool access control. The flag accepts comma-separated patterns to enable/disable tools.
Usage examples:
# Only allow read, write, and webfetch tools
opencode serve --tools='-*,read,write,webfetch'
# Disable specific tools
opencode web --tools='-bash,-edit'
# Use in TUI mode
opencode --tools='-*,read,write,webfetch'
Activity
paralin commentedon Jan 19, 2026
#5339
Add --tools flag to serve, web, and TUI commands to enable selective tool access control. The flag accepts comma-separated patterns to enable/disable tools.
Usage examples:
github-actions commentedon Jan 19, 2026
This issue might be a duplicate of existing issues. Please check:
--dangerously-skip-permissions(aka YOLO mode) #8463: Add--dangerously-skip-permissionsYOLO mode (related to selective tool/permission control)Feel free to ignore if none of these address your specific case.
smola commentedon Jan 24, 2026
This would be very useful, but to be fully functional, it should probably support bash patterns. Something like
--tools '-*,bash/ls*,bash/cat*'.feat: add --tools flag to limit available tools
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.