Skip to Content

Using in Cline - MyTokenGate

Cline  is a powerful VS Code autonomous coding agent that can automatically complete coding, debugging, file operations, and other tasks.

Install Cline

  1. Open VS Code
  2. Go to Extensions (Ctrl/Cmd + Shift + X)
  3. Search for “Cline” and install it
  4. After installation, the Cline icon will appear in the sidebar

Configure MyTokenGate

  1. In VS Code, open Command Palette with Ctrl/Cmd + Shift + P
  2. Type “Cline” and select to open Cline
  3. Click the settings icon in the Cline panel
  4. Configure the following:
    • API Provider: Select “Anthropic”
    • Base URL: https://gateway.mytokengate.com
    • API Key: Get it from MyTokenGate Dashboard 
    • Model: Choose from Model List , e.g., claude-sonnet-4-6

Note: When using Anthropic provider, Base URL should not include /v1

Method 2: Using OpenAI Compatible Provider

  1. In Cline settings, select “OpenAI Compatible”
  2. Configure the following:

Note: When using OpenAI Compatible provider, Base URL must include /v1

Usage Tips

  • Use specific, clear instructions for better results
  • For complex tasks, let Cline complete them step by step
  • Regularly review Cline’s actions to ensure they meet expectations
  • Monitor usage in MyTokenGate Console 

Troubleshooting

Connection Failed

Check if Base URL is correctly configured:

  • Anthropic provider: https://gateway.mytokengate.com (without /v1)
  • OpenAI Compatible provider: https://gateway.mytokengate.com/v1 (with /v1)

Authentication Error

Verify your API Key is correct. Test in terminal:

curl https://gateway.mytokengate.com/v1/models \ -H "Authorization: Bearer YOUR_API_KEY"
Last updated on