docs.rs failed to build opencode-cloud-1.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
opencode-cloud-3.0.11
opencode-cloud
A production-ready toolkit for deploying opencode as a persistent cloud service.
Features
- Cross-platform CLI (
opencode-cloud/occ) - Docker container management
- Service lifecycle commands (start, stop, status, logs)
- Platform service integration (systemd/launchd)
- XDG-compliant configuration
- Singleton enforcement (one instance per host)
Requirements
For npm installation
- Node.js 20+
- Rust 1.82+ (for compiling native bindings)
- Install via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install via rustup:
For cargo installation
- Rust 1.82+
Installation
Via npm (compiles from source)
Or install globally:
Via cargo
From source
Usage
# Show version
# Start the service (builds image on first run)
# Start on a custom port
# Start and open browser
# Check service status
# View logs
# Follow logs in real-time
# Stop the service
# Restart the service
# Install as a system service (starts on login/boot)
# Uninstall the system service
# View configuration
Rebuilding the Docker Image
When developing locally or after updating opencode-cloud, you may need to rebuild the Docker image to pick up changes in the embedded Dockerfile:
# Rebuild using Docker cache (fast - only rebuilds changed layers)
# Rebuild from scratch without cache (slow - for troubleshooting)
--cached-rebuild (recommended for most cases):
- Uses Docker layer cache for fast rebuilds
- Only rebuilds layers that changed (e.g., if only the CMD changed, it's nearly instant)
- Stops and removes any existing container before rebuilding
--full-rebuild (for troubleshooting):
- Ignores Docker cache and rebuilds everything from scratch
- Takes 10-15 minutes but guarantees a completely fresh image
- Use when cached rebuild doesn't fix issues
When to rebuild:
- After pulling updates to opencode-cloud → use
--cached-rebuild - When modifying the Dockerfile during development → use
--cached-rebuild - When the container fails to start due to image issues → try
--cached-rebuildfirst, then--full-rebuild - When you want a completely fresh environment → use
--full-rebuild
Configuration
Configuration is stored at:
- Linux/macOS:
~/.config/opencode-cloud/config.json
Data (PID files, etc.) is stored at:
- Linux/macOS:
~/.local/share/opencode-cloud/
Development
# Install dependencies
# Configure git hooks (once after cloning)
# Build everything
# Compile and run occ (arguments automatically get passed to the binary)
# Run tests
# Format and lint
Note: The git hooks automatically sync
README.mdto npm package directories on commit.
Architecture
This is a monorepo with:
packages/core- Rust core library with NAPI-RS bindingspackages/cli-rust- Rust CLI binarypackages/cli-node- Node.js CLI wrapper (calls into core via NAPI)
The npm package compiles the Rust core on install (no prebuilt binaries).
License
MIT