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 exactplugsky-*ID such asplugsky-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 field | Value | Notes |
|---|---|---|
| API Provider | OpenAI Compatible | Not “OpenAI”. The OpenAI provider targets api.openai.com and does not expose the same base URL field. |
| Base URL | https://api.plugsky.com/v1 | Include /v1. No trailing slash. No /chat/completions suffix. |
| API Key | Your Plugsky API key | Stored by Cline locally. Create a separate key per developer or per machine so one can be revoked alone. |
| Model | plugsky-coder | Or another exact ID from GET /v1/models. A display name is not an ID. |
| Max Output Tokens | 8192 | Safe 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 Window | 262144 | Matches plugsky-coder. Lower it to your plan input ceiling: 64K on Hobby, 128K on Starter, 256K on Builder. |
| Image Support | Off for plugsky-coder | Turn it on only for vision IDs such as plugsky-vision-fast or plugsky-gemma-4. |
| Computer Use | Off until tested | Cline describes this as the setting for models with tool/function calling. Enable it only after a tool-call test passes. |
| Input / Output Price | Leave blank | Used 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 showshttps://plugsky.com/v1in 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 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.
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.
| Workload | Start with | Why |
|---|---|---|
| Everyday edits and refactors | plugsky-coder | A coding-oriented ID with a 262,144-token context. Start here. |
| Hard debugging or architecture | plugsky-coder-ultra, plugsky-frontier | Same serving class, intended for harder reasoning. Test tool-call reliability before switching. |
| Large-repo context | plugsky-longctx | Long-context ID for prompts that carry many files. Watch the plan input ceiling. |
| Cheap, high-volume loops | plugsky-micro | Free-tier eligible and fast. Use it for simple edits, not multi-step refactors. |
| Screenshot or diagram input | plugsky-vision-fast | Vision-input model with a 131,072-token context; enable Image Support in Cline. |
| Non-English code comments | plugsky-mistral-medium | Distinct 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.
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 Invalid API Key | Key missing, revoked or sent to another host | Re-paste the Plugsky key and confirm the base URL points at api.plugsky.com, not OpenAI. |
| 403 | Key or plan lacks the required scope | Create a key with the right scope in the dashboard; embeddings are not available on free keys. |
| 404 Model Not Found | Wrong model ID, or a base URL that includes the endpoint path | Copy the ID from GET /v1/models and use https://api.plugsky.com/v1 as the base. |
| 400 context length | Conversation plus file context exceeds the model or plan window | Lower Cline’s context setting, close large files, start a new task, or move to a longer-context ID and plan. |
| 413 | Request body too large | Reduce attached files or split the task; a single huge file can exceed the body limit before the token limit. |
| 429 | RPM, concurrency or daily quota exhausted | Wait for Retry-After, reduce parallel Cline tasks, or move to a plan with more concurrency. |
| 500, 502, 503 | Server or upstream failure, sometimes during failover | Retry once with backoff, then check status. Do not keep looping a failing agent run. |
| Tool call returns prose | Model ignored the tool schema or does not support it | Switch 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/v1throughout. Plugsky’s public docs also showhttps://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 docsSources
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.
| Source | Page checked | Checked |
|---|---|---|
| Cline | docs.cline.bot — OpenAI Compatible provider | 20 Nov 2026 |
| Cline | github.com/cline/cline | 20 Nov 2026 |
| OpenAI | platform.openai.com — Chat Completions reference | 20 Nov 2026 |
| Plugsky | plugsky.com/models and plugsky.com/pricing | 20 Nov 2026 |
| Plugsky | plugsky.com/docs | 20 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.