LeanCTX
Open-source context gateway that sits between AI tools and your code and data to control and shrink what the model sees.
Updated
✨ Try AgentScout's free AI image generator →Good for: writing code, memory for agents
Use cases
About LeanCTX
LeanCTX is listed in our memory & RAG category and is aimed at builders. Open-source context gateway that sits between AI tools and your code and data to control and shrink what the model sees. Pricing, as the maker states it: Open source engine (Apache-2.0); Enterprise pricing not verified. Maturity: Active. We last checked the official link on 2026-12-01.
What is LeanCTX?
LeanCTX is a context gateway that sits between AI tools and the information they read. It selects task-relevant context with search, structural views, compression and reuse, applies configured path permissions, content filters and context budgets, and records the context operations it can observe.
The open-source LeanCTX Engine runs locally through a CLI, an MCP server, hooks and supported proxy paths, and an SDK embeds its capabilities in your own app. Your application, agent loop and model stay your own; organization-wide controls are offered as a separate licensed Enterprise option.
Sources: the official README and our directory listing, checked 2026-10-24. Official site: github.com/yvgude/lean-ctx.
Who is LeanCTX for?
Developers and teams who want to control and trim what context their AI tools see.
LeanCTX at a glance
- Open source: Yes (Apache License 2.0)
- GitHub: yvgude/lean-ctx · 3,971 stars (as of Dec 2, 2026)
Key features
- Task-relevant context selection
- Compression and context budgets
- Path permissions and content filters
- CLI, MCP, hooks and proxy
- Embeddable SDK
LeanCTX FAQ
What is LeanCTX?
LeanCTX is a context gateway that sits between AI tools and the information they read. It selects task-relevant context with search, structural views, compression and reuse, applies configured path permissions, content filters and context budgets, and records the context operations it can observe.
Who is LeanCTX for?
Developers and teams who want to control and trim what context their AI tools see.
Is LeanCTX free?
LeanCTX's pricing, as the maker states it: Open source engine (Apache-2.0); Enterprise pricing not verified. Open-source tools are free to use, though you may still pay for model API usage or a hosted plan. Check the official site for current plans.
Is LeanCTX open source?
Yes. LeanCTX is released under the Apache License 2.0, according to its GitHub repository.
What are alternatives to LeanCTX?
Similar tools include ktx, Headroom, ComfyUI Copilot, Eko, Hyper Extract and KiwiFS.
LeanCTX ratings and reviews
Be the first to rate LeanCTX: tap 1 to 5 stars below. A written review is optional.
LeanCTX alternatives
Other memory & RAG tools in our directory. See all memory & RAG tools →
ktx
An open-source context layer for data and analytics agents that gives Claude Code, Codex and other agents a self-improving map of your warehouse, metrics and business definitions.
Headroom
Headroom is an Apache-2.0 library, proxy and MCP server that compresses what an AI agent reads, including tool outputs, logs, files, RAG chunks and chat history, before it reaches the model, so you send fewer input tokens for the same answers. The project's own measurements show 21 to 57 percent fewer input tokens across four agent scenarios and over 90 percent on repeated JSON arrays and log lines, with little saving on prose. Compression runs locally, and it is on PyPI and npm as headroom-ai.
ComfyUI Copilot
An AI-powered custom node for ComfyUI designed to enhance workflow automation and provide intelligent assistance
Eko
Eko (Eko Keeps Operating) - Build Production-ready Agentic Workflow with Natural Language - eko.fellou.ai
Hyper Extract
Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs.
KiwiFS
A markdown filesystem for agents and teams: searchable, structured and versioned knowledge in a single binary that agents can read and write.