What is OpenCode? Open-source agent + Geek Hub setup

OpenCode is an open-source coding agent meant to live next to your repo and terminal. The bet is control: pick models, prompts, and automations without locking into one cloud vendor.

CLIUpdated 2026-08-11Official site

What is OpenCode?

In practice it's an agentic layer over your codebase: gather context, propose edits, chain tools. Being open-source helps teams that want to audit and extend the agent.

Key features

  • Open-source and extensible
  • Agentic repo workflows
  • Works with standard provider APIs
  • Fits CI and headless environments

OpenCode + Geek Hub

Point OpenCode's OpenAI-compatible client at Geek Hub's base URL. One key unlocks the full catalog.

  1. Install OpenCode from its docs
  2. Set base URL https://api.geekhub.mx/v1 and your API key
  3. Pick Geek Hub catalog model ids
  4. Track cost/latency per job in the dashboard
export OPENAI_BASE_URL=https://api.geekhub.mx/v1
export OPENAI_API_KEY=gh_...
Get an API key

OpenCode FAQ

OpenCode vs Cursor?
Cursor is a full IDE; OpenCode is agent/CLI. Choose based on editor UI vs headless automation.

OpenCode vs similar tools