* feat(sandbox): add KVM-backed agent sandboxing via microsandbox * feat(sandbox): route host-shell surfaces into microVM via shell wrapper * feat(sandbox): route host-shell surfaces into microVM via shell wrapper * fix(sandbox): harden enforcement validation and backup handling * fix(sandbox): bound lifecycle queue and harden install/backup paths Bound the OpenCode supervisor lifecycle queue to one running plus one pending operation so repeated restarts cannot stack unbounded HTTP requests, while exempting stop() so shutdown is never dropped. Reject enforcement backups that carry no recoverable removed sections, matching the existing fail-closed handling of unparseable backups. Install OpenCode through a private mktemp staging directory instead of the predictable /tmp/opencode path. Use named path/os imports in the files added by this branch. * refactor(sandbox): remove OpenCode version allowlist gating under enforcement * fix(settings): use resolved opencode binary and verify installed version * refactor(sandbox): scope enforcement to agent bash tool only * fix(sandbox): plan bash against factory directory and attest runtime tmpfs; align permission reply API * fix(sandbox): pin neutral entrypoint and persist opencode upgrades across rebuilds * fix(sandbox): align canonical spec with msb 0.6.8 runtime defaults * feat(sandbox): show unwrapped sandboxed bash commands in message UI * refactor(sandbox): pin shell shim to sandbox agent bash without rewriting commands * feat(sandbox): route notifications through a host-side manager tool * feat(sandbox): route all assistant capabilities through the ocm tool Add an allow-listed request action to the generated ocm plugin so agents reach settings, assistant reload, repos, git-info, workspaces, and schedules through the tool instead of curling the internal API with a bearer token, which is impossible under sandboxing. Rewrite the curl-based skills to use the ocm request action and drop the apiBaseUrl plumbing. Remove the now-unread .opencode/internal-token file and the sandbox tmpfs mask that hid it; attestation now rejects any tmpfs other than the runtime /tmp mount. * fix(sidebar): wire new-session and new-schedule actions to every page AssistantRedirect never registered a listener for the sidebar's new-session event, so the desktop sidebar CTA on /assistant was a no-op; the Schedules pages had the same gap for new-schedule. Make useSidebarAction the single source of truth for action keys and event dispatch, and warn when an action is dispatched with no mounted handler so an unhandled CTA fails loudly instead of silently. Wire the missing listeners to the existing per-page handlers. * feat(sandbox): forward git credentials into the microVM and add sandbox guest image * feat(sandbox): add git credential forwarding toggle to settings
Mobile-first web interface for OpenCode AI agents. Manage, control, and code from any device.
Quick Start
git clone https://github.com/chriswritescode-dev/opencode-manager.git
cd opencode-manager
cp .env.example .env
echo "AUTH_SECRET=$(openssl rand -base64 32)" >> .env
docker-compose up -d
# Open http://localhost:5003
On first launch, you'll be prompted to create an admin account. That's it!
For local development setup, see the Development Guide.
Features
- Repositories & Git — Multi-repo management, local discovery, SSH auth, worktrees, unified diffs, branch and commit management
- Chat & Sessions — Real-time SSE streaming, slash commands,
@filementions, Plan/Build modes, Mermaid diagram rendering - Files — Directory browser with tree view, syntax highlighting, create/rename/delete, ZIP download
- Assistant Mode — Dedicated AI workspace with auto-provisioned skills for schedules, notifications, settings, and repo operations
- Schedules — Recurring repo jobs with reusable prompts, run history, linked sessions, markdown-rendered output
- MCP Servers — Add, configure, authenticate, and manage local or remote MCP servers with OAuth support
- AI Configuration — Model/provider setup, API keys, OAuth for Anthropic and GitHub Copilot, custom agent definitions
- Skills — Extend agent capabilities with shareable, scoped skill definitions
- Notifications — Push notifications for session events, questions, errors, and completions
- Audio — Text-to-speech and speech-to-text (browser native and OpenAI-compatible APIs)
- Mobile & PWA — Responsive mobile-first UI, installable on any device, iOS-optimized
Architecture
OpenCode Manager is a pnpm workspace with three TypeScript packages:
backend/— Bun + Hono API server with Better Auth, SQLite migrations, OpenCode process management, SSE, schedules, and push notifications.frontend/— React + Vite SPA using React Router, TanStack Query, Radix UI/Tailwind, service worker support, and mobile-first navigation.shared/— shared Zod schemas, config helpers, types, and utilities consumed by both backend and frontend.
A MkDocs Material site (docs/) provides guides, feature docs, configuration, and troubleshooting.
Development
This repo uses pnpm workspaces for shared, backend, and frontend.
pnpm install
pnpm dev
pnpm lint
pnpm typecheck
pnpm test
See the Development Guide for local setup, scripts, database notes, and testing.
Configuration
# Required for production
AUTH_SECRET=your-secure-random-secret # Generate with: openssl rand -base64 32
# Pre-configured admin (optional)
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=your-secure-password
# For LAN/remote access
AUTH_TRUSTED_ORIGINS=http://localhost:5003,https://yourl33tdomain.com
AUTH_SECURE_COOKIES=false # Set to true when using HTTPS
For OAuth, Passkeys, Push Notifications (VAPID), and advanced configuration, see the Configuration Guide.
ocm CLI
OpenCode Manager ships an ocm CLI (from ocm-cli/) that attaches your local OpenCode TUI to a repo hosted on the Manager. It lists ready repos, attaches via the Manager's /api/opencode-proxy (so prompts run on the Manager's filesystem against a single shared OpenCode server), and can sync the working tree up or down with ocm push / ocm pull (fast git bundle + working-tree patch by default; pass --full for the legacy tarball mirror). Running ocm inside a local clone auto-detects the matching Manager repo by origin URL.
See the ocm CLI guide for setup and commands.
Documentation
- Getting Started — Installation and first-run setup
- Features — Deep dive on all features
- Configuration — Environment variables and advanced setup
- Troubleshooting — Common issues and solutions
- Development — Contributing and local development
ocmCLI — Attach local OpenCode TUI to Manager repos
License
MIT


