[FEATURE]: Base path / prefix routing support #4621

Open
opened 2026-02-16 17:44:49 -05:00 by yindo · 1 comment
Owner

Originally created by @hsteude on GitHub (Jan 10, 2026).

Originally assigned to: @thdxr on GitHub.

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

Use case

We'd like to integrate OpenCode as a feature into larger platforms, where it runs under a URL prefix (e.g., platform.com/opencode/) rather than at the root path.

Request

Add support for a configurable base path so OpenCode can be embedded into existing platforms and served alongside other applications under the same domain.

Originally created by @hsteude on GitHub (Jan 10, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ## Use case We'd like to integrate OpenCode as a feature into larger platforms, where it runs under a URL prefix (e.g., `platform.com/opencode/`) rather than at the root path. ## Request Add support for a configurable base path so OpenCode can be embedded into existing platforms and served alongside other applications under the same domain.
yindo added the discussion label 2026-02-16 17:44:49 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

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

  • #6352: allow overriding web client deployment path / bundle web client with opencode binary - discusses deployment configuration and serving from non-root paths
  • #6336: opencode web - thinks it is in root (/) path - addresses path handling in the web UI
  • #6311: Allow for Custom Server URL on hosted web - related feature for server configuration

These issues touch on similar aspects of URL configuration and hosting OpenCode in larger platforms. Feel free to ignore if your specific use case isn't covered by these.

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of or related to existing issues. Please check: - #6352: allow overriding web client deployment path / bundle web client with `opencode` binary - discusses deployment configuration and serving from non-root paths - #6336: opencode web - thinks it is in root (/) path - addresses path handling in the web UI - #6311: Allow for Custom Server URL on hosted web - related feature for server configuration These issues touch on similar aspects of URL configuration and hosting OpenCode in larger platforms. Feel free to ignore if your specific use case isn't covered by these.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4621