OpenAI SDK-Compatible Tools

How to configure Cursor, Windsurf, Continue and other OpenAI SDK-compatible tools

Any AI coding tool compatible with the OpenAI SDK (Cursor, Windsurf, Continue, Aider, etc.) can switch to TokenLink by changing the Base URL.

General setup

All OpenAI SDK-compatible tools support changing the base_url. Just point it at TokenLink:

# Python OpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://tokenlink.stelarx.ai/openai",
    api_key="tl-xxxxxxxxxxxxxxxx"
)
// JavaScript OpenAI SDK
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://tokenlink.stelarx.ai/openai',
  apiKey: 'tl-xxxxxxxxxxxxxxxx'
})

Per-tool setup

Cursor

In Cursor Settings → Models → add a custom API:

  • Base URL: https://tokenlink.stelarx.ai/openai
  • API Key: tl-xxxxxxxxxxxxxxxx

Windsurf

In Windsurf settings:

  • Provider: OpenAI Compatible
  • Base URL: https://tokenlink.stelarx.ai/openai
  • API Key: tl-xxxxxxxxxxxxxxxx

Aider

export OPENAI_API_BASE="https://tokenlink.stelarx.ai/openai"
export OPENAI_API_KEY="tl-xxxxxxxxxxxxxxxx"

# Use a specific model
aider --model openai/gpt-5

Continue (VS Code)

In ~/.continue/config.json:

{
  "models": [{
    "title": "TokenLink - GPT-5",
    "provider": "openai",
    "model": "gpt-5",
    "apiBase": "https://tokenlink.stelarx.ai/openai",
    "apiKey": "tl-xxxxxxxxxxxxxxxx"
  }]
}