Research Backed by published research from the University of Waterloo →

Your codebase,
compiled into your AI.

Code2LoRA turns a repository into a tiny adapter for open-weight coding models. Your assistant knows your code without re-reading it on every request, so you pay for fewer tokens, get faster answers, and keep every line on your own hardware.

I'm a…

Tokens sent per request

illustrative agent call
Today · retrieval / long context8,300 tokens
repository context · re-sent every call
task
With Code2LoRA300 tokens
task
Repository knowledge lives in the adapter: loaded once, updated per commit
0extra repository tokens per request
<10 msto generate an adapter
100%on your hardware
Open checkpoints on Hugging Face CLI on PyPI Paper on arXiv Evaluated on 604 real Python repositories Runs on Qwen open-weight models
Savings calculator

What does re-sending your codebase cost?

Estimate the repository context you stop paying for when that knowledge lives in an adapter instead of the prompt.

Agents and autocomplete typically make many calls per task.
Retrieved files, symbols and docs currently pasted into each prompt.
Your API price, or the equivalent GPU cost if you self-host.
Estimated savings
$0
per year in repository-context tokens
$0per month
0context tokens avoided per month
0%shorter prompts (300-token task)
$0saved per person per year

Illustrative estimate assuming 21 workdays/month and that the adapter replaces the repository context you send today. Code2LoRA adds zero repository tokens per request. Your pilot measures the real number on your own codebase.

The problem

AI coding tools don't know your software.
You pay for that on every request.

To work on your codebase, today's assistants search it and paste the results into the prompt, then do it again on the next request, and the next.

Spend scales with your codebase

Context tokens grow with repository size × engineers × requests. Agents multiply it again. The bill grows faster than the team.

Long prompts are slow prompts

Thousands of context tokens must be processed before the first word comes back. Developers feel it on every completion.

Your code keeps leaving the building

Every request ships proprietary source to someone's API. In regulated teams that blocks adoption entirely, and self-hosted models don't know your code.

How it works

Teach the model your codebase once.
Keep it current with every commit.

A hypernetwork, trained once on hundreds of repositories, reads your code and writes a small adapter for the model. No training runs on your side and no context stuffing.

01 · CONNECT

Point it at a repository

Code2LoRA reads the code and its git history locally. Encoding runs on CPU; the large model is never loaded for this step.

$ c2lt → /adapt
02 · COMPILE

Get a repository adapter

The hypernetwork writes a LoRA adapter for your repository in a single pass. No gradient steps and no per-repository training job.

<10 ms generation · 8 KB stored per repo
03 · SERVE

Use it with your model

The adapter plugs into an open-weight coding model on your GPUs or a laptop CPU. Prompts stay short; repository knowledge is already in the weights.

PEFT · GGUF / llama.cpp · 4-bit · 8-bit
Snapshot engine

Code2LoRA Snapshot

One adapter from one state of the code, in one pass.

  • Stable or legacy codebases, audits, due diligence
  • Client engagements and handovers
  • 63.8% exact match on repositories it has never seen
Live engine

Code2LoRA Live

An adapter that follows your commit history and updates incrementally as the code changes.

  • Actively developed codebases, CI and IDE integration
  • Each new commit costs one incremental update, not a rebuild
  • Best result on repositories created after its training cutoff
Solutions

What Code2LoRA is worth to you

Pick your seat at the table. Each one comes with the setup we recommend and what a pilot looks like.

For VPs of Engineering, CTOs and Directors · 20–500 engineers

Roll out AI coding across the org, without the token bill or the security-review fight.

Today

  • AI spend grows with codebase size × engineers × requests
  • Security won't approve proprietary code going to hosted APIs
  • Self-hosted open models are safe, but don't know your code

With Code2LoRA

  • Repository knowledge stops being a per-request cost
  • Open-weight models get repo-specific accuracy, on-prem
  • Adapters refresh on merge, so nobody maintains a training pipeline
0extra repository tokens per request
+9.7 ptsaccuracy over the strongest baseline, on unseen repos
On-premcode never leaves your network
Proof, not promises

Cheaper and more accurate

Measured on RepoPeftBench: 604 real Python repositories, with tests on repositories the model never saw during training.

63.8%

exact match on unseen repositories

vs. 54.1% for fine-tuning + retrieval, the strongest baseline
+16 pts

over retrieval-augmented generation

63.8% vs. 47.6% exact match, with no retrieved tokens
66.2%

on known repositories

matches a LoRA trained per repository (64.0%), with zero training
74.1%

on code created after training

Live engine; best of every method on post-cutoff repositories
Retrieval (RAG)Full fine-tuningLoRA per repositoryCode2LoRA
Extra tokens per requestUp to 1,536+000
Setup per repositoryBuild and maintain an indexRetrain the model (~4 h)~5 min GPU training each<10 ms generation, no training
Storage per repositoryChunk indexShared 3.1 GB model37 MB8 KB
Keeps up with new commitsRe-indexRetrainRetrainIncremental update per commit
Works on a repo it's never seenYes · 47.6%Yes · 51.4%NoYes · 63.8%

Exact-match accuracy on test-assertion completion, Qwen2.5-Coder-1.5B base model. Full methodology, baselines and significance tests in the paper.

Security & trust

Built for teams that can't send their code to an API

Code2LoRA was designed around open-weight models you run yourself. Nothing about it requires a network connection to us.

Fully offline

Air-gap capable. Set C2L_OFFLINE=1 and nothing calls out once models are cached.

Your hardware, your models

Adapter generation runs on CPU; serving runs on your GPUs or quantized on a laptop. No vendor in the loop.

Knowledge in weights, not prompts

Repository knowledge sits in a small adapter file you own, not in prompts copied to someone else's logs.

Isolated and revocable

One adapter per repository or client. Delete the file and that knowledge is gone from the system.

Inspectable

Published method, open checkpoints, MIT-licensed CLI. Your security team can read exactly what runs.

Comfortable for everyone affected

We run pilots with your security, platform and engineering leads in the room from day one.

DefenseCybersecurityFintech & bankingHealthtech & medical devicesCritical infrastructureCrypto & security toolingInternal platform teams
Plans

Find the version that fits

Start free on a laptop. Scale to your org, your product, or your clients.

Individual developers · evaluation

Terminal

Free · MIT license
Live

An AI coding assistant in your terminal that knows your repository. Runs on a laptop.

  • pip install code2lora
  • Test-assertion completion and repository Q&A
  • CPU-only with GGUF, or 4/8-bit on GPU
  • Fully offline mode
Install now
Engineering leaders

Enterprise

Annual license
LiveSnapshot

Org-wide deployment inside your network, wired into CI so adapters stay current.

  • On-prem or private cloud
  • CI integration, per-merge updates
  • Savings and accuracy reporting
  • Priority support and onboarding
Contact us
AI DevTools & PLG

SDK / OEM

Usage-based
LiveSnapshot

Embed repository-specific adapters in your product, one per customer repository.

  • Adapter generation library
  • PEFT and GGUF export
  • Engineering support for integration
  • OEM terms available
Talk integration
Consultancies & MSPs

Partner

Practice / volume license
SnapshotLive

Run Code2LoRA for many clients with strict isolation, under your brand.

  • Multi-tenant, one adapter per client
  • White-label and co-branding
  • Client-side or managed deployment
  • Pricing aligned to fixed-fee contracts
Become a partner
You are…Start withEngineWhere it runsFirst measurable win
Engineering leaderEnterprise pilotLiveYour network / CILower AI spend per engineer, approved by security
AI DevTool / PLG companySDK pilotLive + SnapshotYour serving stackLower context COGS and latency per request
ConsultancyPartner pilotSnapshotLaptops or client infraFaster ramp-up on a new client codebase
Managed service providerPartner pilotLive + SnapshotYour or client infraPredictable cost per request across clients
Individual developerTerminal (free)LiveYour laptopAn assistant that knows your repo, offline
Why now

Open-weight models are where code privacy wins. They need to know your code.

More teams run Qwen and other open-weight coding models locally for privacy and cost. Code2LoRA is the missing piece that makes them good on your codebase. It comes out of research at the University of Waterloo, led by founder Liliana Hotsko.

Now
Python repositories, Qwen2.5-Coder, test-assertion completion and repository Q&A, CLI on PyPI
More languages and open-weight models, prioritized by design partners
Later
Models that continuously adapt to every environment they operate in
50+engineering teams and developers interviewed
14teams asked to integrate it into their workflow
604repositories in our public benchmark
10design-partner pilot spots for this cohort
Try it in two minutes

See it on your own repository

The free terminal assistant generates an adapter for any Python repo on your laptop. No account, no API key.

$ pip install code2lora
$ cd your-repo && c2lt
c2l> /adapt # build the adapter from your git history
c2l> /task qa # ask questions about your codebase

GitHub · PyPI · Browser demo

FAQ

Questions buyers ask us

Does any of our code leave our network?

No. Adapter generation and serving both run on your machines, and the offline mode (C2L_OFFLINE=1) blocks network access once models are cached. We never need access to your repository.

Which languages and models do you support?

Today: Python repositories with the Qwen2.5-Coder open-weight model. New languages and models are trained with design partners. Tell us your stack and we'll tell you how close it is.

Does this replace RAG?

For repository knowledge, it removes the need to paste context on every request. On our benchmark Code2LoRA beats retrieval by 16 points with zero retrieved tokens. You can still combine it with retrieval for the latest uncommitted changes.

What hardware do we need?

Adapter generation runs on CPU. The terminal works on a laptop with 8 GB of RAM using a quantized model. In production, adapters plug into your existing GPU serving, or a CPU server with enough memory.

How does it stay current as the code changes?

The Live engine keeps a compact state of your commit history. Each new commit updates the adapter incrementally instead of rebuilding it. You choose the cadence: per commit, per merge, or on a schedule.

What does a pilot look like?

Free for design partners. We set up Code2LoRA on one repository and team, you use it for a week on real work, then we review the measured token savings, latency and accuracy with you and your stakeholders.

Is it open source?

The terminal CLI is MIT-licensed, and the research checkpoints and benchmark are public on Hugging Face. Enterprise, SDK and partner deployments are commercially licensed.

Design-partner program · 10 pilot spots

Stop paying to re-explain your codebase.

One week on your own repository. We measure the savings together, and the pilot is free.