TutorialsQuickstartAPI Reference

Setup guides for tools and automation workflows.

How to Use Y with Cursor

Configure Cursor against one endpoint so setup and review stay aligned with the rest of your team tooling.

Step 1: Get Your API Key

  1. Visit the dashboard
  2. Sign up or log in
  3. Go to API Keys -> Create New Key
  4. Copy the key

Step 2: Configure Cursor

Method A: Via Cursor Settings UI

  1. Open Cursor
  2. Press Cmd+, on macOS or Ctrl+, on Windows/Linux
  3. Search for OpenAI
  4. Set OpenAI API Base URL to the value below
  5. Set OpenAI API Key to your Y key
https://api.y.tokshub.com/v1

Method B: Via settings.json

{
  "openai.apiBaseUrl": "https://api.y.tokshub.com/v1",
  "openai.apiKey": "sk-your-key"
}

Step 3: Verify

Open a file, use Cmd+K or Ctrl+K, and send a simple prompt. Then check your dashboard to confirm routing.

Model Recommendations

TaskModel TierWhy
Quick edits, autocompleteFast / mini modelLow latency, low cost
Code generationBalanced frontier modelBest code quality per dollar
Complex refactoringMost capable frontier modelHandles large context and reasoning

Call GET /v1/models with your API key for the current list of available model IDs.

Troubleshooting

  • Model not found - Call GET /v1/models for the current list of available models.
  • Auth failed - Verify your Y key is correct.
  • Timeout - Check status.