AI agents can help coding, but OpenCode is a specific AI agent in terminal to work mainly with dirs and files, it can work with some code too. Here's how to install in VS Code/Antigravity (AntiG)
IDEs:
- Backend: Install OpenCode CLI in terminal (eg. Pwsh)
npm i -g opencode-ai - Find the location of opencode command
(get-command opencode).path - Add path to opencode command (opencode.ps1)
Add to PATH in System Properties
- Extension: Install OpenCode in VS Code/AntiG:
- Find the 'opencode' extension by SST to install
- Also install the 'OpenCode Beta' extension by SST
- Get Key: Authenticate OpenCode CLI
- Open opencode.ai/zen in browser to get key
- Run this command to set key
opencode auth login - Or type /connect later after run
- Run: Use either of these ways to start OpenCode
- Click OpenCode icon on top-right corner of IDE
- Or run 'opencode' command in terminal of IDE
- Choose Model: Type the following in OpenCode to choose model (Big Pickle is currently free, early 2026):
Notes: Some important and usage notes
- Run OpenCode by clicking icon better, it opens port for other tools
- OpenCode doesn't know editor context (eg. opened tabs) 'cause it's terminal-specific AI agent
- Light theme? none yet, type /themes and choose Nord, a bit lighter
No comments:
Post a Comment