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

# Roo Code

> How to configure the Roo Code extension to use ZnapAI.

## Overview

Roo Code is an advanced AI coding assistant that integrates directly into your IDE. By connecting Roo Code to ZnapAI, you gain access to our extensive model selection seamlessly.

## Prerequisites

* Ensure you have the **Roo Code** extension installed in your IDE.

<Frame>
  <img src="https://mintcdn.com/znapai/bcR0dYQVIgXQaCFj/images/integrations/roo-code.png?fit=max&auto=format&n=bcR0dYQVIgXQaCFj&q=85&s=31523b0a6b6973ae1ce2b28374d0fe76" alt="Roo Code Extension" width="1081" height="990" data-path="images/integrations/roo-code.png" />
</Frame>

## Configuration Steps

Follow these steps to configure the extension:

1. Open Roo Code settings.
2. Select **OpenAI Compatible** as the API Provider.
3. Enter the **Base URL**: `https://api.znapai.com/`
4. Enter your **ZnapAI API Key**.
5. Select your desired model.

<Frame>
  <img src="https://mintcdn.com/znapai/bcR0dYQVIgXQaCFj/images/integrations/roo-code-configuration.png?fit=max&auto=format&n=bcR0dYQVIgXQaCFj&q=85&s=c998cc9565308531b45d4ca5395fbe38" alt="Roo Code Settings Configuration" width="272" height="306" data-path="images/integrations/roo-code-configuration.png" />
</Frame>

## Base URL

Use the following Base URL for OpenAI compatible providers:

```text theme={null}
https://api.znapai.com/
```

## API Key Setup

You can find your API key in the ZnapAI dashboard under the API Keys section. Paste it into the API Key field in Roo Code.

## Example Configuration

<CodeGroup>
  ```json settings.json theme={null}
  {
    "rooCode.apiProvider": "OpenAI Compatible",
    "rooCode.baseUrl": "https://api.znapai.com/",
    "rooCode.apiKey": "sk-znapai-..."
  }
  ```
</CodeGroup>

Once configured, you can start using the Roo Code chat window to interact with ZnapAI models.

<Frame>
  <img src="https://mintcdn.com/znapai/bcR0dYQVIgXQaCFj/images/integrations/roo-code-chat-window.png?fit=max&auto=format&n=bcR0dYQVIgXQaCFj&q=85&s=808a930f5e9b49b2b0ef79a175ae8008" alt="Roo Code Chat Window" width="339" height="844" data-path="images/integrations/roo-code-chat-window.png" />
</Frame>

## Troubleshooting

* **Connection Error**: Ensure there you enter correct Base URL.
* **Authentication Failed**: Verify that your API Key is active in the ZnapAI dashboard.

## Notes

* Roo Code supports all models listed under the ZnapAI OpenAI-compatible endpoint.
