My OpenCode Setup
Ever since I installed OpenCode, it has become my favorite way to work with AI in the terminal. It gives me most of what people love about Claude Code or Codex, but without the lock-in and without the feeling that I have to accept somebody else’s idea of how I should build software. That is exactly why I like it.
Yes, you have to set up a little more yourself. But that is a feature, not a bug. I want to know what is happening under the hood. I want control over the model, the keybindings, the permissions, and the roles. I do not want my coding workflow to depend on one company deciding which model I am allowed to use this month.
At the moment, I am running Kimi K2.5 through Moonshot. It feels similar to, and sometimes slightly worse than, Claude Sonnet 4.6 in coding tasks, but the price difference is so dramatic that I genuinely do not mind.
So here is the setup I landed on.
1. Install OpenCode and Connect a Model Provider
This part is thankfully easy. OpenCode installs quickly, and from there you can walk through the initial configuration in the terminal.
I connected Moonshot AI and pointed OpenCode at Kimi K2.5. The nice thing is that OpenCode speaks in a very open ecosystem language. If you are unsure how a model ID should be referenced, models.dev is quite useful.
2. Control the TUI
Out of the box, the terminal UI is already good. But I have some opinions about how my editors and terminals should work, and OpenCode is no exception.
The single most important tweak for me is binding the external editor so I can open the prompt in Neovim when I want more precision. In my tui.json, that is mapped to Ctrl+X as leader and then e for editor:
{
"keybinds": {
"leader": "ctrl+x",
"editor_open": "<leader>e",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"model_cycle_recent": "f2",
"session_new": "<leader>n",
"session_list": "<leader>l",
"session_compact": "<leader>c"
}
}That sounds minor, but it changes the feel of the whole tool. When a prompt gets longer, I do not want to wrestle with a tiny input box. I want to edit it properly, like text, because that is what it is.
3. Add Skills
Skills are where OpenCode starts to feel less like a toy and more like a real workstation.
Get Simon Weigold’s stories in your inbox
Join Medium for free to get updates from this writer.
The first skill I added was Vercel’s find-skills, because it makes the whole ecosystem easier to navigate:
npx skills add <https://github.com/vercel-labs/skills> --skill find-skillsI also added the browser automation skill:
npx skills add <https://github.com/vercel-labs/agent-browser> --skill agent-browserAnd the real game changer for frontend work:
npx skills add <https://github.com/manutej/luxor-claude-marketplace> --skill playwright-visual-testingThat last one matters a lot. It means the agent can actually look at what you are building in the browser instead of just hallucinating about CSS and layout from source code alone. For UI work, that is a huge difference.
4. Add a Few Focused Agents
I also experimented with custom agents instead of relying only on the defaults. Right now, I keep three simple ones: an architect, a coder, and a critic. The architect acts as the planner and orchestrator. The coder is strictly there to implement. The critic is the quality gate that reviews and tests.
I like this setup because it mirrors how I already think about software work. Planning, building, and reviewing are different cognitive modes. Splitting them makes the agent feel more structured and less chaotic.
My custom agents all use Kimi K2.5 and have very explicit responsibilities. For example, the coder is told to focus only on implementation, while the critic is told to behave like a harsh reviewer who checks security, edge cases, and tests.
Here’s where I found some inspiration for this specific type of agent setup. If you want to see the exact dotfiles and OpenCode config I am using, you can find them here.
5. Why I Am Not Fully Outsourcing the Loop
I also tested more autonomous setups, especially “Get Shit Done”. I think they are interesting. In some contexts, they are probably the future. But for my day-to-day work, I still want a human in the loop, and that human is me.
When I had “GSD” running for two days, I ended up with a gigantic pull request that took me over two hours to fully review. Apart from some smaller bugs, I was actually quite happy with the results but I realized that if I did have to put in so much reviewing effort at the end, I would be fine with steering the agent through the build directly.
So for now, I prefer a semi-agentic workflow. Let the model plan. Let it build. Let it critique. But keep me close enough to intervene and first and foremost understand what’s going on.
A Good Baseline
This is still a fairly basic setup. No giant framework, no over-engineered automation, but it is enough.
With OpenCode configured this way, I feel like I have a coding assistant that is actually mine. I choose every component, every setting. And if I do not like something, I can change it.
That, to me, is the whole point of open tools in the AI era. Not just that they are free. That they are yours.







