Step 1: Install OpenCode
Install OpenCode directly from your terminal with a single command:Step 2: Launch OpenCode
Navigate to your project directory and launch OpenCode:Step 3: Configure Together AI
When you first run OpenCode, you’ll need to configure it to use Together AI as your model provider. Follow these steps:- Set up your API provider: Configure OpenCode to use Together AI.
opencode auth login.

To find the Together AI provider you will need to scroll the provider list or enter together.

- Add your API key: Get your Together AI API key and paste it into the OpenCode terminal.
- Select a model: Choose from powerful models like:
moonshotai/Kimi-K3- Top pick for coding agents.zai-org/GLM-5.3- Strong coding and agentic all-rounder.deepseek-ai/DeepSeek-V4-Pro-0813- Advanced reasoning capabilities.deepseek-ai/DeepSeek-V4-Flash-0731- Fast, cost-effective coding model.
Step 4: Install the OpenCode VS Code extension
For developers who prefer working within VS Code, OpenCode offers a dedicated extension that integrates seamlessly into your IDE workflow while still leveraging the power of the terminal-based agent. Install the extension: Search for “opencode” in the VS Code Extensions Marketplace or directly use this link:Key features & usage
Native terminal experience
OpenCode provides a responsive, native terminal UI that’s fully themeable and integrated into your command-line workflow.Plan mode vs build mode
Switch between modes using the Tab key:- Plan Mode: Ask OpenCode to create implementation plans without making changes.
- Build Mode: Let OpenCode directly implement features and make code changes.
File references with fuzzy search
Use the@ key to fuzzy search and reference files in your project:
Best practices
Give detailed context
Talk to OpenCode like you’re talking to a junior developer:Use examples and references
Provide plenty of context and examples:Iterate on plans
In Plan Mode, review and refine the approach before implementation:Model recommendations
- Kimi K3 (
moonshotai/Kimi-K3): Top pick for coding agents, with a 1M context window. - GLM 5.3 (
zai-org/GLM-5.3): Strong all-rounder for coding and agentic tasks. - DeepSeek V4 Pro 0813 (
deepseek-ai/DeepSeek-V4-Pro-0813): Advanced reasoning for complex problems.
Getting started
- Install OpenCode:
curl -fsSL https://opencode.ai/install | bash. - Navigate to your project:
cd your-project. - Launch OpenCode:
opencode. - Configure Together AI with your API key.
- Start building faster with AI assistance.