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

# Cline & Roo Code with Global AI: Coding Agent Guide

> Configure Cline, Roo Code, and other coding Agent extensions with Global AI in VS Code, Cursor, and Trae, including limits.

Coding Agent extensions like Cline and Roo Code can connect to Global AI directly from your editor. Using them in place of the native Cursor or Trae agents is a common pattern.

<Warning>
  Agent tools burn through a lot of tokens. Before you start, read the [cost notes in the integration overview](/en/clients/overview#a-note-on-claude-model-cost) and watch consumption in the [Logs](/en/usage/logs).
</Warning>

## Cursor and Trae limitations

<CardGroup cols={2}>
  <Card title="Cursor">
    Third-party APIs (including Global AI) only support Ask mode. **The native Agent cannot be used.** If you need Agent, install [Claude Code](/en/clients/claude-code), Cline, or Roo Code inside Cursor.
  </Card>

  <Card title="Trae">
    Trae does not support third-party APIs, so **you cannot enter a Global AI key directly in the model configuration**. If you need Agent, install [Claude Code](/en/clients/claude-code).
  </Card>
</CardGroup>

## Cline

Cline is one of the most popular coding Agent extensions for VS Code and Cursor.

<Steps>
  <Step title="Install Cline">
    Search for **Cline** in the VS Code or Cursor extension marketplace and install the first result.
  </Step>

  <Step title="Configure the provider">
    Open the Cline sidebar, go to settings, and fill in:

    * **API Provider**: `Anthropic`
    * **Base URL**: `https://globalai.vip`
    * **API Key**: paste your `sk-` token
    * **Model ID**: for example `claude-sonnet-4-5`
  </Step>

  <Step title="Test">
    Click **Let's go!** to send a test message. A normal reply confirms the integration.
  </Step>
</Steps>

## Roo Code

Roo Code's configuration is almost identical to Cline. It is another popular Agent extension for Cursor and VS Code.

<Steps>
  <Step title="Configure the Anthropic provider">
    Same as Cline:

    * **API Provider**: `Anthropic`
    * **Base URL**: `https://globalai.vip`
    * **API Key**: `sk-` token
    * **Model**: for example `claude-sonnet-4-5`
  </Step>

  <Step title="Use domestic models (optional)">
    To call DeepSeek or other domestic models in Roo Code, switch **API Provider** to **OpenAI Compatible**, set **Base URL** to `https://globalai.vip/v1`, and enter the domestic model ID as usual.
  </Step>
</Steps>

## FAQ

<AccordionGroup>
  <Accordion title="Can I use Cursor's native Agent?">
    Not directly. Install Claude Code, Cline, or Roo Code inside Cursor as a replacement.
  </Accordion>

  <Accordion title="Claude cost grows fast">
    Agents resend historical tokens every round, and long sessions or large codebases amplify this. Read the [Claude cost note](/en/clients/overview#a-note-on-claude-model-cost) and watch spend in the [Logs](/en/usage/logs).
  </Accordion>

  <Accordion title="Connection failure or timeout">
    Turn off all proxies and circumvention tools. Global AI does not require a proxy from mainland China.
  </Accordion>
</AccordionGroup>


## Related topics

- [Global AI FAQ: Accounts, Tokens, Calls, and Billing](/en/faq.md)
- [Global AI Client Integrations: Parameters and Selection](/en/clients/overview.md)
- [OpenCode & CC-Switch with Global AI: Integration Guide](/en/clients/opencode.md)
- [AGENTS](/AGENTS.md)
- [Claude Code with Global AI: CC Switch or Manual Setup](/en/clients/claude-code.md)
