opencode-cloud
v25.1.3
Published
Cross-platform CLI for opencode-cloud (includes prebuilt binaries)
Maintainers
Readme
opencode-cloud Node.js CLI
Cross-platform CLI for opencode-cloud with prebuilt binaries for major platforms.
Installation
npx opencode-cloud@latest --versionbunx opencode-cloud@latest --versionnpm install -g opencode-cloudNo Rust toolchain required — npm automatically downloads the correct binary for your platform.
Supported Platforms
| Platform | Architecture | Package | |----------|--------------|---------| | macOS | Apple Silicon (arm64) | @opencode-cloud/cli-node-darwin-arm64 | | macOS | Intel (x64) | @opencode-cloud/cli-node-darwin-x64 | | Linux | x64 (glibc) | @opencode-cloud/cli-node-linux-x64 | | Linux | ARM64 (glibc) | @opencode-cloud/cli-node-linux-arm64 | | Linux | x64 (musl/Alpine) | @opencode-cloud/cli-node-linux-x64-musl | | Linux | ARM64 (musl/Alpine) | @opencode-cloud/cli-node-linux-arm64-musl |
Windows support planned for a future release.
How it works
- When you install
opencode-cloud, npm downloads a platform-specific package based on your OS and architecture - The main package finds the binary from the platform package
- All CLI invocations spawn the Rust binary with transparent passthrough (stdio: inherit)
- Exit codes, colors, and TTY detection are preserved
Development
When developing locally, place the Rust binary in the Node package bin/ directory:
cargo build --release
cp target/release/occ packages/cli-node/bin/Then run via just run or node packages/cli-node/dist/index.js <args>. The wrapper resolves the binary from bin/ when platform packages are not used.
Usage
occ start
occ status
occ stopAll commands are identical between the npm and cargo installations.
License
MIT
