Skip to content

Error: Failed to spawn OpenCode Server. #7475

Closed

Description

Description

Error: Failed to spawn OpenCode Server. Logs:

zu@tauri://localhost/assets/index-BMXdAHf6.js:2:11989
@tauri://localhost/assets/index-BMXdAHf6.js:2:4676

Plugins

None

OpenCode version

1.1.8

Steps to reproduce

  1. Installing MCP
  2. Upgraded to the latest
  3. Cannot Start

Screenshot and/or share link

Image

Operating System

macOS

Terminal

Native Terminal

Activity

  1. ghost added
    bugSomething isn't working
    on Jan 9, 2026
  2. github-actions commented on Jan 9, 2026

    @github-actions
    Contributor

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

    These issues share the same pattern: server spawn/initialization failure, particularly after updates or MCP installation. Feel free to ignore if your specific case differs from these.

  3. adamdotdevin commented on Jan 9, 2026

    @adamdotdevin
    Member

    Can you kill all bun/opencode processes and reinstall?

  4. nikolas-nelson commented on Jan 17, 2026

    @nikolas-nelson

    Can you kill all bun/opencode processes and reinstall?

    I tried and It did't help. Have same error.

  5. abaena-gisce commented on Jan 21, 2026

    @abaena-gisce

    I'm using Linux with Ubuntu 25.10, and it's failing too for me. And it's always showing the --help command for every command I try. I cannot even uninstall. The CLI nor the Desktop Application.

    Error: Failed to spawn OpenCode Server. Logs:
    [STDOUT] 
    [STDOUT] �[38;5;244m                    �[0m             ▄
    [STDOUT] �[38;5;244m█▀▀█ █▀▀█ █▀▀█ █▀▀▄ �[0m█▀▀▀ █▀▀█ █▀▀█ █▀▀█
    [STDOUT] �[38;5;244m█░░█ █░░█ █▀▀▀ █░░█ �[0m█░░░ █░░█ █░░█ █▀▀▀
    [STDOUT] �[38;5;244m▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ �[0m▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
    [STDOUT] 
    [STDOUT] Commands:
    [STDOUT]   opencode completion          generate shell completion script
    [STDOUT]   opencode acp                 start ACP (Agent Client Protocol) server
    [STDOUT]   opencode mcp                 manage MCP (Model Context Protocol) servers
    [STDOUT]   opencode [project]           start opencode tui                                          [default]
    [STDOUT]   opencode attach <url>        attach to a running opencode server
    [STDOUT]   opencode run [message..]     run opencode with a message
    [STDOUT]   opencode debug               debugging and troubleshooting tools
    [STDOUT]   opencode auth                manage credentials
    [STDOUT]   opencode agent               manage agents
    [STDOUT]   opencode upgrade [target]    upgrade opencode to the latest or a specific version
    [STDOUT]   opencode uninstall           uninstall opencode and remove all related files
    [STDOUT]   opencode serve               starts a headless opencode server
    [STDOUT]   opencode web                 start opencode server and open web interface
    [STDOUT]   opencode models [provider]   list all available models
    [STDOUT]   opencode stats               show token usage and cost statistics
    [STDOUT]   opencode export [sessionID]  export session data as JSON
    [STDOUT]   opencode import <file>       import session data from JSON file or URL
    [STDOUT]   opencode github              manage GitHub agent
    [STDOUT]   opencode pr <number>         fetch and checkout a GitHub PR branch, then run opencode
    [STDOUT]   opencode session             manage sessions
    [STDOUT] 
    [STDOUT] Positionals:
    [STDOUT]   project  path to start opencode in                                                        [string]
    [STDOUT] 
    [STDOUT] Options:
    [STDOUT]   -h, --help        show help                                                              [boolean]
    [STDOUT]   -v, --version     show version number                                                    [boolean]
    [STDOUT]       --print-logs  print logs to stderr                                                   [boolean]
    [STDOUT]       --log-level   log level                   [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
    [STDOUT]       --port        port to listen on                                          [number] [default: 0]
    [STDOUT]       --hostname    hostname to listen on                            [string] [default: "127.0.0.1"]
    [STDOUT]       --mdns        enable mDNS service discovery (defaults hostname to 0.0.0.0)
    [STDOUT]                                                                           [boolean] [default: false]
    [STDOUT]       --cors        additional domains to allow for CORS                       [array] [default: []]
    [STDOUT]   -m, --model       model to use in the format of provider/model                            [string]
    [STDOUT]   -c, --continue    continue the last session                                              [boolean]
    [STDOUT]   -s, --session     session id to continue                                                  [string]
    [STDOUT]       --prompt      prompt to use                                                           [string]
    [STDOUT]       --agent       agent to use                                                            [string]
    
    jd@tauri://localhost/assets/index-DQgOcYy4.js:2:11977
    @tauri://localhost/assets/index-DQgOcYy4.js:2:4664
    
  6. adamdotdevin commented on Feb 12, 2026

    @adamdotdevin
    Member

    @nikolas-nelson @bcgit2023 can you upgrade to latest (1.1.64) and let me know if this is resolved?

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions