Skip to Content
WikiTools IntegrationOverview

Tool Integrations

Guides for integrating MyTokenGate with popular AI tools and platforms.

Model Context Protocol

MCP

How MCP-capable clients use MyTokenGate as the model backend while running MCP servers on your side.

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.

Codex CLI

OpenAI’s official terminal coding assistant.

Aider

AI pair programming in the terminal; reads and writes your code and commits to Git.

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.

Cherry Studio

Cross-platform desktop AI client with custom OpenAI-compatible providers.

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
Codex CLIhttps://gateway.mytokengate.com/v1Custom provider in config.toml
Aiderhttps://gateway.mytokengate.com/v1Set OPENAI_API_BASE, prefix model with openai/
Cherry Studiohttps://gateway.mytokengate.com/v1OpenAI-type custom provider
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

Configuration Examples

Each integration has its own page with complete setup steps — follow the links above. The examples here cover the generic SDKs plus Continue, which does not have a dedicated page yet.

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

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