Skip to content

[FEATURE]:Content related to opencode web needs to be added to the opencode V2 doc #51574

Open

Description

@linghengqian

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

npm install --global npm@latest
npm install --global --allow-scripts=@opencode-ai/cli @opencode-ai/cli@next
opencode web
  • An error will occur.
[10:29:27.615] ERROR (#1): Error: ENOENT: no such file or directory, chdir '/home/lingh' -> 'web'
    at chdir (unknown)
    at <anonymous> (src/commands/handlers/default.ts:17:51)

Activity

  1. changed the title [-]Content related to `opencode web` needs to be added to the `opencode` V2 doc[/-] [+][FEATURE]:Content related to `opencode web` needs to be added to the `opencode` V2 doc[/+] on Sep 27, 2026
  2. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor

    Thanks for updating the issue!

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the request, @linghengqian, and for following up on #39140.

    You're asking for the v2 docs to cover running the web interface, the way v1's web page does.

    The error comes from how the v2 CLI reads its arguments. v2 has no web subcommand. The first argument to opencode is treated as a directory to open, so opencode web tries to change into a folder called web and fails with ENOENT. The closest command in v2 is opencode serve, which starts the v2 API and web server (options: --hostname, --port, --cors).

    Maintainers will consider adding v2 docs for this, and possibly a clearer error or a web command.

    Related:

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