opencode is an open-source AI coding agent built for the terminal. It features a native TUI, multi-session support, and is model-agnostic, letting you use Claude, OpenAI, Google, or even local models.
Hi everyone!
As we all know, Claude Code isn't open source, and while Gemini CLI is open, the official version only uses Google's models. So, is there an open-source command-line coding agent that can use any model? Take a look at opencode.
This project, built with Golang, features a native, themeable Terminal User Interface (TUI) that's highly customizable. It supports starting multiple agent sessions in parallel, and works perfectly with either large model APIs or your local models.
Def going to use this. As soon as model prices can compete with the rebates gemini cli and claude code offer 🙏 atm its like 100x rebates. Impossible to compete with. Maybe grok4 or DeepSeek will be able to offer competitive prices soon? 🙏
opencode now integrates with vscode, cursor, windsurf, etc
it'll be aware of what file you're in and you can easily send inject selected lines into the prompt
start opencode inside your editor and it'll install the extension
Tried opencode and it seems to be super responsive and smart without being intrusive. I love that I can plug in any model I want. It actually feels like coding with a helpful partner in the terminal.
Def going to use this. As soon as model prices can compete with the rebates gemini cli and claude code offer 🙏 atm its like 100x rebates. Impossible to compete with. Maybe grok4 or DeepSeek will be able to offer competitive prices soon? 🙏
I believe this product would help me coding more efficiently and cheap. Thank you!