RuntokenDocs

Cline

Revision 1 · Updated 2026-11-12 · 3 min read

Connect Cline’s OpenAI Compatible provider to Runtoken.

Prerequisites#

Before you start, prepare:

  • An installed Cline IDE extension and a test workspace.
  • A Runtoken platform API key.
  • A Chat-compatible model ID with the capabilities your task requires.

Configure the provider#

Open Cline's settings with the gear button and choose the provider. Fill in the connection values below.

SettingValuePurpose
API ProviderOpenAI CompatibleSelects the custom compatible endpoint.
Base URLhttps://api.runtoken.net/v1API prefix; do not append a chat-completion path.
API KeyYOUR_PLATFORM_KEYRuntoken platform credential.
Model IDYOUR_MODEL_IDExact Chat-compatible model identifier.

Replace YOUR_PLATFORM_KEY and YOUR_MODEL_ID with your platform key and model ID from the catalogue. Keep the key in the credential field, not in task prompts or workspace files.

Use advanced model settings only when the values are established for your selected model.

Model settingHow to choose it
Context windowUse the supported model limit; increasing the client value does not enlarge it.
Maximum output tokensStay within the model's output limit.
Image or computer-use capabilitiesEnable only the capabilities supported by the model and route.

Client-side price fields are not platform price configuration. Use Runtoken's request and billing records to check actual usage rather than relying on an editor estimate.

Check a request#

Save the settings, open a new task and send a brief prompt. Locate the corresponding Runtoken request by time, key and model. If the task still uses another provider, check the active task or mode selection before replacing credentials.

Start with Plan mode to discuss a small change, then move to Act when you are ready to edit.

Plan a small changetext
Describe how you would add greeting.py with a greet(name) function.
It should return "Hello, " plus name, or "Hello, friend" for an empty name.
Do not install dependencies or use the network.

Review the plan, switch to Act and ask Cline to implement it. Inspect the proposed tool operations and actual file. Follow up with a request to read the file and explain the empty-name behavior, checking that the tool result is handled successfully.

If your version offers separate model choices for Plan and Act, check both. Testing Plan alone does not establish which provider is used after switching modes.

Tools and permissions#

Cline combines model replies with local tool operations. A successful text request does not establish that every tool or input type is supported.

WorkflowWhat must work
PlanningModel replies and the intended context are available.
File modificationCompatible tool calls, returned results and workspace permissions.
Shell or browser operationsBoth client permission and the selected model's required capabilities.
Long tasksContext handling, model limits and gateway request support.

Keep normal tool approvals during setup. Do not enable broad auto-approval to diagnose an API failure. Runtoken does not convert protocols or grant local filesystem permissions.

Troubleshooting#

Read the error body and inspect the active provider before changing advanced options.

SymptomWhat to check
401Platform key, credential field and inherited task settings.
404 or rejected modelBase URL, exact model ID and selected protocol.
Plan works but Act failsAct's active model and the rejected tool request.
Context or output-limit errorThe actual model limit and Cline's configured values.
Cost estimate differsCompare platform usage records; client estimates are not settlement.
429The specific limit and reset information returned by Runtoken.

Restore and next steps#

Select the previous provider and model in Cline settings to restore your earlier workflow. Remove only the credential and endpoint entries you added.

See OpenAI Chat, Cline's provider settings and Plan & Act.

Was this page helpful?