Skip to Content
ASE

OpenCode CLI

An open-source command-line tool for agentic coding with any model provider.

Usage

.devcontainer/devcontainer.json
{
  "features": {
    "ghcr.io/hansehart/devcontainer-features/opencode:1": {}
  }
}

Version 1.0.1, see the changelog for what changed.

Options

OptionDefaultDescription
versionlatestChannel (latest), a release line (major or major.minor), or an exact version (major.minor.patch).
stateDirIf set, puts this feature's data at this path, which must be inside the remote user's home. Mount a volume there to persist it across rebuilds.

Customizations

Open Secure Software Suite

The hosts the tool reaches:

HostPortsSecretFor
opencode.ai443OPENCODE_API_KEYOpenCode Zen inference
models.opencode.ai443The model catalog

The variables that set its defaults:

VariableValueFor
OPENCODE_DISABLE_AUTOUPDATE1With 1, updates stay off
OPENCODE_CONFIG_DIR${stateDir}OpenCode's config in the state dir
OPENCODE_DB${stateDir}/opencode.dbOpenCode's sessions and sign-ins in the state dir

The config files it reads:

FilePathFor
opencode.json${stateDir}/opencode.jsonThe agent's rules and integrations

VS Code

The extensions it installs:

On this page