> ## Documentation Index
> Fetch the complete documentation index at: https://docs-preprod.sambanova.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# RooCode

RooCode is an AI-powered autonomous coding agent that lets you create and use specialized roles to accelerate development directly within your code editor.

This guide shows you how to integrate SambaCloud LLMs with the RooCode VS Code extension.

## **Prerequisites**

Before you begin, ensure you have:

* A free account on [SambaCloud](https://cloud.sambanova.ai/).
* [Visual Studio Code](https://code.visualstudio.com/) installed.
* The [RooCode extension](https://docs.roocode.com/getting-started/installing) installed from the VS Code extensions panel.

## **Setup**

Getting started with SambaNova’s LLM in RooCode is quick and easy. Follow the steps below to connect SambaCloud models.

1. Open RooCode In VS Code

   * Launch VS Code.
   * Open the RooCode panel from the sidebar.

   <img src="https://mintcdn.com/s2gp1o6hatjv6y4/keaqBZL_C97OATb-/images/docs/integrations/roocode/roocode1.png?fit=max&auto=format&n=keaqBZL_C97OATb-&q=85&s=a17560d8f7bda66fa7ccc9e4860435ea" alt="" width="1868" height="1031" data-path="images/docs/integrations/roocode/roocode1.png" />

2. **Add SambaCloud API Key**
   * Select `SambaNova` in the API Provider dropdown.
   * Set your SambaCloud API key in the API key field
   * Select a model to use in the Model dropdown (e.g., `Llama-4-Maverick-17B-128E-Instruct`)
   * Click on the `Let's go!` button'

## **Usage**

1. **Select the Agent role**

Select in the bottom right panel the agent role you want to use from:

* architect (for solution design)
* code (for writing code)
* ask (for answering questions)
* debug (for troubleshooting)
* orchestrator (for coordinating multiple tasks)

<Note>
  Additional agent roles are available in the `Mode Marketplace` to customize your workflow.
</Note>

2. **Code with SambaCloud in RooCode**

* Prompt the agent with your task.
* Review the proposed actions.
* Approve the actions you want the agent to execute.

<img src="https://mintcdn.com/s2gp1o6hatjv6y4/keaqBZL_C97OATb-/images/docs/integrations/roocode/roocode2.png?fit=max&auto=format&n=keaqBZL_C97OATb-&q=85&s=67454b604294ca9d50cbd65c5d0554d2" alt="" width="1712" height="1460" data-path="images/docs/integrations/roocode/roocode2.png" />

<Note>
  You can monitor token usage and pricing for the current session in the RooCode panel's top bar.
</Note>

Your SambaCloud models are now powering RooCode agents, giving you inference speeds up to 5× faster than typical GPU providers. If you need help or encounter any issues, contact your SambaNova support team.
 
