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

# Cline & Roo Code Integration

> Configure Cline and Roo Code autonomous coding agents in VS Code using Neosantara.

[Cline](https://cline.bot/?utm_source=neosantara-docs\&utm_medium=referral) and [Roo Code](https://roocode.com/?utm_source=neosantara-docs\&utm_medium=referral) are autonomous AI coding agent extensions for Visual Studio Code that read repositories, modify files, run terminal commands, and call MCP tools.

## Method 1: Model Provider (OpenAI-Compatible)

Configure Cline to route inference through Neosantara models:

**1. Open Extension Settings**

Open the Cline or Roo Code panel in the VS Code sidebar and click the **Settings** gear icon.

**2. Select API Provider**

In the **API Provider** dropdown, select **OpenAI Compatible**.

**3. Enter Gateway Credentials**

* **Base URL**: `https://api.neosantara.xyz/v1`
* **API Key**: Your Neosantara API key (`nsk_...`)
* **Model ID**: `deepseek-v4.1-flash`

**4. Save Configuration**

Click **Done** to save. Start a new chat session to verify the connection.

## Method 2: Adding Neosantara MCP Server

Cline supports the Model Context Protocol to expand agent capabilities with extra tools.

**1. Open MCP Servers Tab**

In the Cline settings panel, click the **MCP Servers** tab and select **Configure MCP Servers**.

**2. Update Configuration JSON**

Open `cline_mcp_settings.json` and insert the `neosantara` entry:

```json theme={"theme":{"light":"catppuccin-latte","dark":"ayu-dark"}}
{
  "mcpServers": {
    "neosantara": {
      "url": "https://api.neosantara.xyz/v1/mcp",
      "headers": {
        "x-api-key": "nsk_mcp_your_key_here"
      }
    }
  }
}
```

**3. Save and Verify**

Save the file. The server status in the MCP tab will display a green indicator, listing available Neosantara tools (`chat`, `list-models`, `generate-image`).

> [!NOTE]
>
> MCP tool connections require a dedicated API key prefixed with `nsk_mcp_`.

## Next Steps

| Task | Guide |
| :- | :- |
| Configure Claude Code | [Claude Code Integration](https://docs.neosantara.xyz/en/agents/claude-code.md) |
| Configure OpenCode | [OpenCode Integration](https://docs.neosantara.xyz/en/agents/opencode.md) |
| Configure Cursor | [Cursor Integration](https://docs.neosantara.xyz/en/agents/cursor.md) |
| Review MCP Keys | [MCP API Keys](https://docs.neosantara.xyz/en/agents/mcp-keys.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.