📚 目录 / Contents

Cursor

Use TokenHub with Cursor

Cursor is an AI-powered code editor.

⚠️ Note: Cursor’s core features (Composer, Cmd+K) use a private protocol and cannot be replaced. This guide covers chat model replacement only.

Steps

  1. Open Cursor, press Cmd/Ctrl + Shift + J for settings
  2. Go to Models page
  3. Scroll to OpenAI API Key section
  4. Configure:
FieldValue
OpenAI API Keysk-xxxxx
Override OpenAI Base URLhttps://hubwave.ai/v1
  1. Click Verify

Add Custom Models

Top of Models list → Add model → Enter model name (e.g. claude-3-5-sonnet-20241022).

Then disable official models and enable only your custom ones.