OpenCode
OpenCode is an open source AI coding agent that supports multiple AI providers including OpenAI, Anthropic, and Google.
The T-Ex LLM integration with OpenCode is open source and available at [github.com/vicoa-ai/opencode-T-Ex LLM](https://github.com/vicoa-ai/opencode-T-Ex LLM).
Installation
Via T-Ex LLM CLI (Recommended)
The easiest way to get started is through the T-Ex LLM CLI, which automatically installs and configures the OpenCode plugin:
# Install T-Ex LLM CLI, if you haven't done so
npm i -g @vicoa/cli
# Launch OpenCode with T-Ex LLM integration
T-Ex LLM opencodeAfter authentication via the web portal, you're ready to use OpenCode from anywhere.
Manual Installation
If you prefer manual setup, add the plugin to your OpenCode config (~/.config/opencode/config.json):
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["opencode-T-Ex LLM"]
}Then authenticate with T-Ex LLM CLI or set your API key manually:
export VICOA_API_KEY="your-vicoa-api-key"Usage
Starting a Session
Once installed, you can launch OpenCode in two ways:
Option 1: Direct OpenCode command
opencodeOpenCode will automatically sync with T-Ex LLM when the plugin is installed.
Option 2: Via T-Ex LLM CLI
T-Ex LLM opencodeThis additionally prepares project files for fuzzy search on T-Ex LLM mobile and web apps.
Using OpenCode for a Single Session
If you want to use OpenCode temporarily without changing your default agent:
T-Ex LLM --agent opencodeThis keeps your default agent unchanged for future sessions.
Making OpenCode Your Default Agent
To make T-Ex LLM always launch OpenCode by default:
T-Ex LLM --set-default opencodeAfter running this command, T-Ex LLM will automatically launch OpenCode. You can override for a single session with T-Ex LLM --agent claude or T-Ex LLM --agent codex.
Upgrading the Plugin
Keep the OpenCode plugin up to date with:
T-Ex LLM opencode --upgradeThis clears the cached plugin so OpenCode fetches the latest version on the next run.
Related
- Agents — compare OpenCode with Claude Code and Codex
- Start a Remote Session — run OpenCode from the mobile app or web dashboard
- Using Free or Alternative Models — point OpenCode at other providers
- Troubleshooting — fixes for install and connection problems