Skip to content

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

Closed as not planned

Description

@damejeras

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

  1. github-actions commented on Jan 4, 2026

    @github-actions
    Contributor

    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.

  2. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions