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
- Open VS Code
- Go to Extensions (Ctrl/Cmd + Shift + X)
- Search for “Cline” and install it
- After installation, the Cline icon will appear in the sidebar
Configure MyTokenGate
Method 1: Using Anthropic Provider (Recommended)
- In VS Code, open Command Palette with Ctrl/Cmd + Shift + P
- Type “Cline” and select to open Cline
- Click the settings icon in the Cline panel
- 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
- In Cline settings, select “OpenAI Compatible”
- Configure the following:
- Base URL:
https://gateway.mytokengate.com/v1 - API Key: Get it from MyTokenGate Dashboard
- Model ID: Choose from Model List
- Base URL:
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"Related Links
Last updated on