OpenCode is an open-source, terminal-native AI coding assistant that exposes a local HTTP server your editor or orchestration layer can talk to. Synara integrates with OpenCode through that server API — it can either launch theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/synara/llms.txt
Use this file to discover all available pages before exploring further.
opencode binary on demand and manage its lifecycle automatically, or connect to an already-running remote OpenCode server you control.
OpenCode support in Synara is tracked under the
opencode provider kind. Model slugs follow OpenCode’s <providerID>/<modelID> convention (e.g. openai/gpt-5). See Concepts: Providers for background on how providers work in Synara.Prerequisites
You need one of the following before enabling this provider:- Local binary mode — the
opencodeCLI must be installed and available on yourPATH, or you must supply a full path to the binary viabinaryPath. - Remote server mode — a reachable OpenCode server URL and, if the server requires authentication, its password.
Configuration
Provider settings live in theproviders.opencode block of your Synara settings.json. See Configuration: Settings for the full settings file reference.
Enables or disables the OpenCode provider. When
false, Synara will not attempt to start or connect to OpenCode.Path to the
opencode executable. Accepts a bare binary name (resolved from PATH) or an absolute/relative path. Only used in local binary mode.URL of a remote OpenCode server (e.g.
http://192.168.1.50:4000). When set, Synara skips launching a local process and connects directly to this server. Leave empty to use local binary mode.Password for HTTP Basic authentication against the remote server. Only used when
serverUrl is set. Leave empty if the server does not require authentication.Enables the experimental WebSocket transport when starting a local OpenCode server process. Has no effect in remote server mode. This feature is not yet stable — enable it only for testing.
Additional model slugs to surface in the model picker alongside the built-in list. Each entry must follow OpenCode’s
<providerID>/<modelID> format (e.g. "anthropic/claude-opus-4-6").Built-in models
Synara ships with the following OpenCode model slug pre-configured:| Slug | Name |
|---|---|
openai/gpt-5 | OpenAI GPT-5 |
customModels.
Local binary vs remote server
Synara picks the mode based on whetherserverUrl is populated.
Local binary mode (default): Synara spawns an opencode serve process in the background on an available port, waits up to 20 seconds for it to report a listening URL, and tears it down when no active sessions need it. The server is pooled across concurrent threads so only one process runs per unique binary path.
Remote server mode: When serverUrl is non-empty, Synara skips process management entirely and connects directly to the URL you provide. Use this when you run OpenCode on a separate machine, inside a container, or via a shared team server.