$ lexprog.com

// notes from an old coder -- php, databases, and the occasional rant

[October 04, 2026] OpenCode

Commit a project opencode.json: in CI

Put model, MCP, and permission defaults in the repo. Use the headless entrypoint and fail the job on a non-zero exit.

────────────────────────────────────────────────────────

Commit a project opencode.json: in CI

Tip: Share team defaults

Put model, MCP, and permission defaults in the repo. Use the headless entrypoint and fail the job on a non-zero exit.

{ "model": "anthropic/claude-sonnet-4-6", "autoupdate": false }

Gotcha: User config silently winning (in ci)

Know the merge order before you debug it-works-on-my-machine. The TUI will hang with no TTY; never pipe yes into permission prompts.

/* ~/.config/opencode may shadow keys */

Source: https://opencode.ai/docs/config

────────────────────────────────────────────────────────
<-- back to posts