Skip to main content
OpenCode is a terminal agent with a config-driven provider system. Anything OpenAI-compatible can be declared in opencode.json / opencode.jsonc.

Requirements

Install

Configure

Config lives at ~/.config/opencode/opencode.jsonc (global) or ./opencode.json (project). Current schema uses a providers object:
~/.config/opencode/opencode.jsonc

Select a model

Models are addressed as <provider>/<model>:
Inside the TUI, /models lists what you declared; /connect is for catalog providers.

Verify

Ask for something that requires a tool call (“list files in this directory”). Then confirm the entry in Triw Logs.

Troubleshooting