Picture this: you want AI to write code but you don't want to pay for a subscription or wrestle with complicated setup. Then along comes a tool that promises to solve exactly that — and it's open source. There's a catch, though: it can drain your wallet faster than you can say "Anthropic." That's the dilemma OpenCode puts in front of you.
What it is
OpenCode is an open-source coding agent that works with Claude models through the regular API. It pulled in a staggering 18,000 GitHub stars in just two weeks, off the back of viral discussion of George Hotz's post "Anthropic's huge mistake" on Hacker News. The surge of attention was so powerful that it outdid any marketing campaign habr.com. The project is a UI app for macOS, which makes it available only to users on that platform habr.com.
How it works
The core idea behind OpenCode is to let people tap Claude's power for coding without a direct subscription. Instead, OpenCode acts as an intermediary, using the standard Claude API. That sidesteps some of the limits and interfaces developers may find awkward. But the approach has a price: using the API can cost more than subscribing directly. One Hacker News user shared that he accidentally spent $6 just experimenting with OpenCode habr.com. It's a reminder that ease of use can hide serious costs if you don't watch your token consumption.
Quick start
Since OpenCode is a macOS UI app, installing it usually comes down to downloading a file and running it. The sources don't list specific install commands, but on macOS it generally looks like this:
# Download the .dmg or .zip file from the GitHub release
# Drag the app into the Applications folder
# Launch OpenCode.app
Once it's running you'll most likely need to enter your Claude API key in the app's settings.
Limitations
- Running costs: the headline complaint, and the most discussed one, is the potentially high spend. Using Claude via the API through OpenCode can cost more than a direct subscription habr.com. That makes it less appealing for long, intensive use.
- Platform lock-in: OpenCode is available as a UI app for macOS only habr.com. That leaves out users on other operating systems, such as Windows or Linux.
- Criticism of the user experience: DHH (creator of Ruby on Rails) called OpenCode's approach "very user-hostile" habr.com. That may point to problems with how intuitive the interface is, or to surprises in how it behaves — such as unexpected spend.
Who it suits
OpenCode is a fit for anyone looking for an open-source coding tool on macOS, wanting to experiment with Claude via the API and willing to keep a close eye on spend. It's a good option for trying out what Claude can do quickly without taking out a subscription, as long as you go in aware of the potential cost. If you're not up for that spend or you're on another OS, look at alternatives such as CodeWhale (terminal-based, supports many models) or Cerebro MCP (an orchestrator for non-coders).