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 Request: URL parameters for agent/model preselection in web UI #6822
Problem
When using opencode in serve mode and creating new sessions, there's no way to pre-select an agent or model via URL
Use case
Creating opencode sessions from external tools with specific agent, (optionally provider and model) pre-selected.
Proposed approach
Add ?agent=&model=/ URL parameters to /session endpoint
Why it belongs
Improves serve mode flexibility and shareability
My use case
I want opencode to be integrated into my IDE, which is nvim. I'd like to have a keybinding that would open session with specific agent preselected. I want planning agent to be pre-selected in some cases, but by default build agent is selected.
Activity
github-actions commentedon Jan 4, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if these don't fully address your specific use case of URL parameters for web UI preselection.
github-actions commentedon Mar 25, 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.