TutorialsQuickstartAPI Reference

Setup guides for tools and automation workflows.

How to Use ToksHub 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 KeysCreate New Key
  4. Copy the key

Step 2: Configure Cursor

Method A: Via Cursor Settings UI

  1. Open Cursor
  2. Press Cmd+, (macOS) or Ctrl+, (Windows/Linux)
  3. Search for "OpenAI"
  4. Set OpenAI API Base URL to:
    https://api.tokshub.com/v1
  5. Set OpenAI API Key to your ToksHub key

Method B: Via settings.json

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

Step 3: Verify

  1. Open a file in Cursor
  2. Use Cmd+K (or Ctrl+K) to open the AI command bar
  3. Type a simple prompt like "Add a comment explaining this function"
  4. Check your dashboard to confirm the request was routed

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
DocumentationBalanced frontier modelGood quality, affordable
Exploration / prototypingBudget modelVery low cost

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 ToksHub key is correct
  • Timeout — Check status
Cursor Setup Guide — ToksHub