Skip to content
Browse the docs

Integrations · Verified · OpenCode 2.4.1 and 1.19.6

OpenCode with Unbound

OpenCode is a coding assistant with a desktop app. Connecting it to Unbound takes about five minutes and no programming: you create a key, tell OpenCode where Unbound is, and pick a model.

16 steps · a picture for every stepYour system

OpenCode has two versions in use and they are set up differently. The app you download today is version 2. To check an app you already have, open Settings: version 2 has an About page in the list, version 1 shows its number at the bottom left of the window.

Step by step

Every step below was run on OpenCode 2.4.1 on 24 November 2026: the file, the key, choosing the model, a streamed answer, a tool call and the spend on Unbound.

  1. Step 1: Download OpenCode

    Go to the official download page and get the Desktop app. Install it and open it once, so it creates its settings folder.

    Click Download for Windows, open the file and follow the installer.

    Open opencode.ai/download
    Real screenshotopencode.ai, 24 November 2026Click to enlarge
    AdvancedDirect links and package managers

    These are the files the download page serves.

    Windows
    https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-win-x64.exe
    macOS, Apple Silicon
    https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-mac-arm64.dmg
    macOS, Homebrew
    brew install --cask opencode-desktop
  2. Step 2: Create your Unbound key

    Open your API keys page. Type a name such as OpenCode, add a spending limit if you want one, and click Create key.

    Open my API keys
    Real screenshotUnbound AI, local development buildClick to enlarge
  3. Step 3: Copy the key

    Click Copy. The key is shown only this once, so keep the page open until you have pasted it in the next steps.

    Real screenshotUnbound AI, local development buildClick to enlarge

    Treat the key like a password. Anyone who has it can spend your credits.

  4. Step 4: Download your configuration file

    This small file tells OpenCode where Unbound is and which models you can use. It is built from the models available right now and never contains your key. Click Download opencode.json.

    No model is available through the API yet, so there is nothing to put in the file. It will be offered here as soon as one is listed on the models page.
    Real screenshotUnbound AI documentation, local development buildClick to enlarge
  5. Step 5: Put the file in OpenCode’s folder

    Move opencode.json from your Downloads into OpenCode’s settings folder. Then close OpenCode completely and open it again.

    Press Windows + R, paste this, and press Enter. A folder opens: drag the file into it.

    Folder%USERPROFILE%\.config\opencode
    IllustrationIllustration, not a screenshotClick to enlarge

    If the folder already holds an opencode.json or opencode.jsonc of yours, do not replace it. Open it and add the providers block from the generator instead.

    AdvancedDo it from a terminal instead
    Windows (PowerShell)
    New-Item -ItemType Directory -Force "$env:USERPROFILE\.config\opencode"
    Move-Item "$env:USERPROFILE\Downloads\opencode.json" "$env:USERPROFILE\.config\opencode\opencode.json"
    macOS and Linux
    mkdir -p ~/.config/opencode
    mv ~/Downloads/opencode.json ~/.config/opencode/opencode.json
  6. Step 6: Open Settings

    In OpenCode, click Settings on the home screen.

    Real screenshotOpenCode 2.4.1Click to enlarge
  7. Step 7: Open Providers and show more

    Click Providers. Unbound AI is already listed with the label Config: that is your file. Now click Show more providers at the bottom to add your key.

    Real screenshotOpenCode 2.4.1Click to enlarge
  8. Step 8: Find Unbound AI

    Type Unbound in the search box and click Unbound AI.

    SearchUnbound
    Real screenshotOpenCode 2.4.1Click to enlarge
  9. Step 9: Paste your key

    Paste the key you copied from Unbound and click Continue. OpenCode keeps the key in its own storage, not in the file you downloaded.

    Real screenshotOpenCode 2.4.1Click to enlarge
  10. Step 10: Choose a model

    OpenCode confirms the connection and lists your Unbound models. Pick one and click Continue.

    Real screenshotOpenCode 2.4.1Click to enlarge
  11. Step 11: Ask something

    Type a question and press the send button. The model name under the box shows you are on Unbound AI.

    Real screenshotOpenCode 2.4.1Click to enlarge
  12. Step 12: Read the answer

    The answer appears word by word as it is written.

    Real screenshotOpenCode 2.4.1Click to enlarge
  13. Step 13: Let it work on your files

    When a request needs your project, OpenCode uses its tools and shows what it did, for example Used 1 Glob for a file search. This needs a model that supports tools.

    Real screenshotOpenCode 2.4.1Click to enlarge
  14. Step 14: Switch models whenever you like

    Click the model name under the message box.

    Real screenshotOpenCode 2.4.1Click to enlarge
  15. Step 15: Pick any model under Unbound AI

    Your Unbound models are grouped under Unbound AI at the end of the list.

    Real screenshotOpenCode 2.4.1Click to enlarge
  16. Step 16: Check it on Unbound

    Go back to your API keys page. Spent and Last used change after every request, so you can see the connection working and what it costs.

    Open my API keys
    Real screenshotUnbound AI, local development buildClick to enlarge

Advanced

Terminal commands and file details. You do not need any of this to follow the steps above.

OpenTerminal version (CLI)

The terminal version reads the same file. Give it the key through an environment variable instead of typing it in the app: choose Environment variable in the generator above, save the file in your project folder or in the settings folder, then run OpenCode. We ran these commands on OpenCode 2.4.1 (@opencode/cli) and 1.19.6 (opencode-ai).

macOS and Linux
export UNBOUND_API_KEY="<your key>"
opencode run "Explain what this project does" -m unbound/<model-id>
Windows (PowerShell)
$env:UNBOUND_API_KEY = "<your key>"
opencode run "Explain what this project does" -m unbound/<model-id>
OpenWhere OpenCode looks for the file

For every project: ~/.config/opencode/opencode.json (on Windows, %USERPROFILE%\.config\opencode\opencode.json). For one project only: opencode.json in that project’s folder. Version 2 calls the section providers and version 1 calls it provider; a file in the wrong layout is the usual reason a provider does not show up.

If something goes wrong

Unbound AI does not appear when I search for it (version 2)

OpenCode has not read the file. Check that it is named exactly opencode.json, that it is in the settings folder from step 5, and that you closed and reopened OpenCode. When it is read, Settings → Providers lists Unbound AI with the label Config.

Real screenshotOpenCode 2.4.1Click to enlarge
My Unbound models are missing from the model list

In Settings → Models, make sure the switch next to each model under Unbound AI is on.

Real screenshotOpenCode 2.4.1Click to enlarge
There is no Custom provider in my Providers list

That form exists in version 1 only. On version 2, follow the “Desktop app, version 2” steps: the provider comes from the file.

Real screenshotOpenCode 1.19.6Click to enlarge
It answers questions but never edits files or runs commands

The model you chose does not support tools. Pick one marked Tools on the models page, download the file again and replace the old one.

It says the API key is invalid or unauthorized

The key was pasted incompletely or has been revoked. Create a new one on your API keys page and paste it again. Keys start with ub_.

Real screenshotUnbound AI, local development buildClick to enlarge
It stops with a message about credits or a spending limit

Your balance is empty or the key reached its own limit. The API keys page shows what each key has spent next to its limit.

Real screenshotUnbound AI, local development buildClick to enlarge

What we tested

Checked on November 24, 2026. “Verified” covers what is listed here and nothing more.

Worked

  • OpenCode 2.4.1: provider from the config file, key typed in the app, model selection, a streamed answer and a tool call (Glob), in the app interface and in the terminal version.
  • OpenCode 1.19.6: provider added through the Custom provider form, model selection, a streamed answer and a tool call, in the app interface and in the terminal version.
  • Usage billing: each request appeared under its key on Unbound with its cost.
  • The Desktop 2.4.1 download, unpacked and launched: it created the settings folder used in step 5 and bundles engine 2.4.1, the version we tested.

Not tested

  • We drove OpenCode’s interface in a browser, served by the same version’s own server, not inside the Desktop window. The Desktop app blocks outside control in its release build, so the pictures show the app’s screens without its window frame.
  • macOS and Linux. The steps were run on Windows 11; folder locations for the other systems come from OpenCode’s documentation.
  • A live model. Until a provider route is authorized, the checks run against Unbound’s simulated development model, which follows the real request, streaming, tool-call and billing paths.