1. Install OpenCode
Install OpenCode directly from your terminal with a single command:2. Launch OpenCode
Navigate to your project directory and launch OpenCode: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 type 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-K2.7-Code- Purpose-built for coding agents.zai-org/GLM-5.2- Strong coding and agentic all-rounder.deepseek-ai/DeepSeek-V4-Pro- Advanced reasoning capabilities.Qwen/Qwen3-Coder-Next-FP8- Fast, cost-effective coding model.
4. Bonus: 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 K2.7 Code (
moonshotai/Kimi-K2.7-Code): Purpose-built for coding agents, with a 256K context window. - GLM 5.2 (
zai-org/GLM-5.2): Strong all-rounder for coding and agentic tasks. - DeepSeek V4 Pro (
deepseek-ai/DeepSeek-V4-Pro): 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!