Tool Integrations
Guides for integrating MyTokenGate with popular AI tools and platforms.
AI Code Editors
Claude Code
AI-powered terminal coding assistant from Anthropic.
Cursor
AI-first code editor with built-in AI assistance.
Cline
Autonomous coding agent for VS Code.
Hermes
Self-improving AI agent framework by Nous Research.
OpenClaw
Open-source multi-platform personal AI assistant framework.
Chat Applications
Chatbox
Cross-platform desktop chat application.
ChatHub
Browser extension for multiple AI chatbots.
SillyTavern
AI chat frontend with character customization.
Platforms
Dify
LLM application development platform.
Base URL Configuration Guide
Different tools require different Base URL formats. Refer to the table below:
| Tool | Base URL | Notes |
|---|---|---|
| OpenAI SDK | https://gateway.mytokengate.com/v1 | SDK appends /chat/completions |
| Anthropic SDK | https://gateway.mytokengate.com/v1 | SDK appends /messages |
| Claude Code | https://gateway.mytokengate.com | Tool auto-adds /v1/messages |
| Continue (VSCode) | https://gateway.mytokengate.com | Tool auto-adds version path |
| Cline (VSCode) | https://gateway.mytokengate.com | Tool auto-adds version path |
| LangChain | https://gateway.mytokengate.com/v1 | Passes directly to SDK |
| Cursor IDE | https://gateway.mytokengate.com/v1 | OpenAI-compatible endpoint |
| Hermes Agent | https://gateway.mytokengate.com/v1 | Use custom provider config |
| OpenClaw | https://gateway.mytokengate.com/v1 | Custom provider config |
| curl / HTTP | https://gateway.mytokengate.com/v1 | Use full path in request |
Configuration Rules
- If the tool mentions “OpenAI-compatible” or uses official SDKs → include
/v1 - If the tool is an AI assistant plugin (Continue, Cline, Claude Code) → omit
/v1
Protocol Selection Guide
MyTokenGate Gateway supports multi-protocol access with internal protocol conversion. Using the model’s native protocol provides the best compatibility:
| Model Series | Native Protocol | Recommended Configuration |
|---|---|---|
| Claude | Anthropic | Use Anthropic SDK or Anthropic provider settings |
| GPT | OpenAI | Use OpenAI SDK or OpenAI Compatible settings |
| Gemini | OpenAI | Use OpenAI Compatible settings |
| DeepSeek | OpenAI | Use OpenAI Compatible settings |
| Chinese Models | OpenAI | Use OpenAI Compatible settings |
Why choose native protocol?
- Better feature compatibility (e.g., Claude’s extended thinking)
- Less parameter conversion overhead
- More complete error messages
- More stable performance
Tool-Specific Configuration Examples
Claude Code
Add to your settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://gateway.mytokengate.com",
"ANTHROPIC_API_KEY": "sk-your-api-key-here"
}
}Note: Do NOT include /v1
Continue (VSCode)
Add to your config.json:
{
"models": [{
"title": "MyTokenGate Claude",
"provider": "anthropic",
"apiBase": "https://gateway.mytokengate.com",
"apiKey": "tg-your-api-key"
}]
}Note: Use apiBase without /v1
Cline (VSCode)
Add to settings:
{
"api": {
"provider": "anthropic",
"baseUrl": "https://gateway.mytokengate.com",
"apiKey": "tg-your-api-key"
}
}Note: Do NOT include /v1
Cursor IDE
Open Settings → Models:
Base URL: https://gateway.mytokengate.com/v1
API Key: tg-your-api-keyNote: Include /v1 for OpenAI format
Hermes Agent
Edit ~/.hermes/cli-config.yaml:
model:
default: "claude-opus-4-6"
provider: "custom"
base_url: "https://gateway.mytokengate.com/v1"
api_key: "tg-your-api-key"OpenClaw
Edit ~/.openclaw/openclaw.json:
{
models: {
providers: {
"mytokengate": {
baseUrl: "https://gateway.mytokengate.com/v1",
apiKey: "tg-your-api-key",
api: "openai-completions",
},
},
},
agents: { defaults: { model: { primary: "mytokengate/claude-opus-4-6" } } },
}OpenAI SDK
from openai import OpenAI
client = OpenAI(
base_url="https://gateway.mytokengate.com/v1",
api_key="tg-your-api-key"
)Anthropic SDK
from anthropic import Anthropic
client = Anthropic(
base_url="https://gateway.mytokengate.com/v1",
api_key="tg-your-api-key"
)