Tokaify APITokaify API
API Reference
Scenario Examples

VS Code (Cline Example)

VS Code integration guide for Tokaify

Why this guide uses Cline as the example

VS Code itself is only the editor. The actual model requests are sent by extensions. To make this guide concrete and easy to follow, it uses Cline as the example because it supports OpenAI-compatible providers directly.

If you are using similar extensions such as Roo Code or Continue, the same mapping still applies: the important fields are Provider, Base URL, API Key, and Model.

Step 1: Create a key in Tokaify

  1. Open Tokaify and sign in.
  2. Go to Token Management.
  3. Click Add Token to create a new token.
  4. Click Copy Secret to get the full sk-... value.

Also keep these two fixed values in mind:

Base URL: https://api.tokaify.com/v1
Provider: OpenAI Compatible

Step 2: Parameter mapping

Extension fieldValueNotes
API ProviderOpenAI CompatibleSome extensions may show this as OpenAI-compatible
Base URL / OpenAI Base URL / Endpointhttps://api.tokaify.com/v1/v1 is required
API Keysk-...Use the full secret
ModelSelect a model available to your accountDo not enter a model your account cannot access

Step 3: Configure it in VS Code

Start with:

  1. VS Code
  2. Extensions Marketplace
  3. Search for and install Cline
  4. After installation, open the Cline panel from the sidebar

Install Cline from the VS Code extensions marketplace

When you open Cline for the first time, choose Bring my own API key, then click Continue.

Choose Bring my own API key

Fill in Cline's common fields

Cline fieldValue
API ProviderOpenAI Compatible
Base URLhttps://api.tokaify.com/v1
API Keysk-your-full-secret
ModelSelect a model available to your account

Recommended order:

  1. Set API Provider to OpenAI Compatible
  2. Enter Base URL = https://api.tokaify.com/v1
  3. Paste the full API Key
  4. Choose the model
  5. If the extension provides buttons such as Verify, Test, or Save, verify first and then save

Fill in the Cline provider configuration

If you are not using Cline

Other VS Code extensions that support OpenAI-compatible APIs usually follow the same mapping:

Generic field nameValue
Provider / API ProviderOpenAI Compatible
Base URL / API Base / Endpointhttps://api.tokaify.com/v1
API Key / OpenAI API Keysk-...
ModelSelect a model available to your account

Step 4: Verify the setup

After saving, send a simple prompt in the extension, for example:

First output "Tokaify is configured successfully", then list the top-level directories of the current project.

If the extension returns a normal response, it is successfully calling the model through Tokaify.

FAQ

Why can Cline work while some other VS Code extensions may not

Different extensions support different provider types. As long as the extension supports an OpenAI-compatible API and lets you customize the Base URL, it can usually connect to Tokaify.

What should I do if I get 401 or 403

Check in this order:

  1. Whether the API key is complete and still includes the sk- prefix
  2. Whether the token is disabled, expired, or out of balance
  3. Whether the selected model is allowed by that token
  4. Whether an IP restriction is blocking the request

Should I use https://api.tokaify.com or https://api.tokaify.com/v1

For VS Code extensions, the model API endpoint should usually be:

https://api.tokaify.com/v1

How is this guide?

Last updated on