Skip to content

[FEATURE]: Better support remote/server-client use-cases from the CLI #8890

Closed

Description

@Killusions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

To support more advanced remote/server-client use-cases, as well as integrating it into CI containers and/or adding a control surface on top, a couple of key features are missing:

  • Allow specifying --prompt in all remaining commands (attach, acp, serve and web (where a new session/chat is automatically started and the link to that specific session is printed / opened)). This allows having a control plane or system integration (think GitLab bot) and starting a session with a relevant prompt for the user.
  • Allow attaching with --attach to an existing OpenCode server from other commands (acp, serve and web (where a proxy is opened to the existing server)). This allows for having a distributed architecture, like running the actual server inside of a container, but then proxying it for the user in a control plane with the correct CORS, etc. options. (optionally combined with --prompt to start a session).
  • Allow attaching to session URLs in all commands (attach, acp, server and web) to continue with an existing session instead of just starting the server.
  • Free win: add --session to the acp command since the logic was already there for --attach

Working and tested PR at #7340 , willing to do any adjustments if needed.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 16, 2026
  2. changed the title [-][FEATURE]: Better support remote/server-client use-cases[/-] [+][FEATURE]: Better support remote/server-client use-cases from the CLI[/+] on Jan 16, 2026
  3. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or closely related to existing issues. Please check:

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

  4. Killusions commented on Jan 16, 2026

    @Killusions
    ContributorAuthor

    I filed a working and tested PR at #7340 , willing to do any adjustments if needed

  5. 52 remaining items

  6. github-actions commented on Mar 26, 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

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions