# billion-context

> billion-context (command \`bili\`) is a Node CLI that sits between a coding agent and its model API, folding older messages into summaries the model can expand again. It supports Claude Code, Codex, OpenCode, pi, Gemini CLI, Aider and many more, via native plugins, a launcher, or for some clients a local HTTPS interception proxy with its own certificate. You still need an agent and a model API. The README calls it early with rough edges. Licence is MIT plus an extra clause requiring visible attribution in products that use it. It does not replace a paid product.

- Repository: https://github.com/ranxianglei/billion-context
- Official docs: https://github.com/ranxianglei/billion-context#readme
- Checked: 2026-10-18

## What it replaces
Nothing people pay for: a free tool, listed because people search for it.

## Facts, with sources

| Question | Status | Answer | Source | Checked |
|---|---|---|---|---|
| Runs on my machine? | Confirmed | Yes, a proxy on your own machine in front of the model API | https://github.com/ranxianglei/billion-context#readme | 2026-10-18 |
| Code licence | No | MIT plus an extra attribution clause, so not a standard OSI licence | https://github.com/ranxianglei/billion-context/blob/master/LICENSE | 2026-10-18 |
| Model weights licence | Confirmed | No separate model weights | https://github.com/ranxianglei/billion-context#readme | 2026-10-18 |
| Commercial use | Partial | Allowed, but user-facing products must credit billion-context with a link | https://github.com/ranxianglei/billion-context/blob/master/LICENSE | 2026-10-18 |
| Paid services needed? | No | Needs a coding agent and a model API (Anthropic, OpenAI or compatible) | https://github.com/ranxianglei/billion-context#readme | 2026-10-18 |
| Hardware | Unknown | Not documented | none found | - |
| Operating systems | Confirmed | Linux, macOS and Windows install steps in the README | https://github.com/ranxianglei/billion-context#install | 2026-10-18 |
| Setup effort | Confirmed | Easy, npm install then one plugin or launcher command per agent | https://github.com/ranxianglei/billion-context#install | 2026-10-18 |

GitHub: 2122 stars, 190 forks, last push 2026-10-21, archived: no.
---
Source: RepoQuarry (https://repoquarry.dev/projects/billion-context). Data licence: CC BY 4.0. Quotes are from project documentation and belong to their authors.
