
Deploy OpenCode WebUI Workspace
Free OpenCode LLM Agent for Python, NodeJS, Bun, Go, Rust safely YOLO!
Just deployed
/home/opencode/workspace
Deploy and Host OpenCode WebUI Workspace on Railway
Notice
default username: sloth
default password: check the OPENCODE_SERVER_PASSWORD
What is OpenCode WebUI Workspace?
OpenCode WebUI Workspace is a containerized development environment that runs OpenCode WebUI (an AI-powered code editor) with comprehensive tooling support. It provides Python, Node.js, Bun, Go, Rust, and essential development tools, all running under a non-root user with sudo privileges for safe, isolated development.
Transferring Files In and Out
Simply ask the LLM agent to use Magic Wormhole or rclone
Since the workspace runs in a containerized environment, you can use rclone or magic-wormhole to transfer files between your local machine and the deployed instance.
Using rclone
# Configure rclone (one-time setup)
rclone config
# Copy files to the workspace
rclone copy ./local-project remote:workspace/projects/
# Copy files from the workspace
rclone copy remote:workspace/projects/output ./local-output
# Sync a directory
rclone sync ./local-project remote:workspace/projects/myproject
Using magic-wormhole
# On your local machine - send a file
wormhole send myfile.zip
# Returns a code like: 7-crossword-pandora
# In the OpenCode workspace terminal - receive the file
wormhole receive 7-crossword-pandora
# From the workspace - send a file out
wormhole send /home/opencode/workspace/output.zip
# On your local machine - receive it
wormhole receive <code>
About Hosting OpenCode WebUI Workspace
Deploying OpenCode WebUI Workspace involves running a Docker container that bundles OpenCode WebUI v1.1.25 with a full development stack. The container exposes a web interface on port 4096 and requires environment variable configuration for security (password protection). The container runs as a non-root opencode user with passwordless sudo access, providing security while allowing necessary system operations. Railway handles the container orchestration, networking, and scaling automatically.
Common Use Cases
- Remote AI-Assisted Development: Access an AI-powered code editor from any device with a web browser, enabling development on phones, tablets, or desktops
- Isolated Development Environments: Spin up consistent, reproducible development environments with pre-configured tooling for Python, Node.js, Go, and Rust projects
- Team Collaboration: Deploy shared development workspaces where team members can work on projects with standardized tooling and configurations
Dependencies for OpenCode WebUI Workspace Hosting
- OpenCode WebUI (v1.1.25)
- Python 3.13.11
- Node.js 24.13.0 with npm 11.6.2
- Bun 1.3.6
- Go 1.23.5
- Rust 1.92.0 with Cargo
- uv 0.9.26 (Python package manager)
Deployment Dependencies
Implementation Details
Environment Variables:
| Variable | Description | Default |
|---|---|---|
OPENCODE_SERVER_USERNAME | Username to secure your OpenCode instance | (none) |
OPENCODE_SERVER_PASSWORD | Password to secure your OpenCode instance | (none - runs unsecured) |
OPENCODE_PORT | Port for the web interface | 4096 |
OPENCODE_HOSTNAME | Hostname binding | 0.0.0.0 |
Why Deploy OpenCode WebUI Workspace on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying OpenCode WebUI Workspace on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
