OpenCode
OpenCode is a terminal-first AI coding assistant that enables developers to interact with large language models (LLMs) directly from the command line. It supports interactive prompting, model switching, and configuration-driven customization for advanced workflows.
OpenCode supports OpenRouter as an API provider, allowing you to access a wide range of language models, including Arcee AI’s Trinity models, through a single OpenAI-compatible endpoint. This simplifies setup, enables easy experimentation across models, and centralizes authentication and usage tracking.
This guide walks through how to configure OpenCode to use Trinity models via OpenRouter.
Prerequisites
OpenRouter Account
If you don't have an account, set one up here.
OpenRouter API Key
If you don't have an API Key, create one here.
Quickstart
Run the
/connectcommand and search for OpenRouter.Enter the API key for the provider.
┌ API key │ │ └ enterMany OpenRouter models are preloaded by default, run the
/modelscommand to select an Arcee Trinity model (for example, Trinity-Large) from the list./modelsConfigure Models via opencode.json (optional)
You can add or customize models using the OpenCode configuration file, including their provider:
Last updated

