Skip to main content
Cline is an open-source AI coding assistant for Visual Studio Code that streamlines development workflows, provides account management features, and supports multiple LLM providers including SambaNova. This guide shows you how to integrate SambaCloud LLMs with the Cline VS Code extension.

Prerequisites

Setup

1

Open Cline in VS Code

Launch VS Code and open the Cline panel from the sidebar.
Cline panel in VS Code sidebar
2

Configure SambaNova as the API provider

  1. Click the settings icon in the Cline panel.
  2. In the API Provider dropdown, select SambaNova.
  3. Enter your SambaCloud API key.
  4. Choose a model from the Model dropdown (e.g., MiniMax-M2.7).
Cline API provider settings with SambaNova selected
  1. Click Done to save.

Usage

Once configured, you can start interacting with Cline using SambaNova models.
  • Open a new task in the Cline panel.
  • Provide a prompt describing what you want to build.
  • Review the actions Cline proposes.
  • Approve each step before Cline executes file edits or terminal commands.
You can monitor token usage and session cost in the Cline panel’s top bar.

Troubleshooting

  • Verify your API key is correct and active in the SambaCloud portal
  • Ensure you selected SambaNova in the API Provider dropdown
  • Try removing and re-entering your API key
  • Regenerate your API key in the SambaCloud portal
  • Verify the key was copied correctly without extra spaces or line breaks
  • Check your internet connection
  • Confirm your SambaCloud account is active
  • Re-open the Cline settings and re-save your configuration
If the SambaNova provider fails to connect or a model is not listed in the dropdown, use Cline’s OpenAI Compatible provider as a fallback:
  1. In the API Provider dropdown, select OpenAI Compatible.
  2. Set Base URL to https://api.sambanova.ai/v1.
  3. Enter your SambaCloud API key.
  4. In the Model ID field, type the model name exactly as listed in the SambaCloud portal (for example, MiniMax-M2.7).

References