Skip to content
Open Source Claude Cowork

Claude Cowork with a local LLM: open source owns the endpoint

Claude Cowork can reach a model your organization serves, through a managed deployment rather than a user setting. A third-party build points at a gateway you operate. Kortix is the open-source CompanyOS: your agents, their skills, your company memory, and every connector in one git repo you own, with the agents working on real cloud computers, and it is my pick; I work at Kortix, so weigh that accordingly.

Where the model attaches, in the docs' own words

kortix.com/docs/guide
A model is the AI an agent runs on.You can use Kortix-managed models, your own provider keys, a ChatGPT subscription or a Claude subscription.Set a default for the project, pin a model to an agent, or pick one for a single session.Every model request goes through the Kortix LLM gateway, which applies budgets, access rules and cost reports.A self-hosted Kortix has no managed models. Connect your own providers there.A provider key belongs to the whole project.

Six lines from the Models section of the Kortix docs, quoted as they read.

Two layers, and only one of them is the question

A search for Claude Cowork with a local model bundles two requests. They fail in different places. The model layer decides which LLM answers each step. It decides whose credential pays for it and which machine generates the tokens. The agent layer is everything around that: the harness that plans and calls tools, the connectors and memory, and the review that gates finished work. Anthropic's third-party documentation moves the first layer. It leaves the second where it is.

That split decides how the question gets answered. Cowork on a paid Claude plan keeps both layers inside Anthropic's product. In the third-party mode, Anthropic's agent layer stays. Inference and billing go to a provider the organization configures. A model you serve can sit behind that provider. None of it turns model choice into a switch a person flips in settings.

The managed path, in Anthropic's own words

The third-party page states the routing without hedging. "Claude Desktop on third-party (3P) is a deployment mode of Claude Desktop that routes all model inference through a provider you configure: Google Cloud's Agent Platform, Amazon Bedrock, Microsoft Foundry, any compatible gateway you operate, or the Anthropic API directly." The same mode keeps the product intact: "the full Claude Desktop experience (Chat, Cowork, and Code, including file creation, multi-step research, and sub-agent coordination) with inference and billing handled by the provider you choose" (the 3P overview, checked October 2026).

Three requirements separate that from a desktop preference. The device runs the 3P build. It detects the mode at launch and can skip Anthropic sign-in once a provider and its credentials are present. The organization configures the device through "your existing MDM (Jamf, Intune, Workspace ONE, Group Policy), a bootstrap server, or the admin console." A profile that MDM delivers cannot be edited on the device. The provider has to exist before any of it applies.

The gateway option is the one that matters for a local model. A gateway you operate is where your own serving stack plugs in. Anthropic's gateway page sets the contract: "The gateway must implement the Anthropic Messages API," and "POST /v1/messages with streaming and tool use is required." Discovery is optional, so a deployment that skips GET /v1/models lists model ids explicitly. LiteLLM, Portkey and an in-house proxy are the page's examples. A gateway in front of a model you serve is a translation job: Anthropic Messages on one side, your model's protocol on the other.

What stays the same in that mode

Cowork's execution boundary does not move. The same page describes it: "In Cowork, shell commands run in the hardened Cowork VM; file access is scoped to your allowed folders and web fetches to your egress allowlist." Conversation content follows the configured endpoint instead of Anthropic's service. The app stores it "only on the local machine," and SSH remote sessions add a host that receives and stores it too.

That is the trade a regulated buyer wants, and it explains why the mode exists. Anthropic scopes it to organizations "whose security, regulatory, or contractual requirements prevent them from sending data through Anthropic's first-party products." Its advice points elsewhere for everyone else: standard Claude Desktop with Cowork on a Team or Enterprise plan "is simpler to deploy and releases new features more quickly than Claude Desktop on 3P."

On a first-party plan the model is still Anthropic's

The Cowork product page describes the ordinary case, and it has not changed. "Claude Cowork runs on web, desktop, and mobile and is the same Claude, wherever you work." Close the laptop and it keeps going. Its placement options stay inside Anthropic's estate or your cloud account: "Use a Claude account or your own cloud provider: Access Claude through Amazon Bedrock, Gemini Enterprise Agent Platform, or Microsoft Foundry" (the product page, checked October 2026). A Bedrock or Foundry account changes whose bill the tokens land on. It does not put a model on your own hardware in the loop.

So the answer has two halves. On a personal or team plan, a local model has no path. No setting on the device creates one. Under a managed 3P deployment, inference follows the provider the organization names. A gateway it runs can front a model it serves.

Where the endpoint attaches in Kortix

Kortix keeps the endpoint in project configuration rather than device policy. The Custom tab takes a provider id, a name, a base URL and one or more models, and the key is optional, saved as the project secret CUSTOM_<ID>_API_KEY (the Kortix docs). Requests go through the gateway in the OpenAI chat-completions format. Ollama already serves that shape at http://localhost:11434/v1 (Ollama's compatibility note).

Reachability is where most local setups break before the first request. A private, loopback or link-local base URL is refused, so http://localhost:11434/v1 fails as written. A self-hosted deployment names the host in KORTIX_LLM_CUSTOM_PROVIDER_ALLOW_HOSTS. The gateway is the caller: every model request goes through it, and it calls <base_url>/chat/completions. On Kortix Cloud a loopback URL therefore resolves on the gateway host, not on the laptop and not in the session's sandbox. Serve the model on a host the gateway can reach, or self-host and allow-list the host.

Model choice then splits per agent. kortix agents model <agent> <model-id> pins one agent, kortix models default <model-id> sets the project default, and a session that names no model walks that chain. A nightly digest can run on the machine in the rack. A research agent can run on a hosted model behind your key. Any model provider with your own keys. Or the ChatGPT plan you already pay for. Or sign in with your OpenCode Console account for OpenCode Zen and Go.

The local servers that already speak the contract

Anthropic's gateway page asks one thing of whatever sits in front of Cowork: POST /v1/messages with streaming and tool use. Three documented servers meet that.

Ollama listens on http://localhost:11434. Its compatibility page opens by naming the scope: a subset of the Anthropic Messages API. The same page states where the subset stops: "Compatible models support messages, streaming, and function calling. Tool-choice controls, deferred tools, and hosted web search are not fully supported." The key is a placeholder, marked required but ignored: "The local server does not validate API keys." ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN point a client at it.

Ollama environment variables

docs.ollama.com/api/anthropic-compatibility
export ANTHROPIC_AUTH_TOKEN=ollama  # required but ignoredexport ANTHROPIC_BASE_URL=http://localhost:11434

LM Studio serves /v1/messages on http://localhost:1234. The same page publishes the client setup: the base URL on that port, ANTHROPIC_AUTH_TOKEN set to lmstudio, then claude --model openai/gpt-oss-20b (LM Studio's Anthropic compatibility page, checked October 2026). With Require Authentication on, it accepts either header. The page's words: "LM Studio accepts both x-api-key and the standard Authorization: Bearer <token> header."

LiteLLM answers from one layer out. Its gateway serves Anthropic's /v1/messages endpoint and translates to the providers behind it, which is the proxy job Anthropic's gateway page describes (LiteLLM's /v1/messages page, checked October 2026). Its feature table carries fallbacks and load balancing across the models it fronts. Ollama and LM Studio answer the contract directly on the machine that holds the model. LiteLLM translates: Anthropic Messages arrives at the front, a provider's own protocol leaves at the back, and a fleet that mixes a local model with a hosted one has one address to keep.

What the hardware has to hold

Memory decides how much model a machine holds. Ollama's FAQ puts the rule plainly: "If your system has sufficient available memory (system memory when using CPU inference, or VRAM for GPU inference) then multiple models can be loaded at the same time." The same section tightens it for cards: "when using GPU inference new models must be able to completely fit in VRAM to allow concurrent model loads" (Ollama's FAQ, checked October 2026).

ollama ps answers where a model landed. It lists what is loaded with a SIZE column and a PROCESSOR column. The FAQ prints its own sample.

ollama ps sample output

docs.ollama.com/faq
NAME
llama3:70b
ID
bcfb190ca3a7
SIZE
42 GB
PROCESSOR
100% GPU
UNTIL
4 minutes from now

100% GPU means the model sits entirely in the card, and 100% CPU means entirely in system memory. A mixed figure such as 48%/52% CPU/GPU means part of it is in each. That column is the measurement to take before sizing a machine. Load the model you intend to run, read the row, and the size on screen is the one to plan around.

The second default to set is the context window. "By default, Ollama uses a context window size of 4096 tokens", and OLLAMA_CONTEXT_LENGTH changes it. A job that carries a system prompt, a tool schema and the previous call's output spends that window quickly. An agent makes many calls per task.

What travels with the model, and what stays above it

Tool calling travels with the model, and it is the part of that layer an agent cannot do without. Ollama's support is qualified by model: compatible models support function calling, with tool-choice controls listed as not fully supported. An agent whose plan depends on tool_choice meets that limit before it meets anything else.

Everything above the model stays where it was. Skills are files in the repo (skills/<name>/SKILL.md), loaded by the agent's harness, not a setting in the model. Connector credentials are brokered server-side and never enter the machine. The agents, their permissions and the review that gates finished work live in the same repository (the Kortix docs, checked October 2026).

The third-party route keeps the agent layer inside Anthropic's product and moves only where inference runs. A local model under Kortix changes that same layer and leaves the rest in a checkout you own.

What each route asks of you

  1. Open source

    • KortixYes
    • Desktop on 3PNo
    • Cowork, first-partyNo
  2. Inference

    • KortixYour key or endpoint
    • Desktop on 3PProvider you choose
    • Cowork, first-partyClaude models
  3. Set up by

    • KortixA project setting
    • Desktop on 3PMDM or admin console
    • Cowork, first-partyA Claude plan
  4. Model choice

    • KortixAgent pin, or default
    • Desktop on 3PPicker, gateway list
    • Cowork, first-partyPicker, Claude list
  5. Self-host

    • KortixSelf-host is free
    • Desktop on 3PNo, managed desktop
    • Cowork, first-partyNo, hosted account

The 3P column is the shorter route for an organization that already runs a gateway and a managed fleet. It keeps Anthropic's agent layer. Your endpoint sits behind it. The cost is a deployment project: profiles to push, a gateway to run, a protocol to translate. A company with LiteLLM in front of Bedrock is close to that. A person with a laptop and a model runner is not.

Kortix inverts the unit of configuration. The endpoint is stored with the project and set once for it, where the 3P route is a profile pushed to each device. The cost sits on your side too. A self-hosted instance has no managed models, so every project brings a key or an endpoint. A local model's speed is the hardware's speed, because one job makes many calls. Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.

Governance differs by route. Session work reaches main through a change request. Merge is default-deny for agents. A gateway in front of a local model adds no such gate, and the 3P page puts the review boundary at the sandbox and the egress allowlist.

Which route fits

An organization whose security review forbids Anthropic's API has a documented answer: the 3P deployment, with Cowork's interface and a gateway it controls. It is a large operational commitment, and Anthropic says as much.

Some teams want the model choice, the agents, the skills and the memory in one setup they own, and that is the shorter route. Kortix puts a custom OpenAI-compatible endpoint in the project, pins models per agent, and runs both harnesses against the same gateway. Open source. Read it, fork it, audit it. The desktop comparison covers the case where the work never leaves one laptop, and the self-hosting guide takes a bare Linux box to a running stack with the model server beside it.

Questions buyers ask about a local model

Short answers, with the deployment detail that changes each one.

  • Can Claude Cowork run on a local LLM?

    Yes, under a managed third-party deployment. Anthropic's 3P mode routes all of Cowork's inference through a provider the organization configures, including a gateway it operates. It is not a setting a person turns on, and the gateway must implement the Anthropic Messages API.

  • Is there a local model setting in Claude Cowork?

    No. The endpoint arrives in managed configuration delivered by MDM, a bootstrap server or the admin console. A profile that MDM delivers cannot be edited on the device. A personal or team plan has no path to a model you serve.

  • What does it take to point Kortix at a local model?

    A running OpenAI-compatible endpoint the gateway can reach. Then a provider id, base URL and model ids go in the Custom tab or through kortix providers custom set, with the key optional. A private or loopback host needs KORTIX_LLM_CUSTOM_PROVIDER_ALLOW_HOSTS on a self-hosted deployment.

  • Does the Cowork sandbox change when inference moves?

    No. In the 3P mode, shell commands still run in the hardened Cowork VM, file access stays scoped to your allowed folders, and web fetches follow the egress allowlist. What changes is where prompts, files and tool output are sent.

  • Which local models can sit behind Claude Cowork's contract?

    Any model a local server can serve, reached as /v1/messages on the machine that holds it. Ollama covers a subset of the Anthropic Messages API, LM Studio serves the endpoint directly on http://localhost:1234, and LiteLLM fronts providers that speak something else. The model still has to fit the machine's memory.

  • What hardware does a local setup need?

    Enough memory for the model, which is system memory for CPU inference and VRAM for GPU inference. Ollama's FAQ states the floor that way, and ollama ps reports the memory the model actually landed in.

  • Do tools and skills work when the model runs locally?

    Tool calling does, with limits. Compatible models support function calling, and tool-choice controls are listed as not fully supported. Skills are files in the repo and load through the harness. Connector credentials stay server-side. A local model changes which weights answer, not what the agent may do.

opensourceclaudecowork.com

© 2026

Put the endpoint in the project

One setting, one gateway, and a change request a person merges before the work lands.