What is Ratel?
Ratel is an open-source context gateway for AI agents — it keeps your tool and skill catalog out of the prompt and retrieves only what each turn needs.
Keep reading to learn more, or get started right away.
Why Ratel?
- Lean context: keeps every tool schema out of the prompt with progressive disclosure, and cuts context with benchmark-backed savings.
- Zero setup: in-process BM25 keyword search — no vector database, no API key, no service; semantic & hybrid ranking when you opt in.
- One catalog: tools, MCP servers, and skills, all searchable and runnable through the same three capability tools.
- Two SDKs: TypeScript and Python over one Rust engine, with Vercel AI SDK and Pydantic AI integrations.
- Observable: the whole search-and-invoke funnel as local trace events or OpenTelemetry spans.
- Open: Apache-2.0 engine, MIT everything else, measured in the open by ratel-bench.
Getting started
Follow the Quick start — the fastest path lets your coding agent integrate Ratel for you — or install the SDK and jump straight to the TypeScript or Python quickstart.
Features lists everything Ratel Core does, What's new tracks releases, and the FAQ answers common questions.
Using Claude Code or Codex? Ratel Local puts the same capability contract in front of your existing MCP servers.
Support and issues
For bugs and questions, open an issue on github.com/ratel-ai/ratel.
Community
Join our brand-new Discord to ask questions and follow development.
How it works
Curious? Read Architecture for the turn-by-turn flow and Efficiency for exactly what changes in the model's context.