OpenCode

Opencode on HPC

OpenCode is an open source agent that helps you write code in your terminal.

Installing OpenCode

First, you’ll need to install OpenCode into your home account with the following command:

curl -fsSL https://opencode.ai/install | bash

once the command is finished running, add the following to ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "uva-rc-genai/Kimi K2.5",
  "provider": {
    "uva-rc-genai": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "UVA RC GenAI",
      "options": {
        "baseURL": "https://open-webui.rc.virginia.edu/api",
        "apiKey": "<your-api-key>"
      },
      "models": {
        "Kimi K2.5": {
          "id": "Kimi K2.5"
        }
      }
    }
  }
}

You’ll need to replace <your-api-key> with your own personal API key. You can then launch by running opencode from the command line.

Note: You need to be on a compute node to run Claude Code or OpenCode sessions.
Previous
Next
© 2026 The Rector and Visitors of the University of Virginia