Skip to main content

Compare

Bernstein vs OpenCode: quick decision guide

OpenCode CLI adapter.

Page built on 2026-08-16 from data/adapters-meta.json. Every claim below links to its primary source.

Install both

OpenCode

curl -fsSL https://opencode.ai/install | bash (fastest),

Bernstein

pipx install bernstein

Apache-2.0. Deterministic Python scheduler.

Feature matrix

CapabilityOpenCodeBernstein
Install methodcurl -fsSL https://opencode.ai/install | bash (fastest),pipx install bernstein
LicenseNot recordedApache-2.0
AuthenticationNot recordedPer-agent credential scoping (no shared key)
Multi-agent orchestrationOne agent in a terminalOpenCode plus 40+ other adapters in parallel worktrees
MCP supportNot measuredYes
Parallel-safe in worktreesNot measuredYes (designed around git worktrees)
HMAC-chained audit logNoYes (RFC 2104 SHA-256 chain in .sdd/)
Deterministic schedulerNot applicable (single-agent CLI)Yes (Deterministic Python scheduler)

Adapter source: src/bernstein/adapters/opencode.py | Upstream homepage: opencode.ai

Verifiable facts

The brief for this surface requires at least three facts that a reader can verify against a primary source. The list below is built from the bernstein adapter source and, when available, the upstream project's own pages.

  1. Bernstein ships a OpenCode adapter at src/bernstein/adapters/opencode.py that wraps the upstream CLI as one of 42 routable agents. [source: bernstein adapter source, as of 2026-08-16]
  2. Upstream install command, as recorded in the bernstein adapter, is "curl -fsSL https://opencode.ai/install | bash (fastest),". [source: upstream docs, as of 2026-08-16]
  3. Bernstein last verified its adapter against upstream OpenCode (anomalyco/opencode) 1.18.16 on 2026-08-12. [source: bernstein adapter source, as of 2026-08-12]

Where OpenCode fits in Bernstein

Bernstein registers OpenCode under the slug "opencode" and the registry name "opencode". The adapter source lives at src/bernstein/adapters/opencode.py in the bernstein repo and was last touched at build time 2026-08-16. The OpenCode adapter file is 143 lines and 4,726 bytes long, fingerprinted 545ede2b5a5813e6 (first 16 hex chars of SHA-256). Operators install OpenCode on a worker box with "curl -fsSL https://opencode.ai/install | bash (fastest)," before Bernstein routes any task to it. No upstream GitHub repository is recorded in the bernstein adapter for OpenCode; refer to the upstream vendor's documentation when auditing. The OpenCode project's homepage at opencode.ai is the primary source for upstream release notes. Bernstein last verified the OpenCode adapter against upstream OpenCode (anomalyco/opencode) 1.18.16 on 2026-08-12, recorded inline in the adapter source. Bernstein routes tasks to OpenCode when its pass rate on similar work clears the configured threshold, otherwise the deterministic Python scheduler picks a different adapter from the 40+ adapter catalog.

Adapter source excerpt

The module docstring of the OpenCode adapter, as it stands in the bernstein repo. Punctuation is normalised for the web; the wording is the author's. Length: 252 characters.

OpenCode CLI adapter. Last verified against upstream OpenCode (anomalyco/opencode) 1.18.16 on 2026-08-12. Install: ``curl -fsSL https://opencode.ai/install | bash`` (fastest), ``brew install anomalyco/tap/opencode``, or ``npm i -g opencode-ai@latest``.

Adapter telemetry

Registry nameopencode
Adapter classOpenCode
Source filesrc/bernstein/adapters/opencode.py
Source file size143 lines, 4,726 bytes
Source SHA-256545ede2b5a5813e6d86daa18c0a9690bbac9d90365ca8510170a17ebc0b436ab
Category bucketcli-family
Upstream repoNot derivable from adapter source
Upstream homepageopencode.ai
Last verified upstreamOpenCode (anomalyco/opencode) 1.18.16 on 2026-08-12
Operator-curated overlayNo (programmatic page)

When to pick which

Choose OpenCode

Reach for OpenCode when the work is a single thread that fits one agent: in a single-process terminal session, designed for single-instance use per repo. Auth model is configured per upstream docs. You skip the orchestrator round-trip and get the smallest possible surface between you and the model.

Choose Bernstein

Wrap OpenCode under Bernstein when the goal splits into parallel tasks, when you want an HMAC-chained audit log on every routing decision, or when a deterministic Python scheduler (no LLM picking who runs what) is a hard requirement.

FAQ

Does Bernstein replace OpenCode?

No. Bernstein wraps OpenCode as one of 40+ CLI adapters and routes tasks to it based on per-task pass-rate history. OpenCode keeps running unchanged; Bernstein decides when it gets work.

Can I run OpenCode alongside other agents in the same repo?

Yes. Each agent runs in its own git worktree under .sdd/worktrees/{session_id}, so file edits never collide. Bernstein merges results back to the trunk only after the configured quality gates (lint, types, tests) pass.

Is this comparison page handwritten?

No. The template is fixed; every fact and every link is pulled from the bernstein adapter source in the master branch and (when available) the upstream project's own pages. The data extractor lives at scripts/gen-compare-data.mjs. No LLM writes the prose.