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.
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.
- Install OpenCode from its docs
- Set base URL https://api.geekhub.mx/v1 and your API key
- Pick Geek Hub catalog model ids
- 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 keyOpenCode FAQ
- OpenCode vs Cursor?
- Cursor is a full IDE; OpenCode is agent/CLI. Choose based on editor UI vs headless automation.