Skip to content

opencode CLI hangs on macOS 15 (Apple Silicon) – daemon fails to start, empty ~/.opencode/package.json #8707

@shanjw21

Description

@shanjw21

Description

TL;DR

On macOS 15.7.x (Apple Silicon, arm64), opencode CLI hangs indefinitely when starting the daemon.

opencode --version works, but any command requiring the daemon blocks forever (opencode, opencode auth login, opencode --print-logs).

No daemon process is ever started (ps aux | grep opencode shows nothing while hanging).

Initialization stops early: ~/.opencode/package.json is created but contains only {}.

No logs or crash reports are produced, even with OPENCODE_DEBUG=1.

Environment

Device: MacBook Air (M1, Apple Silicon)

Architecture: arm64

OS: macOS 15.7.3 (Sequoia)

Shell: zsh / bash

opencode version: 1.1.21 (installed via official install script)

curl -fsSL https://opencode.ai/install | bash
opencode --version # works
opencode # hangs forever

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates a performance issue or need for optimization

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions