Cline self hosted: local models and an internal inference gateway

Cline can run inference on local runtimes such as Ollama and LM Studio, and Cline Enterprise admins can set an OpenAI-compatible endpoint such as self-hosted vLLM. Admin enforcement applies only to the VS Code and JetBrains extensions for signed-in members.

On this page

Can Cline self-hosted inference keep prompts inside our network?

Cline can send inference to a host you run, but whether prompts stay inside your network depends on the plan and the client. The open source extension supports local runtimes, including Ollama, LM Studio and Atomic Chat, and a self-hosted OpenAI-compatible endpoint such as vLLM, and any user can point it at one. Only Cline Enterprise lets an admin set that endpoint centrally, and that lock binds signed-in members of the VS Code and JetBrains extensions only. The Cline enterprise overview states that prompts go to the customer's configured inference provider, so the endpoint an admin sets is where prompt data lands for those members. Treat that endpoint as the data boundary, and treat everything else as a policy question for your security team.

For a head of IT or security, the split is simple to state and easy to miss in practice. Any user gets local runtimes and the OpenAI-compatible provider. Enterprise adds the admin side: a required base URL for the endpoint, optional custom headers sent with every request, and optional Azure Identity authentication that uses Entra ID tokens instead of static API keys for Azure OpenAI endpoints. Members receive these settings through remote configuration when they sign in, and locked fields show a lock icon in VS Code and JetBrains, where members cannot pick other providers. Cline Desktop and the CLI do not enforce those restrictions, so a signed-in member can still choose another provider in those clients. The lock protects the extensions only, so the other clients need their own control.

Three pieces sit outside what remote configuration controls, so your team has to build or confirm them. First, the inference host: you run the model server, size it, patch it and decide what it logs. Second, the network path: confirm that developer machines reach the internal endpoint and that your own egress controls close the route to public model providers, because the client lock does not do that on its own. Third, the client policy for Cline Desktop and the CLI, such as blocking or restricting those clients on managed devices. Ask Cline in writing which of these controls it can confirm for your plan, then test the setup with a signed-in member and a signed-out one before approval.

Inference options by client and edition

This table compares the ways Cline can keep model inference inside your infrastructure, with the plan each option is tied to, who sets it, and what you must supply yourself. Read the second and third columns together: an admin-set row binds signed-in members only in VS Code and JetBrains, while Cline Desktop and the CLI are not covered by that restriction. The main takeaway is that the enforcement path matters as much as the endpoint, so confirm plan coverage with Cline in writing before you rely on it.

CapabilityEdition or plan in the sourcesEnforced by admin or set by userOutside component needed
Ollama, LM Studio and Atomic Chat as local runtimesThe local models page does not tie this to a plan. Confirm with Cline for your plan.User-set by default. Confirm whether remote configuration can lock it.Ollama, LM Studio or Atomic Chat on a managed machine or internal host
Admin-set OpenAI-compatible base URL (self-hosted vLLM example)Enterprise remote configuration admin page. Confirm the plan with Cline.Admin-set and required. Members in VS Code and JetBrains cannot pick other providers.An OpenAI-compatible server such as vLLM behind an internal hostname ending in /v1
Optional custom request headersSame Enterprise admin page. Confirm the plan with Cline.Admin-set. Sent with every request from the signed-in client.A proxy or API gateway that reads the header, if your design depends on one
Azure OpenAI with Entra ID tokensListed as optional on the admin page. Confirm which plan includes it.Admin-set authentication method for Azure OpenAI endpointsMicrosoft Entra ID identities for members and an Azure OpenAI endpoint
Admin enforcement in VS Code and JetBrainsEnterprise remote configuration. Confirm the plan with Cline.Admin-set. Locked settings show a lock icon, and members cannot choose other providers.Members must sign in so Cline reads the organization's remote configuration
Cline Desktop and the CLIThe admin page says these do not enforce the provider restriction. Confirm current behavior with Cline.Not enforced by the admin provider setting, so users may select other providers.Device or network egress controls, if you must block other model endpoints
VPC deploymentListed among Enterprise features on the pricing page.Set by the organization at deployment, not by individual membersYour cloud VPC or private network and the Cline deployment within it. Confirm scope with Cline.

How the endpoint setting reaches a developer's Cline client

An admin sets the endpoint once, and members' Cline clients pick it up at sign-in. Cline runs on the developer's computer or on a remote host the team connects it to, and in both cases it sends prompts to the inference provider the organization configures. It does not index or embed repositories. For an OpenAI Compatible endpoint, such as a self-hosted vLLM server behind your own domain, the admin sets a required base URL in the remote configuration. The client reads that configuration when a member signs in, and organization-controlled settings show a lock icon in VS Code and JetBrains, where members cannot pick other providers. The restriction is not enforced in Cline Desktop or the CLI, so map which client each team uses before you treat the endpoint as a control. Check this against the remote configuration overview before rollout.

Local runtimes take a different path. Ollama, LM Studio and Atomic Chat are supported, and their default base URLs point to localhost (port 11434 for Ollama, port 1234 for LM Studio), so model calls stay on the machine. The extension itself still runs on the developer's computer, and that is the part reviewers tend to skip. Confirm what else leaves that machine: extension telemetry, update and marketplace traffic, MCP server calls and any remote host the developer connects to. The telemetry and data handling review sits on the sibling pages, so this section only asks you to scope it. Also confirm whether the lock covers the local runtime option as well as the endpoint, because a localhost address is only a default unless the setting is enforced. The Cline local models guide lists the runtimes and their defaults.

Two optional settings change what the endpoint receives. Custom headers are sent with every request, which makes them a likely place for a gateway token or routing value to live. Before approval, confirm how header values are stored, who can view them in the admin console, whether a member can read them on the local machine, and whether they appear in client logs or exported configuration. For Azure OpenAI endpoints, Cline also offers optional Azure Identity authentication that uses Entra ID tokens in place of static API keys. Ask your identity team whether token lifetime, scope and rotation meet policy, and who owns the app registration or managed identity that issues them. The OpenAI Compatible admin configuration page lists both options and is the source to check against your own gateway design.

Which path a Cline prompt takes after sign-in

The diagram starts when a developer signs in to Cline. The client then reads the organization's remote configuration. If an admin has set an OpenAI Compatible base URL, prompts go to that internal endpoint, such as a self-hosted vLLM host, and the provider picker is locked in VS Code and JetBrains. If no endpoint is set, the developer chooses a provider, which may be a local runtime such as Ollama or LM Studio, or a hosted API. The Cline Desktop and CLI branch shows that the lock is not enforced there, so confirm how those clients are governed before approving them. The gateway should log and restrict the calls it receives.

The admin endpoint setting decides whether prompts stay on the internal path.

Decisions to make before choosing a self-hosted inference path

Six decisions determine whether Cline keeps inference inside your infrastructure. They cover which runtimes are allowed, how the endpoint is enforced, where the host sits, how callers authenticate, how much memory local models need, and which clients the policy binds. Settle them in this order, because the endpoint and client choices change what the later decisions must cover.

Local runtimes, a gateway or both

Decide whether members may use only local runtimes such as Ollama, LM Studio and Atomic Chat, only an internal OpenAI-compatible gateway such as self-hosted vLLM, or both. Local runtimes keep inference on each laptop, which puts model hosting and hardware cost on every member. A gateway centralizes hosting in your network, but it becomes a shared service that needs capacity planning. Confirm which runtimes your approved clients support before you publish the choice.

Cline local models

Enforce the endpoint or allow choice

Enterprise remote configuration can set the OpenAI Compatible endpoint for every signed-in member, and VS Code and JetBrains mark those settings with a lock icon. Enforcement starts only at sign-in, so a member who has not signed in is outside the setting. Choose enforcement when the endpoint is a control you must prove, or accept user choice when members may bring their own providers. Ask Cline how a remote setting is refreshed for members who sign in rarely.

Remote configuration overview

Where the inference host sits

Decide whether the model host runs in your cloud account or your data center, and how laptops reach it. Cline says it can be self-hosted and lists VPC deployments among Enterprise features, so confirm that option and its terms with Cline before you design around it. The endpoint is a base URL ending in /v1, so the host needs a stable DNS name, a route from member networks and a certificate your clients trust. Check whether remote and VPN-only laptops can reach it at all.

OpenAI Compatible admin setup

Caller authentication to the gateway

Choose how callers prove identity to the gateway: a static API key, custom headers that Cline sends with every request, or Azure Identity with Entra ID tokens for Azure OpenAI endpoints. A shared static key carries no per-person identity, so assign an owner for issuing, rotating and revoking it. Entra ID tokens tie each call to a directory identity, but they apply only to Azure OpenAI endpoints. Confirm with your gateway owner which method it accepts before you write the policy.

OpenAI Compatible admin setup

Hardware sizing by memory tier

Local models depend on system memory. Cline's guidance groups machines into 16 to 32 GB for small or quantized models, 32 to 64 GB for mid-size coding models, and 64 GB or more for larger models and bigger context windows. Set the minimum tier for your standard laptop image, and expect members on smaller machines to run lighter models or none. Cline also recommends turning on Use Compact Prompt under Settings, Features when local models are used, so put that in the rollout standard.

Cline local models

Which clients the policy covers

Enforcement reaches members signed into the Cline extension in VS Code and JetBrains, where they cannot pick other providers. Cline Desktop and the CLI do not enforce these restrictions, so a member on either client can still point at another provider. List every client in scope, then decide how to handle the unenforced ones, such as restricting their outbound routes at the network layer or limiting them to approved work. Confirm the client matrix with Cline for the versions you deploy.

How the self-hosted answer changes by situation

A single team running Cline against Ollama, LM Studio or Atomic Chat keeps inference on the developer's own machine or on a host that the team controls. The local models page lists these three runtimes and their default local ports, which are 11434, 1234 and 1337, and it gives memory guidance by system RAM. No admin lock is part of this setup, so each developer chooses the provider in the client.

  • Built in: support for Ollama, LM Studio and Atomic Chat as local runtimes, and a recommendation to turn on Use Compact Prompt under Settings, Features when running local models.
  • Needs Enterprise: nothing for the local runtime itself. Stopping a developer from switching to a hosted provider needs Cline Enterprise remote configuration, which this setup does not use.
  • Outside component: the runtime and the model weights, installed on each workstation or on a shared host the team controls. RAM is the main limit: the guidance ties 16 to 32 GB to small or quantized models and 64 GB or more to larger models and bigger context windows.
  • Confirm with Cline: that a local endpoint is the only destination for prompts in the open source extension, and whether any telemetry is sent when a local runtime is selected.

Before approving this setup, confirm that model files come from sources your security team accepts and that each developer machine meets the RAM guidance for the models you permit.

Where the self-hosted control falls short

The admin endpoint sets the model path for members signed into the Cline extension, but it does not reach every client or every install. The cards below list the gaps a reviewer should close with controls outside Cline, such as an inference gateway, network egress rules and managed device policy, before treating the setup as the only route to a model.

Desktop and CLI skip the endpoint

Cline Desktop and the CLI do not enforce the admin endpoint. The OpenAI Compatible setting applies to members signed into the Cline extension, so a Desktop or CLI session can still reach a provider the admin did not choose. Because Cline does not provide this restriction for those clients, the policy has to sit in the network: allow the inference gateway address and block direct egress from developer machines to other model providers. Check each client against the admin configuration page before approving the rollout.

Admin configuration page

Unmanaged installs ignore remote configuration

Cline products read the organization's remote configuration when a member signs in. A signed-out install does not read it, so the endpoint, the locked settings and the lock icon shown in VS Code and JetBrains do not appear for that user. A developer who installed Cline outside the managed account can run with default settings. Inventory which company machines have Cline installed, and use managed device policy to control which extensions and versions are installed on them.

Remote configuration overview

Open source users can pick hosted providers

The Open Source plan is free for individual developers using the VS Code extension, CLI and MCP Marketplace, and users pay for inference at cost or bring their own API keys. A developer on the open source extension can use a hosted provider unless the organization restricts that another way. Use egress rules to limit which model endpoints developer machines can reach, and managed device policy to control which extension builds are installed. Confirm which Cline clients staff actually run before assuming the internal endpoint is the only path.

Cline pricing

Local model sizing is the team's call

Cline's local models guide gives hardware ranges by system RAM: 16 to 32 GB for small or quantized models, 32 to 64 GB for mid-size coding models, and 64 GB or more for larger models and bigger context windows. Context size and output quality on modest hardware may fall short, and the trade-off is yours to test on representative tasks. Cline recommends turning on Use Compact Prompt under Settings, Features when running local models, so confirm that setting before a pilot starts.

Local models guide

Model-level logging is undocumented

Cline's published documentation does not describe admin-side logging that records which model served each request. Ask Cline in writing whether any admin console or remote configuration feature records the model, provider and timestamp per request, and do not assume it does. Until that answer is in writing, plan logs at the inference gateway: caller identity, requested model, upstream model, token counts and timestamps, stored in your own log platform with a retention period your policy sets.

Entra ID tokens cover Azure OpenAI only

Cline's admin page lists optional Azure Identity authentication using Entra ID tokens instead of static API keys, but that option is documented only for Azure OpenAI endpoints. If your internal gateway or self-hosted vLLM server uses a different identity provider, Cline's documented settings do not cover member authentication to it. Put the gateway in charge of credentials: it can validate each member's identity and hold the upstream key, and the custom headers Cline sends should carry only what the gateway requires.

Admin configuration page

Order of work to put the self-hosted endpoint into production

This sequence takes Cline from individual installs to inference paths the organization controls. Each step closes with a check that the next step depends on. The result is a record of which endpoint members use, which clients can reach it, and which configuration and client versions were reviewed.

  1. Choose the inference path for each team

    Name the team that will use each inference path: a local runtime such as Ollama, LM Studio or Atomic Chat on the developer's machine, or the organization's OpenAI-compatible endpoint, such as a self-hosted vLLM server. For any local model, check the machine's system RAM against the local models guidance: 16 to 32 GB for small or quantized models, 32 to 64 GB for mid-size coding models, and 64 GB or more for larger models and bigger context windows. Turn on Use Compact Prompt under Settings, Features for local use. Done when every team has one approved path and each local user has a hardware fit note.

  2. Place the gateway host and restrict access

    Platform engineering places the vLLM or gateway host inside the organization's network or cloud account, then decides who can reach it. Choose a hostname under the company domain for the base URL and agree the TLS setup with the security team. Confirm which authentication or network control gates requests to the host. Record any custom headers the endpoint needs on every request and where their values are stored. If the endpoint is Azure OpenAI, decide whether Entra ID tokens will replace static API keys. Done when an approved test device reaches the endpoint and a device outside the approved network does not.

  3. Set the endpoint in remote configuration

    An admin sets the OpenAI Compatible base URL as a required value in Enterprise remote configuration. Cline products read the organization's remote configuration when a member signs in, so have a test member sign in again after the change. In VS Code and JetBrains, confirm the organization-controlled setting shows a lock icon and that the member cannot choose another provider. Send one test request and confirm it reaches the approved host. Done when the lock icon appears for the test member in both editors and the request appears in the gateway logs.

  4. Test that Desktop and the CLI are blocked

    The admin page states that the endpoint restriction applies to members signed into the extension in VS Code and JetBrains, while Cline Desktop and the CLI do not enforce it. Network or device policy therefore has to carry that part of the control. From a managed test device, attempt to run Desktop and the CLI against the approved endpoint and against an external provider. Confirm each attempt is blocked or cannot reach a model, and record what your egress, proxy or device controls show. Done when every path is blocked, or each open path has a named owner and a remediation plan.

  5. Confirm prompts arrive from expected hosts

    Review gateway logs for recent normal use and compare the source of every request with the approved devices and hosts from the earlier steps. Local runtime traffic on a developer machine never reaches the gateway, so verify those machines through endpoint or network records instead. Confirm that each log entry carries enough detail to identify the caller and the requested model. Any request from an unexpected source, or a model outside the approved list, sends you back to the network controls in step four. Done when every observed source maps to an approved host and the logging is confirmed.

  6. Schedule periodic review of configuration and clients

    Assign one owner for recurring reviews of the remote configuration, the endpoint and its headers, the approved hardware profiles, and the Cline client versions in use. Confirm how you inventory installed client versions so the review covers what members actually run. Each review compares the live configuration with the change record, rechecks the lock icon and the blocked clients after any change, and checks the cline/cline security advisories for affected versions. Set the cadence in your own governance calendar. Done when the owner has a dated review record and a documented path to update any client that an advisory affects.

Evidence a security reviewer asks for on self-hosted inference

This table lists the evidence a security reviewer should collect to show that Cline inference stays on the organization's endpoint. Each row names what the evidence proves, and the third column shows whether it comes from Cline or from the organization's own environment. The main takeaway is that the lock icon only proves the extension setting, so the network and gateway rows show whether Desktop and CLI traffic stays contained.

EvidenceWhat it provesWhere it comes from
Remote configuration showing the locked base URLConfirms the admin-set base URL is delivered at sign-in and is the one members receive in VS Code and JetBrainsSaved copy of the remote configuration as admins set it; confirm with Cline how to capture it
Lock icon screenshots in VS Code and JetBrainsA test member sees the organization-controlled setting marked with a lock icon and cannot select another providerCaptured by a test member after signing in to each client
Gateway access logsWhich client IP addresses and identities reached the endpoint, and whether any unexpected caller appearsYour inference gateway or reverse proxy logs, kept under your own retention policy
Network tests from Desktop and CLIWhether Desktop and CLI traffic reaches only the internal endpoint, since they do not enforce the restrictionEgress tests from a managed test device, checked against firewall and proxy logs in your environment
Hardware inventory against local model RAM tiersWhether each machine meets the RAM range for its intended model: 16 to 32 GB, 32 to 64 GB, or 64 GB or moreEndpoint management inventory, compared with the RAM guidance in Cline's local models documentation
Written confirmation from ClineWhich Cline clients enforce the OpenAI Compatible setting, stated by Cline in writing and datedWritten request to Cline; the admin page says Desktop and CLI do not enforce the setting
Custom header and API key handling recordCustom headers sent with each request, where keys are stored, who can read them, and whether Azure Identity replaces static keysYour secrets management records and the admin configuration, with owners named for each header and key

Questions buyers ask before approving self-hosted Cline inference

What does self-hosted Cline inference cost an organization?

The Cline extension carries no subscription or seat fee on the open source plan, according to Cline's pricing page, so the recurring cost is the inference you run. Local models move that cost to hardware: Cline's local models guidance ties machine RAM to model size, with 16 to 32 GB for small or quantized models, 32 to 64 GB for mid-size coding models and 64 GB or more for larger models and bigger context windows. With an internal endpoint, your team pays for the GPU or cloud capacity that serves it, plus staff time to operate it. Enterprise is custom priced, so ask Cline for a quote built from a written scope that lists seats, admin controls and the deployment model. Cline pricing

Do we need Cline Enterprise to enforce a self-hosted endpoint?

Yes for enforcement, no for local use. A developer can point the open source extension at Ollama, LM Studio or another local runtime on their own machine without an Enterprise plan. Enforcement is the Enterprise question. Cline's admin configuration for the OpenAI Compatible provider lets an admin set a required base URL and optional custom headers, and that setting applies to members signed into the extension, who in VS Code and JetBrains cannot choose other providers. Confirm with Cline which plan includes each admin control before you write the policy into your approval memo, since the plan scope determines what your administrators can actually lock.

How much effort do the gateway and model sizing take?

Effort depends on three drivers: the model size you need, the context window your developers use, and how many people share one endpoint. Sizing starts with system RAM for local runtimes, and Cline's local models guidance moves up from 16 to 32 GB for small or quantized models to 64 GB or more for larger models and bigger context windows. Cline also recommends turning on Use Compact Prompt under Settings, Features when using local models, which is a configuration step each developer or policy must cover. For a shared endpoint, the work includes a reachable base URL, transport encryption, the authentication headers you choose, GPU capacity planning and request logging in your own infrastructure. Ask for a written scope that lists each item, the models in scope and the number of users, so the effort can be traced.

Can our own engineers set this up without an outside partner?

Yes, for local runtimes. Engineers can install Ollama, LM Studio or a similar runtime, choose a model and point the extension at it without a Cline subscription. A shared internal endpoint is more work and sits in your infrastructure: the gateway, network path, authentication, rate limits and logs of who sent what and when are all your team's responsibility. Check whether your team already runs an OpenAI-compatible serving stack, such as self-hosted vLLM, which the admin configuration uses as its example. If capacity or skills are short for the security review of the gateway and logging design, that is the part most worth scoping with an outside reviewer.

Do prompts still go to Cline's servers when we set an endpoint?

Cline's enterprise overview says Cline sends prompts to the customer's configured inference provider, so an endpoint you control should receive them directly. Confirm that for your client version before you rely on it, because the answer depends on how the client is configured and what telemetry it sends. Ask Cline in writing whether any prompt, code or metadata passes through Cline-operated services when an endpoint is set, and whether telemetry can be limited by policy. The Cline data privacy review covers what telemetry contains, who may train on content, and what Cline does not document, including retention periods. Keep the answer open in your file until those written answers arrive.

Do Cline Desktop and the CLI enforce the same endpoint policy?

No. Cline's admin configuration for the OpenAI Compatible provider states that Cline Desktop and the CLI do not enforce these restrictions, so the endpoint policy binds only members signed into the extension in VS Code and JetBrains. Put that gap in your approval decision: either restrict those clients by other means, or approve only the extension for this use. Ask Cline which controls, if any, cover Desktop and the CLI, and re-check after each release because client behavior can change. Your security review should test whether a developer can switch providers from those clients before you approve the endpoint for production code.

Can DeployOpen help with a self-hosted Cline rollout?

DeployOpen can help, and the scope depends on written terms agreed before work starts, since most engagements are fixed-scope. For the agent side, DeployOpen tests the setup for prompt injection, tool and file permissions, data exposure, credential handling, SSO and admin settings, then delivers a findings report with fixes and a retest. For the infrastructure side, DeployOpen deploys self-hosted AI platforms inside your cloud accounts, data centers or air-gapped networks, with SSO, access control, audit logging and data handling controls that your security and compliance teams can review. DeployOpen does not publish a price list, so a quote follows from the written scope. It prepares systems and evidence for compliance assessments but does not issue audit reports, attestations or certifications; independent auditors and certification bodies do that.

How DeployOpen helps teams roll out self-hosted Cline safely

DeployOpen approaches self-hosted Cline as a configuration and testing project inside your own environment. We scope which inference path each team may use, whether a local runtime such as Ollama or LM Studio or an internal OpenAI-compatible endpoint such as self-hosted vLLM, and we test how the Cline clients in use enforce that choice. The result is a findings report with fixes, a retest and evidence your security and compliance teams can review.

How we scope

  • The written scope lists which Cline clients each team may use, since only some enforce admin provider settings.
  • Scope covers the local path (Ollama, LM Studio or Atomic Chat) or an internal endpoint such as vLLM.
  • Engagements are fixed-scope, and scope, deliverables and timelines are agreed in writing before work starts.

How we build

  • We set up the inference path in your infrastructure and configure the base URL and custom headers in admin settings.
  • Local model setup follows Cline's RAM guidance and its recommendation to turn on Use Compact Prompt.
  • Testing covers prompt injection, tool and file permissions, data exposure, credential handling and admin settings before handover.

How we hand over

  • Deliverables include a findings report with fixes, a retest and the admin configuration settings used in your environment.
  • Documentation covers each supported client, what it enforces, and what remains open, such as CLI and Desktop behavior.
  • Compliance evidence is prepared for your assessors, and DeployOpen does not issue audit reports or certifications.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, which recur after the one-time handover.
  • Retainer scope can include retesting after Cline client upgrades or changes to the endpoint and admin settings.
  • Watch Cline's GitHub security advisories and ask us to retest settings affected by new ones.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.