컨텐츠로 건너뛰기

Devcontainers

이 내용은 아직 번역본이 없습니다.

Devcontainers is a community plugin (not built by or affiliated with the OpenCode team) for isolated branch workspaces, currently at version 0.x — pre-1.0 software where minor versions may contain breaking changes.

Why devcontainers or worktrees?

OptionIsolationBest for
DevcontainersFull container isolationDifferent dependencies, databases, runtimes per branch
Git worktreesLightweight filesystem isolationSame dependencies, just different code

Key features

FeatureDescription
Session state managementThe agent remembers your workspace
Auto-assigned portsFrom a configurable range (13000–13099)
Secrets copyingAutomatically copies gitignored secrets (.env, credentials, etc.)
Unified managementWorkspace creation and cleanup in one place

Installation

Add to ~/.config/opencode/opencode.json:

{
  "plugin": ["opencode-devcontainers"]
}