tonytautai home/local-ai/run-local-ai/software/coding/agents/copilot

man autocomplete

Autocomplete Without the Cloud Subscription.

A self hosted copilot alternative gives you the editor experience most developers want, completion as you type and a chat panel, from a model you run yourself. It is less work than an agent and easier to trust.

Tony Tautai

self hosted copilot alternative

Most developers who ask about local coding tools do not want an autonomous agent. They want the grey ghost text that finishes the line, and a side panel to ask about a function, and they want it without a monthly seat and without their employer's source going to a vendor. That is a smaller problem than the one described on the page on agents, and it is largely solved.

What You Are Replacing

self hosted copilot alternative

A hosted copilot does two separate things. Fill-in-the-middle completion, where the model sees the code before and after the cursor and proposes what goes between. And chat, where a larger model answers questions with the open file as context. The self-hosted version keeps that split. You can run a small, fast model for completion and a bigger, slower one for chat, and most editor extensions let you point each at a different local endpoint.

The Setup in Practice

You need a runner that serves an HTTP endpoint compatible with the common chat and completion APIs, a completion model trained for fill-in-the-middle (not every coding model is), and an extension in your editor that talks to local endpoints. Several open source extensions exist for the mainstream editors. Configure the completion model to answer in well under a second, which usually means a small model, a quantised file and a graphics card, or a recent laptop with unified memory.

On a team server the same endpoint serves everyone, and the server needs enough memory to hold the model once and the contexts of a dozen simultaneous requests. That is a different sizing exercise from a single laptop.

Where It Falls Short

self hosted copilot alternative

Honesty first. Small local completion models are noticeably weaker than the best hosted ones on unusual languages and on long-range context across many files. They are good on boilerplate, tests, common library calls, and anything that follows a pattern already visible in the file. If your work is mostly novel algorithms in a niche language, you will feel the gap. If it is a CRUD application in a mainstream stack, you probably will not.

Chat quality tracks model size. A chat model that fits beside a completion model on one card will be fine at explaining a function and poor at designing a system. When the chat panel starts to feel like it could do the work for you, you have crossed into agent territory, and our guide to local ai coding agent covers what that requires.

Why We Care

We are a small team that writes a lot of code around a lot of confidential documents. A self-hosted completion setup was one of the first local models we ran, long before we shipped any to a customer, and the lesson stuck: the private, specialised, slightly less clever option is often the right one for a business that cannot leak.

self hosted copilot alternative

ssh [email protected]

Prove it on your documents.

Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.

Test it on my documents Request a diagnostic