Skip to main content
OpenCode is an open-source AI coding agent that runs in your terminal. Connect it to GMI Cloud and any model in the GMI catalog becomes available for reading files, reasoning about code, and making edits, directly from the TUI.

Prerequisites

  • A Mac, Linux, or Windows machine with a terminal
  • A GMI Cloud account at console.gmicloud.ai
  • About 5 minutes

Step 1. Install OpenCode

Run this command in your terminal:
Verify the install worked:
You should see a version number like 1.15.11.

Step 2. Open OpenCode in your project

Navigate to any code project and launch OpenCode:
The OpenCode TUI (terminal interface) opens.
OpenCode TUI home screen

Step 3. Connect GMI Cloud

Inside OpenCode, type:
Typing /connect in the OpenCode command palette
A provider list appears. Scroll down, select GMI Cloud, then press Enter.
Connect a provider list with GMI Cloud selected
When prompted for an API key:
  1. Go to console.gmicloud.ai.
  2. Open API Keys and copy your key.
  3. Paste it into OpenCode and press Enter to confirm.
Pasting the GMI API key into OpenCode
GMI Cloud is now connected.

Step 4. Pick a model

Inside OpenCode, type:
The model picker opens showing all available GMI Cloud models. Recommended models for coding: Select a model and press Enter.

Step 5. Start coding

You’re all set. Type any task in the prompt and hit Enter:
OpenCode reads your files, reasons about the code, and makes changes directly.

Useful commands

Next steps