Skip to main content
OpenCode is an open-source AI coding agent, available as a terminal-based interface, a desktop app, and an IDE extension. All of them are driven by the same opencode.json, so the provider configuration below applies everywhere. OpenCode supports custom OpenAI-compatible providers, so you can add the ScitiX Model Inference API as a provider.

Configure

1. Install OpenCode

Arch, Docker, and other install methods are listed in the official docs. The install script and Homebrew ship a standalone binary, so no Node.js is required. The npm route needs Node installed.

2. Configure the provider

Create an API Key on the API Keys page, then edit ~/.config/opencode/opencode.json, or a project-level opencode.json. Project config overrides global config, and the two are merged. On a fresh machine, create the directory first:
Export the key and start OpenCode:
An export only lasts for the current shell session. In a new terminal, the variable is gone, and {env:...} silently resolves to an empty string, so requests fail with an authentication error. To make it permanent, add the export line to ~/.bashrc or ~/.zshrc. In CI or containers, inject it as a secret.
Use a model with native tool calling support. OpenCode’s core workflow relies on it for file and command actions.

Verify

Run a quick config check:
It should list glm-5.2. Then run a non-interactive one-shot task:
Or start opencode interactively, run /models, select scitix / glm-5.2, and give it a coding task to confirm tool calls and streaming output work.

Other Interfaces

  • IDE extension: in VS Code, Cursor, Windsurf, or VSCodium, the OpenCode extension auto-installs the first time you run opencode in the integrated terminal. You can also install OpenCode from the marketplace. Quick-launch with Cmd+Esc / Ctrl+Esc. It runs the same OpenCode with the same config.
  • Web UI: opencode web starts a local server and opens the browser UI. It shares sessions and state with the TUI.

FAQ

  • If the provider does not show up, check the JSON syntax. opencode.json can also live in your project root, .jsonc is supported, and OPENCODE_CONFIG can point to a custom path.
  • If authentication fails, confirm that SCITIX_API_KEY is exported in the shell that launches opencode. An unset environment variable silently becomes an empty string.