Skip to main content
OpenCode is an open-source coding assistant that works across terminals, IDEs, and desktop apps. It supports automatic LSP setup, multiple parallel sessions, and session sharing for collaboration or debugging.

Prerequisites

Before starting, ensure you have:
  • A SambaCloud account and API key
  • Node.js 18 or later (if installing via npm)

Installation and setup

1

Install OpenCode

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

Open the web UI

opencode web
3

Add a custom provider

Go to Settings > Providers and click to add a new custom provider.
OpenCode settings showing the Providers section
4

Configure SambaNova credentials

Enter the following details:
  • URL: https://api.sambanova.ai/v1
  • API Key: Your SambaCloud API key
  • Model Name: For example, Llama-4-Maverick-17B-128E-Instruct
Get your API key from the SambaCloud portal.
OpenCode provider configuration form with SambaNova credentials
5

Start using SambaNova models

You can now use SambaNova models in your OpenCode workflows.
OpenCode chat interface using a SambaNova model

Additional resources