Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt

Use this file to discover all available pages before exploring further.

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:
curl -fsSL https://opencode.ai/install | bash
Verify the install worked:
opencode --version
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:
cd your-project
opencode
The OpenCode TUI (terminal interface) opens.
OpenCode TUI home screen

Step 3. Connect GMI Cloud

Inside OpenCode, type:
/connect
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:
/models
The model picker opens showing all available GMI Cloud models. Recommended models for coding:
ModelBest for
Qwen3-Coder-480BBest coding quality
DeepSeek V4 ProComplex reasoning & hard problems
Claude Sonnet 4.6Balanced quality + speed
Claude Opus 4.7 FastFast, high-quality responses
DeepSeek V4 FlashLightweight, quick tasks
Select a model and press Enter.

Step 5. Start coding

You’re all set. Type any task in the prompt and hit Enter:
Fix the broken tests in this project
Explain what this codebase does
Refactor this function to be more readable
OpenCode reads your files, reasons about the code, and makes changes directly.

Useful commands

CommandWhat it does
/connectAdd or switch AI provider
/modelsSwitch the active model
Ctrl + POpen command palette
Ctrl + CCancel current response
EscClose any menu

Next steps