OpenCode
Use OpenCode with Syntax.
OpenCode is an open-source coding agent. Syntax connects to it via the OpenAI-compatible Bridge.
Connect
syntax connect opencodeThe connect flow:
- Locates OpenCode's JSON configuration in the standard location for your OS.
- Rewrites the model endpoint to point at the local Bridge.
- Backs up the original configuration.
If OpenCode isn't installed, the command prints OpenCode's official install instructions and exits.
What works through Syntax
- Streaming, tool calls, and reasoning all pass through.
- Any model Syntax exposes is usable from OpenCode.
- OpenCode's session controls work unchanged.
Disconnect
syntax disconnect opencodeRestores OpenCode's original JSON configuration.