opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Feature Request: URL parameters for agent/model preselection in web UI

Open damejeras opened this issue 2 weeks ago • 1 comments

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.

damejeras avatar Jan 04 '26 11:01 damejeras