Skip to content

opencode run --attach <server> #3188

Closed

Description

@slhad

With the creation of opencode serve and opencode attach for connecting with TUI

It would be awesome to have opencode run attachable to a headless opencode server.

That would be great to reduce a lot the mcp servers cold boot time that happen at every opencode run to only the first query

Thanks to every people working on opencode, seeing a new release always light up my day

Activity

  1. github-actions commented on Oct 14, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    While these issues focused on the attach command with session support, your request for opencode run --attach <server> to reduce MCP server cold boot time appears to be a related but distinct feature request for making the run command work with existing servers rather than starting fresh each time.

    Feel free to ignore if none of these address your specific case.

  2. self-assigned this
    on Oct 15, 2025
  3. rekram1-node commented on Oct 15, 2025

    @rekram1-node
    Contributor

    hey thanks!

    Adding headless support should be easy here, we have an example for how to do it in another cmd/*.ts file (since opencode can attach)

  4. added a commit that references this issue on Nov 4, 2025
    37e1ef7
  5. monke-yo commented on Nov 4, 2025

    @monke-yo
    Contributor
  6. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Contributor

    already did :)

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions