Skip to Content
WikiTools IntegrationOverview

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:

ToolBase URLNotes
OpenAI SDKhttps://gateway.mytokengate.com/v1SDK appends /chat/completions
Anthropic SDKhttps://gateway.mytokengate.com/v1SDK appends /messages
Claude Codehttps://gateway.mytokengate.comTool auto-adds /v1/messages
Continue (VSCode)https://gateway.mytokengate.comTool auto-adds version path
Cline (VSCode)https://gateway.mytokengate.comTool auto-adds version path
LangChainhttps://gateway.mytokengate.com/v1Passes directly to SDK
Cursor IDEhttps://gateway.mytokengate.com/v1OpenAI-compatible endpoint
Hermes Agenthttps://gateway.mytokengate.com/v1Use custom provider config
OpenClawhttps://gateway.mytokengate.com/v1Custom provider config
curl / HTTPhttps://gateway.mytokengate.com/v1Use 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 SeriesNative ProtocolRecommended Configuration
ClaudeAnthropicUse Anthropic SDK or Anthropic provider settings
GPTOpenAIUse OpenAI SDK or OpenAI Compatible settings
GeminiOpenAIUse OpenAI Compatible settings
DeepSeekOpenAIUse OpenAI Compatible settings
Chinese ModelsOpenAIUse 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-key

Note: 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" )
Last updated on