oc-box
Persistent rootless Podman development environments for mainline OpenCode
Downloads & Community Adoption
Health & Engineering Analysis (5 Pillars)
1. Governance & Community150 / 200 ▾
2. PEP Metadata & Packaging200 / 200 ▾
3. Security & Supply Chain200 / 200 ▾
4. Documentation, SEO & Ecosystem155 / 200 ▾
5. Engineering, CI & Quality130 / 200 ▾
Official Documentation & Usage Guide — oc-box
Show full original documentation (English README) ▾
oc-box
Persistent rootless Podman development environments for unmodified OpenCode.
Give OpenCode its own Linux environment for tools, packages and services while mounting only your selected project by default. Keep the environment and conversations between visits, without patching OpenCode or replacing its tools.
The main documentation targets OpenCode 2.x. OpenCode 1.x remains supported as legacy, with its own guide.
Get started · OpenCode 2.x docs · Legacy 1.x · Command reference · Security · Contributing
Release channels: stable is the default. Stable
1.8and development1.9start with the same features, including the optional Textual dashboard and browser workspace layout. Older stable1.6releases do not include the dashboard. Use a published release that supports the feature; branch HEAD is not an update. What changed in 1.8 and 1.9 · Choose a channel

The experimental OpenCode 2.x dashboard, captured from the real interface with synthetic read-only sample data. Read the TUI guide.

The Studio view in the offline browser redesign demo, with synthetic data.
This is a design preview, not the live interface. The live Studio shell opens
with oc-box web on this branch, or oc-box web --workspace-layout on the
initial 1.8/1.9 releases. The preview's Full TUI is not a live browser feature.
Try the offline demo ·
See the live Dashboard capture.
Why oc-box?
- A persistent development machine per project. Install compilers, SDKs, databases and distro packages inside the container.
- Native OpenCode integrations. MCP servers, formatters and plugins run alongside OpenCode. See the 2.x capability reference for version-specific limits.
- Your choice of Linux. Tumbleweed, Leap, Ubuntu, Debian, Fedora, Arch or Alpine.
- Continuity without starting over. Resume conversations, import host history and rebuild the container OS while keeping the project and private home.
- Explicit resource and hardware choices. Set CPU/RAM/process ceilings and opt in to device access.
Rootless containers are not virtual machines: they share the host kernel, and your mounted project is writable. Read the trust boundary before using oc-box with sensitive projects.
Quick start
Run these commands on the Linux host as your regular user, not inside oc-box and not with sudo.
1. Install
You need Python 3.10+, host OpenCode 2.x, Git, curl, rootless Podman with pasta networking and delegated CPU/memory/process cgroup controllers. Initial setup needs network access. See installation and prerequisites for all methods.
First installation — GitHub path with vault and TUI for a published stable 1.8 target:
curl -fsSL --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/groopcd/oc-box/master/install.sh | sh -s -- --stable --with-vault --with-tui
oc-box --version
oc-box doctor
Stable 1.8 supports the dashboard; older 1.6 targets do not. Dependencies
stay private to the GitHub installation. This does not initialize or unlock a vault, change credential
policy, launch the dashboard or start a workspace. The command downloads and
runs the public installer; review it first if preferred. Only the verified fresh
development bootstrap enrolls the
Ctrl-click host opening default.
Already installed? Use the existing installation, without rerunning curl:
oc-box upgrade --vault --tui # Add both extras on the saved channel
# Or request either extra independently:
oc-box upgrade --vault
oc-box upgrade --tui
These upgrade flags require a launcher release that supports them and a published target supporting the requested extras. On an older channel-aware launcher, upgrade normally first, then request extras. A source merge does not make that release available. Requests are additive: omitted extras are not removed, the same release can gain extras, and repeating a satisfied request is a no-op. The command uses the verified existing installation owner; it does not create a second copy.
Prefer a minimal install without the dashboard, or a Python tool manager? See the installation alternatives. Do not install a second copy just to enable optional features. Genuinely pre-channel launchers have a separate bootstrap compatibility route.
2. Choose how to supply credentials
Existing native OpenCode saved/OAuth authentication remains supported. If your provider or MCP needs environment-variable credentials, initialize the encrypted host vault before the first project launch:
oc-box secrets init
oc-box secrets set ANTHROPIC_API_KEY
Values are entered in masked host-terminal prompts, not command-line arguments. Default V2 workspaces receive all current vault entries on each new owning start; use an explicit credential policy when a project should receive less. Native saved/OAuth auth is independent of the vault.
3. Open a project
mkdir -p ~/devel/demo
oc-box --project ~/devel/demo
Initial setup installs the exact host OpenCode version and baseline development tools. Later launches reuse the container, private home, caches and conversation history. Your project stays at the same absolute path; the container home is a private volume, not your host home.
Exit OpenCode normally to synchronize history and stop the environment. Run the same command to return. Processes do not survive a stop.
Complete first-workspace walkthrough →
Everyday use
Use oc-box --help for a grouped command index and oc-box COMMAND --help
for a command's options. For example, oc-box start --help covers startup
options even when you normally omit start, while oc-box logs --help covers
reading activity logs. Help does not need or change a workspace.
| I want to… | Command or guide |
|---|---|
| Resume the current project | oc-box |
| Start another conversation in the same environment | oc-box --new |
| List workspaces | oc-box list |
| Read resource and workspace status | oc-box --status |
| Stop a workspace | oc-box stop --project ~/devel/demo |
| Open the existing V2 session shell | oc-box terminal --project ~/devel/demo |
| Open the live browser workspace in Studio | oc-box web --project ~/devel/demo |
| Inspect workspaces in the optional dashboard | oc-box tui --read-only |
| Read fixed startup/preparation metadata | oc-box logs --tail |
| Import history, repair identity or rebuild the OS | Manage workspaces |
| Protect a workspace before changing it | Back up and restore |
--status does not start or stop containers. Normal 2.x terminal attachment
requires an existing owner; --maintenance opens a restricted maintenance shell.
For 1.x behavior, use the legacy terminal guide.
Reset/purge have different preservation rules—read the
operation table before using destructive commands.
Explore workspace features
Stable 1.8 and devel 1.9 include these features with separate prerequisites,
opt-ins, and validation scopes. Older releases do not necessarily include them.
| Feature | Start here |
|---|---|
| Card-based workspace dashboard, sessions, logs and encrypted backups | Dashboard and concurrent clients |
| Native TUI, browser and persistent session shell together | Client workflows |
| Native TUI image/PDF imports, explicit image broker or live host-file tools | Choose a host-file workflow |
| Shared web tabs and optional browser-selected attachments | Web interface reference |
| Guarded history synchronization and recovery | Workspace history |
Disclosure matters: on supported native V2 TUI clients, host importing is enabled by default. A qualifying path paste authorizes an image/PDF copy without per-file confirmation; disable it with the saved host-drop preference if that is not wanted. Clipboard imports are separately off by default:
--host-clipboardsaves the Ctrl+Y shortcut enabled for future workspace TUI clients;--no-host-clipboardorpreferences --host-clipboard offsaves disabled. Existing clients do not live-toggle, and only the shortcut reads the clipboard. Sharing, importing and attachments can disclose data to model providers or history. Compare the workflows and consent rules.
Understand the boundaries
- The agent can modify or delete the mounted project. Rootless isolation does not remove network access or impose a disk quota.
- The container Build agent has broad tool permissions. Plan/child and explicit mandatory-policy boundaries are distinct; see configuration and permissions.
- Delivered credentials are readable by the agent and its tools. The vault protects storage before delivery, not against the recipient.
- The global host vault and outside env files are not included in workspace backups. Preserve the encrypted vault and its passphrase separately.
- Reset, purge and restore are not interchangeable. Restoring a launcher or selecting an older release does not roll back workspace/session state.
Security and reporting · Credentials · Backup boundaries
Documentation
The documentation hub organizes the project by what you need to do, rather than by development chronology.
| Learn or do | Read |
|---|---|
| Install, upgrade, enable extras or set up completion | Installation |
| Launch and return to your first workspace | Getting started |
| Manage environments, sessions, resources and recovery | Workspace guide |
| Supply credentials and choose policies | Credential guide |
| Create, inspect and restore encrypted backups | Backup guide |
| Find every command, option or troubleshooting entry | CLI reference |
| Understand storage, configuration and permissions | Concepts |
| Check OpenCode version compatibility | OpenCode 2.x guide |
| Operate an existing OpenCode 1.x installation | Legacy 1.x documentation |
| Evaluate release readiness and historical evidence | Project status |
Prebuilt man oc-box and info oc-box manuals are included in installations.
See manual locations if your reader does
not find them.
Development status
Development is active. The experimental manager's full restore returned zero
but its later integrity verifier refused manifest; portable UI/storage and
final preservation checks remain unaccepted. Publication does not declare those
gates passed. See current limitations and source-scoped evidence.
Want to contribute? Start with CONTRIBUTING.md and the test strategy. Ordinary offline tests are not live Podman isolation or security acceptance.
License
Copyright (C) 2026 Paulo Dias [email protected]. Licensed GPL-3.0-or-later, without warranty. See NOTICE for attribution and acknowledgment of OpenAI coding-assistant contributions through OpenCode. Other invoked programs retain their own licenses.