Skip to main content
OpenCode is an open-source coding agent for the terminal, IDE, and desktop. This guide configures GeekAI as a model provider for the terminal client.

Quick start

Install OpenCode using the installation script:
Installing OpenCode In the root of your project, create opencode.json with the following provider configuration:
Replace <YOUR_GEEKAI_API_KEY> with your GeekAI API key. To use GeekAI International, set baseURL to https://geekai.dev/api/v1 and use a key issued by the international service.
Save the file and start OpenCode:
Starting OpenCode
If you see opencode: command not found, open a new terminal or reload your shell configuration with source ~/.bashrc (Bash) or source ~/.zshrc (Zsh).
Enter a coding request in plain language: Coding with OpenCode through GeekAI To switch models, run /models and choose a model from the list: Choosing a model in OpenCode