Skip to Content

Using with Cursor - MyTokenGate

Cursor  is an AI-first code editor built on VS Code with powerful AI assistance built-in. By integrating with MyTokenGate, you can use various powerful AI models in Cursor.

Install Cursor

  1. Visit Cursor Website  to download
  2. Supports Windows, macOS, and Linux
  3. After installation, you can import settings and extensions from VS Code

Configure MyTokenGate

Cursor connects to a compatible third-party service by overriding the OpenAI base URL:

  1. Open Cursor, press Ctrl/Cmd + Shift + J to open settings
  2. Go to the Models panel and expand OpenAI API Key
  3. Paste the API key from your MyTokenGate Dashboard 
  4. Enable Override OpenAI Base URL and enter https://gateway.mytokengate.com/v1
  5. Add the model names you want to use (see “Model Selection” below), then save and verify

.cursorrules and the newer .cursor/rules/*.mdc (Project Rules) provide prompt guidance to the AI; they do not configure the model provider — the provider can only be overridden in the settings above.

Model Selection

In Cursor settings, select the model you want to use. Supported models include:

  • Claude series: claude-opus-4-8, claude-sonnet-5, claude-haiku-4-5
  • GPT series: gpt-5.6-sol, gpt-5.4, gpt-5.5
  • Other models: See Model List 

Usage Tips

Chat Mode

  • Press Ctrl/Cmd + L to open AI Chat
  • Use @ symbol to reference files or code
  • Supports Markdown format

Inline Edit

  • Select code and press Ctrl/Cmd + K for inline editing
  • Ask AI to modify, refactor, or explain code

Code Generation

  • Press Ctrl/Cmd + I to generate code
  • Describe the functionality you want, AI will generate the code

Using Document Context

Cursor supports loading document context via llms.txt protocol:

  1. Press Ctrl/Cmd + L to open Chat
  2. Type @ and select “Docs”
  3. Add MyTokenGate documentation URL: https://docs.mytokengate.com
  4. Now you can reference documentation in conversations

Troubleshooting

Connection Issues

Verify Base URL is configured correctly:

  • Should be https://gateway.mytokengate.com/v1 (including /v1)

Authentication Error

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