2027 integration guide · Evidence checked 20 November 2026

Cline with Plugsky: OpenAI-compatible setup

Cline is a coding agent that runs inside your editor and talks to a model through an API provider you choose. Its “OpenAI Compatible” provider accepts a custom base URL, so Plugsky is four fields away: provider, URL, key and model. This guide gives the exact settings, a smoke test you can run before the agent touches a file, the errors that actually occur, and the limits that change how you use it.

Short answer. In Cline, open the settings panel and set API Provider to OpenAI Compatible, Base URL to https://api.plugsky.com/v1, API Key to your Plugsky key, and Model to an exact plugsky-* ID such as plugsky-coder. Then set the context window and max output tokens to values your plan allows. No proxy and no custom Cline build are required.

What Cline sends to the model

Cline is not a chat wrapper. It reads files, plans a change, proposes edits and runs commands through a tool loop, and each step is a model request that carries conversation history and tool results. That makes it sensitive to three things a simple chat client can ignore: the context window, the reliability of tool calls, and the latency of every extra turn.

The provider layer is ordinary OpenAI Chat Completions. Cline’s documentation describes the “OpenAI Compatible” provider as the route for any endpoint that implements the OpenAI API standard, with the base URL, key and model ID supplied by the user. That is the same contract the OpenAI-compatible API reference describes, including the parts that are not guaranteed.

Exact Cline settings

Open the Cline settings panel with the gear icon, choose the provider, then fill the fields below. Labels can move between releases; the values do not.

Cline fields and the value to use for Plugsky
Cline fieldValueNotes
API ProviderOpenAI CompatibleNot “OpenAI”. The OpenAI provider targets api.openai.com and does not expose the same base URL field.
Base URLhttps://api.plugsky.com/v1Include /v1. No trailing slash. No /chat/completions suffix.
API KeyYour Plugsky API keyStored by Cline locally. Create a separate key per developer or per machine so one can be revoked alone.
Modelplugsky-coderOr another exact ID from GET /v1/models. A display name is not an ID.
Max Output Tokens8192Safe on every plan: the plan cap is 8K, 16K or 32K, and a model’s own maximum can be lower. Raise it only to the lower of the two.
Context Window262144Matches plugsky-coder. Lower it to your plan input ceiling: 64K on Hobby, 128K on Starter, 256K on Builder.
Image SupportOff for plugsky-coderTurn it on only for vision IDs such as plugsky-vision-fast or plugsky-gemma-4.
Computer UseOff until testedCline describes this as the setting for models with tool/function calling. Enable it only after a tool-call test passes.
Input / Output PriceLeave blankUsed only for Cline’s local cost estimate. Plugsky’s paid plans are flat monthly prices, so there is no per-token rate to enter here.

If your Cline version shows a Verify button, use it after saving. A successful verify proves the host, key and model field were accepted; it does not prove that streaming, tools or long context behave correctly. Those need the smoke tests below.

Host note. This guide uses https://api.plugsky.com/v1, the approved API host. Plugsky’s public documentation also shows https://plugsky.com/v1 in examples. Both responded on 20 November 2026, but pick one host and keep it in every developer’s Cline settings rather than mixing them.

Smoke test before you open a repository

Run one direct request first. If this fails, the problem is configuration, not the agent. The request uses the same host and key Cline will use, and it asks for a short answer so a success is unambiguous.

cURL
curl https://api.plugsky.com/v1/chat/completions \
  -H "Authorization: Bearer $PLUGSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "plugsky-coder",
    "messages": [{"role": "user", "content": "Reply with the single word ready."}],
    "max_tokens": 16
  }'

Then test the path Cline depends on: a tool call. Cline’s edits and terminal commands are tool invocations, so a model that chats well but returns malformed arguments will fail in Act mode. This Python test uses the official OpenAI SDK and a trivial tool schema.

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_PLUGSKY_API_KEY",
    base_url="https://api.plugsky.com/v1",
)

tools = [{
    "type": "function",
    "function": {
        "name": "read_file",
        "description": "Read a file from the workspace.",
        "parameters": {
            "type": "object",
            "properties": {"path": {"type": "string"}},
            "required": ["path"],
        },
    },
}]

response = client.chat.completions.create(
    model="plugsky-coder",
    messages=[{"role": "user", "content": "Read src/main.py before editing it."}],
    tools=tools,
    tool_choice="auto",
)

print(response.choices[0].message.tool_calls)

A returned tool_calls array with a JSON object in function.arguments is the signal you need. If the model answers in prose instead, the tool schema was ignored or the model does not support function calling in that configuration. Try another coding ID before you blame Cline.

Which Plugsky model fits a coding agent

Model choice matters more in an agent than in chat, because every turn resends context and every bad tool call costs a round trip. These are reasonable starting points; the catalogue is the authority.

Plugsky model IDs for common Cline workloads
WorkloadStart withWhy
Everyday edits and refactorsplugsky-coderA coding-oriented ID with a 262,144-token context. Start here.
Hard debugging or architectureplugsky-coder-ultra, plugsky-frontierSame serving class, intended for harder reasoning. Test tool-call reliability before switching.
Large-repo contextplugsky-longctxLong-context ID for prompts that carry many files. Watch the plan input ceiling.
Cheap, high-volume loopsplugsky-microFree-tier eligible and fast. Use it for simple edits, not multi-step refactors.
Screenshot or diagram inputplugsky-vision-fastVision-input model with a 131,072-token context; enable Image Support in Cline.
Non-English code commentsplugsky-mistral-mediumDistinct Mistral engine, 131,072-token context. Useful when multilingual output matters.

Legacy IDs are real IDs, but the name is not the engine. plugsky-kimi, plugsky-deepseek-pro and plugsky-llama4 are served by the same class of model as the frontier aliases, not by the vendors in their names. The model catalogue lists the current mapping, and the API response header x-plugsky-served-model reports what actually served the request.

Error table and fixes

Cline surfaces the provider’s status code and usually a short message. Map the code to the layer before changing settings at random.

Common Cline and Plugsky errors, causes and fixes
SymptomLikely causeFix
401 Invalid API KeyKey missing, revoked or sent to another hostRe-paste the Plugsky key and confirm the base URL points at api.plugsky.com, not OpenAI.
403Key or plan lacks the required scopeCreate a key with the right scope in the dashboard; embeddings are not available on free keys.
404 Model Not FoundWrong model ID, or a base URL that includes the endpoint pathCopy the ID from GET /v1/models and use https://api.plugsky.com/v1 as the base.
400 context lengthConversation plus file context exceeds the model or plan windowLower Cline’s context setting, close large files, start a new task, or move to a longer-context ID and plan.
413Request body too largeReduce attached files or split the task; a single huge file can exceed the body limit before the token limit.
429RPM, concurrency or daily quota exhaustedWait for Retry-After, reduce parallel Cline tasks, or move to a plan with more concurrency.
500, 502, 503Server or upstream failure, sometimes during failoverRetry once with backoff, then check status. Do not keep looping a failing agent run.
Tool call returns proseModel ignored the tool schema or does not support itSwitch to a coding ID, simplify the tool schema, and test outside Cline with the snippet above.

Limits that change how you use Cline

Context is a budget, not a target. Cline resends conversation and tool output on each turn, so a task that starts at 20K tokens can cross 100K before it finishes. Set the context window to what your plan actually allows and start a new task when the agent begins repeating itself. The plan ceilings are 64K input on Hobby, 128K on Starter and 256K on Builder, with Scale advertising 512K while the model window still applies.

Concurrency is per account. Hobby allows 4 concurrent requests at 120 RPM, Starter 6 at 240 RPM, Builder 10 at 600 RPM and Scale 16 at 1,200 RPM. One Cline agent is mostly serial, but two editors, a background script and a CI job share the same account. The 429 usually arrives from the account, not from the model.

Cost display is local. Cline estimates tokens and multiplies by prices you enter. Plugsky’s paid plans are flat monthly prices with no per-token overage on Builder and Scale, so a per-token estimate is not your invoice. Leave the price fields blank and read the plan terms instead.

No prompt-caching contract. Plugsky does not publish cache-control semantics, so do not assume repeated repository context is cached or discounted. Design for the tokens you send, not for a cache hit.

Media is out of scope. The 39-model catalogue is chat, vision input and embeddings. Cline cannot generate images or audio through this endpoint, and the embedding IDs are not chat models.

The endpoint is public by default. Cline runs on the developer’s machine and calls the API over the internet. If source code cannot leave the network, review private AI deployment and confirm whether a VPC endpoint or an air-gapped install is in scope before connecting an editor.

When Cline is the right client — and when it is not

Cline is a good fit when you want an open-source agent inside VS Code, visible tool calls and the ability to swap providers without changing your workflow. It is a poor fit when you need a hosted IDE with its own model routing, or when the team standard is a terminal-only agent. In those cases the OpenAI SDK or another client is a smaller surface to govern.

For teams standardising many tools on one endpoint, the routing and observability problem is separate from the editor choice. The AI gateway overview covers central keys, policy and logging; the migration guide covers the base URL and model-ID changes that apply to every OpenAI-compatible client.

What we did not verify

  • We did not run Cline against Plugsky in this research pass. The settings and field names come from Cline’s official OpenAI Compatible documentation, checked 20 November 2026; the UI can change between releases.
  • We did not benchmark latency, throughput or tool-call accuracy for any model in Cline. No performance claim on this page is a measurement.
  • We did not test Cline’s Computer Use feature, every tool schema or every repository size.
  • We did not review a SOC 2 report. Public material describes SOC 2 readiness; request the current report under NDA and confirm scope and period.
  • We used the API host https://api.plugsky.com/v1 throughout. Plugsky’s public docs also show https://plugsky.com/v1; pick one host and keep it.

Frequently asked questions

Which Cline provider should I choose for Plugsky?

Choose OpenAI Compatible in Cline's API Provider list. It exposes the Base URL, API Key and Model fields that a third-party OpenAI-compatible endpoint needs. Do not choose the OpenAI provider unless you are actually calling api.openai.com.

What base URL goes in Cline?

Enter https://api.plugsky.com/v1 in the Base URL field, including /v1 and without a trailing slash. Cline appends /chat/completions itself. Do not paste the full chat completions URL into the base URL field.

Which model ID should I use in Cline?

For coding agents, start with plugsky-coder, then test plugsky-coder-ultra or plugsky-frontier on harder tasks and plugsky-micro for cheap, high-volume loops. Use the exact ID from GET https://api.plugsky.com/v1/models; OpenAI IDs such as gpt-4o are not served.

Does tool calling work in Cline with Plugsky?

Cline's agent depends on OpenAI-style tool calls, and Plugsky accepts the standard tools schema. Reliability varies by model and by task length, so test Plan and Act modes on a small repository before you let the agent edit production code.

Why does Cline show Model Not Found?

Either the model ID does not exist on Plugsky or the base URL is wrong. Copy the ID from the models endpoint, confirm the host is https://api.plugsky.com/v1, and remember that the embedding IDs are not chat models.

Will Cline's cost display match my Plugsky bill?

No. Cline multiplies its own token estimate by the input and output prices you type into Model Configuration. Plugsky's paid plans are flat monthly prices, not per-token billing, so leave those price fields blank unless your contract states a per-token rate.

Does Cline send my code to Plugsky?

Yes. Cline builds the prompt locally and sends the selected code and conversation context to the API host you configure. If the code cannot leave your network, use a private endpoint or an air-gapped deployment and confirm the scope in writing before you connect an editor.

Related pages

Connect Cline to Plugsky

Start on the free plan with two keys, run the tool-call smoke test, then move to a paid plan when context and concurrency matter.

Start Free → Read the docs

Sources

Cline behaviour below was checked on the linked official documentation on 20 November 2026. Plugsky model and plan facts come from the public catalogue and pricing page. Editor extensions change quickly; recheck the field labels before quoting them.

Official pages used for this guide
SourcePage checkedChecked
Clinedocs.cline.bot — OpenAI Compatible provider20 Nov 2026
Clinegithub.com/cline/cline20 Nov 2026
OpenAIplatform.openai.com — Chat Completions reference20 Nov 2026
Plugskyplugsky.com/models and plugsky.com/pricing20 Nov 2026
Plugskyplugsky.com/docs20 Nov 2026

Last checked 20 November 2026. Plugsky’s canonical plan numbers live at /pricing; this page explains the integration and does not replace the plan terms.