# opencode · Service dependencies

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [opencode](https://ai-agents-review.com/runtime/opencode.md)
- Column: [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) (Operations and verification)
- Mark: R (+E alt: in-process SDK) s
- Default deployment: R (+E alt: in-process SDK)
- Best supported configuration: R (+E alt: in-process SDK)
- Page: https://ai-agents-review.com/cell/opencode/service-dependencies

## Rationale

Clients ensure a local `opencode serve --service` process that stays resident when idle

## Rubric criteria for this column

- E: Embedded: in-process library or one CLI process; nothing runs when idle
- O: On demand: a helper process or daemon starts when needed and exits when idle
- R: Resident: a long-running service (gateway/server) in the default deployment
- X: External server required: the default deployment depends on a separately operated server (beyond the model API)

## Review finding

Built in: a local `opencode` service process (loopback, random password) with embedded SQLite; the service stays resident when idle. [opt: persistent PTY daemon (falls back without it); Console, remote MCP, OTLP] [alt: SDK embedded host: no process or port, `:memory:` DB] [O80][O81][O82][O83]

## Evidence cited by the mark

- [O80] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/cli/src/server-process.ts#L72-L120 — Local service on 127.0.0.1, random password, SQLite DB path, models fetch disable env — [S]
- [O81] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/client/src/service.ts#L27-L48 — Clients ensure `opencode serve --service`; registration file in XDG state dir — [S]
- [O83] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/sdk/src/internal/host.ts#L51 — Embedded SDK host: no process/port, `:memory:` DB by default — [S]

## Evidence also cited by the review finding

- [O82] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/shell.ts#L150-L151 — Falls back to server-spawned processes when PTY daemon unavailable — [S]

## Grading record

- Grader A (default / best): R / R (+E alt)
- Grader B (default / best): R / E
- Adjudication: R14 notation. Clients ensure a local `opencode serve --service` process that stays resident when idle
