opencode server access http return 404 #1635

Closed
opened 2026-02-16 17:31:50 -05:00 by yindo · 3 comments
Owner

Originally created by @NhanLuongBGSV on GitHub (Sep 6, 2025).

Originally assigned to: @rekram1-node on GitHub.

Actions:

opencode serve
opencode server listening on http://127.0.0.1:59138

then access link chrome return 404 Not Found

opencode --version
0.6.4
Originally created by @NhanLuongBGSV on GitHub (Sep 6, 2025). Originally assigned to: @rekram1-node on GitHub. Actions: ```bash opencode serve opencode server listening on http://127.0.0.1:59138 ``` then access link chrome return **404 Not Found** ```bash opencode --version 0.6.4 ```
yindo closed this issue 2026-02-16 17:31:50 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 6, 2025):

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

  • #878: Feature Request: Connect TUI to Existing opencode serve Instance - discusses the same 404 behavior when accessing the server URL directly
  • #1649: When running in serve mode, the log will contain two session IDs - mentions serve mode issues

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

@github-actions[bot] commented on GitHub (Sep 6, 2025): This issue might be a duplicate of existing issues. Please check: - #878: Feature Request: Connect TUI to Existing `opencode serve` Instance - discusses the same 404 behavior when accessing the server URL directly - #1649: When running in serve mode, the log will contain two session IDs - mentions serve mode issues Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 6, 2025):

@NhanLuongBGSV try accessing:

http://127.0.0.1:59138/doc

in your browser, the base url giving 404 is expected it is a server so not every endpoint supports a GET request

the /doc will show you which endpoints are supported with which http method

@rekram1-node commented on GitHub (Sep 6, 2025): @NhanLuongBGSV try accessing: http://127.0.0.1:59138/doc in your browser, the base url giving 404 is expected it is a server so not every endpoint supports a GET request the /doc will show you which endpoints are supported with which http method
Author
Owner

@NhanLuongBGSV commented on GitHub (Sep 7, 2025):

@rekram1-node thanks, it's clear now.
At the beginning I think when I access the http link I will get a web page, but it turns out that opencode only provide APIs
I have to build the web app by myself.

So I would suggest that we add one more bracket to explain this point for new users like me.
For example:

opencode serve
opencode server listening on http://127.0.0.1:59138 (API only)
@NhanLuongBGSV commented on GitHub (Sep 7, 2025): @rekram1-node thanks, it's clear now. At the beginning I think when I access the http link I will get a web page, but it turns out that opencode only provide APIs I have to build the web app by myself. So I would suggest that we add one more bracket to explain this point for new users like me. For example: ```bash opencode serve opencode server listening on http://127.0.0.1:59138 (API only) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1635