OpenCode Harness Bundle

June 7, 2026 ยท View on GitHub

Scion harness configuration for OpenCode, an open-source AI coding assistant.

Install

From a repository checkout:

scion harness-config install harnesses/opencode

Or directly from GitHub:

scion harness-config install github.com/GoogleCloudPlatform/scion/tree/main/harnesses/opencode

Auth Modes

ModeEnv / FileNotes
api-key (default)ANTHROPIC_API_KEY or OPENAI_API_KEYAnthropic key takes precedence
auth-file~/.local/share/opencode/auth.jsonOpenCode native auth file

Bundle Layout

opencode/
  config.yaml       # Harness configuration (provisioner, capabilities, auth)
  provision.py       # Container-side provisioner (pre-start hook)
  Dockerfile         # Image build (FROM scion-base)
  cloudbuild.yaml    # Cloud Build configuration
  home/
    .config/opencode/opencode.json   # OpenCode client settings

Build the Image

# Local Docker build
docker build --build-arg BASE_IMAGE=scion-base:latest -t scion-opencode:latest -f Dockerfile .

# Cloud Build
gcloud builds submit --config cloudbuild.yaml .