Why your codebase index should stay on your machine
Indexing your code for an AI agent means deciding what crosses the network — the retention risk and latency cost, and where Trellis draws the line.
By Trellis

Nobody sits down to decide whether their source code should be processed on somebody else's hardware. The decision gets made the first time someone runs an indexer, by whoever picked the tool that installed fastest that afternoon. By the time it turns into a question — a policy update in a changelog, a customer asking where their code is processed — the index already exists, the team's daily work depends on it, and unwinding it means changing how everyone works.
It is a decision worth making on purpose, while it is still cheap. Three questions settle it, and only the first is about privacy in the way people usually mean: what actually crosses the network when the index is built, what the receiving end is allowed to do with it a year later, and what the round trip costs you on every single lookup.
What actually leaves your network the moment you build an index
An index is derived from source, which means something has to read all of the source to produce it. That part is not negotiable; it is what indexing is. The only real variable is where the reading happens.

If the index is hosted, the reading happens somewhere else, so the material has to travel. And what travels is more than the text of your question. A practitioner write-up of how cloud-backed coding assistants work describes the transmitted payload as the code itself, the project structure, and the libraries in use — the context a lookup needs in order to be a good lookup. The relationship is uncomfortable but honest: the more useful you want the remote index to be, the more of your repository has to exist on the far end of the wire for it to be built.
If the index is local, the index itself does not have to travel: the reading happens on the machine that already holds the source. That does not make the machine silent. A cloud model provider you choose still receives the text it processes, and an app can still report to its vendor, so the useful test is what each of those paths carries, not whether a vendor says "local-first" on a pricing page. For the hosted half of the product, the test is whether it is built so that it cannot see your index, not merely promising not to look.
Trellis is a reasonable thing to hold to that test, since it makes the claim. The Trellis console is the hosted half — plan, seats, API keys, billing — and one of the things it shows you is whether your local server is running. It gets that status with a probe from your own browser to http://localhost:7700/status. The code says why, in as many words: this is "intentionally never a hosted call," never routed through the control plane, because the hosted server "has no route to the user's localhost." The status you are reading was fetched by your machine, from your machine, and the server that rendered the page around it could not have fetched it if it wanted to.
The same page has no "edges indexed" tile, and the comment explaining the omission is blunt: the console never surfaces graph or corpus content. That is an enforced constraint someone wrote down, not a gap waiting to be filled in. The constraint is enforced in the software, not promised in a feature list.

What a vendor's retention policy can change after you have adopted it
Sending your index somewhere is not a single event with a fixed meaning. It opens an ongoing relationship governed by a policy document, and policy documents get edited.
The clearest recent case is GitHub Copilot. As GitLab's write-up of the change sets out, from 24 April 2026 interaction data on Copilot Free, Pro, and Pro+ — inputs, outputs, code snippets, and associated context — is used to train AI models by default unless the user opts out. Business and Enterprise customers are contractually exempt.
Notice what did not change: not the product, not the integration, not anybody's workflow. A default changed, and which side of it you landed on was decided by the tier you happened to be on. The opt-out is per-user: each developer has to find it, read it, and act on it, one at a time.
So the question to ask before adopting is not "do I trust this vendor?" You almost certainly do, or the tool would not be installed. The question is: what happens on the day the terms change, when my team's workflow already depends on this? Adoption is easy to reverse in the first week and expensive to reverse in the second year, which is precisely backwards from when you learn what you agreed to.
The latency arithmetic of a local lookup versus a hosted one
Privacy gets the argument, but latency is the part you feel on a Tuesday afternoon. The practitioner write-up quoted earlier puts a cloud lookup at roughly 100–500ms per network round trip, against sub-10ms for a local query.
Take those as an order of magnitude, not a benchmark of any specific product. What matters is not the size of the gap but the fact that it is charged per lookup, and that an agent working through a real task does not make one lookup. It makes a sequence of them: find the seed, expand around it, re-check after reading a file, check again after proposing a change. The round trip is not paid once per task. It is paid once per hop.
This is also why the two questions are really one question. The same round trip that costs you the latency is the round trip that carries the payload described earlier. Moving the index off your machine buys you both problems with a single architectural decision, and moving it back on removes both the same way.
Those figures are industry order-of-magnitude estimates, not Trellis product benchmarks. Measure your own workload if the number matters to you.

Where Trellis draws this line
Trellis answers the "does my code leave my machine" question directly. The graph, the vector store, and the summaries can all run on your hardware: Neo4j holding the graph, Qdrant holding the vectors, both in Docker. Secrets are scrubbed at ingest. If you choose a cloud model provider, the text Trellis sends for processing goes to that provider, and the licensed app sends Trellis license check-ins, usage counts, product analytics and a connector status feed, none of which carries your content. If anything ever syncs, you are the one who chooses it, explicitly.
In short: the stores run where you put them, secrets are scrubbed, and none of what the licensed app reports to Trellis carries your content. The index sits on the same disk as the repository it was built from. The trust boundary is the machine you already trusted with the source code.

Three questions that still need your answers
Nothing here quantifies retrieval quality. The latency difference between a local and a hosted lookup is easy to reason about; a quality difference is not a fact you can inherit from a blog post. If someone tells you a local index retrieves better — or worse — ask what they measured and on which codebase.
The privacy choice also does not make the ops trade disappear. Stores that run on your hardware are stores you run. Neo4j and Qdrant in Docker are processes on your machine, with your machine's resources and uptime. That is the bill for keeping the index on your own hardware, and it is a real bill.
What you do get is three answerable questions, none of which requires trusting anybody's adjective. If the index is built somewhere else: name what crosses the wire, read who is permitted to keep it and for how long, and decide whether you would make the same call after the next default changes. If you cannot answer all three today, the local option is the one that does not require you to.
Want this for your team?
Trellis builds local-first knowledge graphs for coding agents, and the Free plan runs on your own machine.