
context-mode
Gateway that trims context, remembers sessions and enforces rules for coding agents
- Pricing
- Freemium
- Platforms
- CLI, API, self-hosted
- GitHub stars
- 34.2K
- Last commit
- 1 day ago
- Language
- JavaScript
- Listing updated
- 3 days ago
About context-mode
context-mode is a freemium AI tool for coding. It is available on CLI, API and self-hosted.
It sits between a coding agent and the model and acts at three points: before a request goes out, before a tool runs, and when a result comes back. In the example given, an agent runs 600 tests and one fails, so the model receives the failing test and its error plus a one-line summary rather than the full output. It also runs scripts and returns just the answer, and trims tool schemas.
Sessions carry what they learned, and your rules decide what is allowed to run. It works with Claude Code, Codex, OpenCode, Pi and their desktop apps.
There is a hosted version with 1,000 free requests and every feature, plus Pro and Team monthly plans. For security reviews it can be deployed in your own Cloudflare, AWS or Google Cloud account from $15,000 a year with 1,000,000 requests a month. The vendor also offers a free Context Mode Engine.
What it does
- Output folding
- Condenses test, build and log output before it reaches the model.
- Script execution
- Runs scripts and returns only the answer.
- Tool schema trimming
- Reduces the size of tool definitions.
- Cross-session memory
- Sessions carry what earlier ones learned.
- Allow rules
- Your rules decide what a tool can run.
- Own-cloud deployment
- Run the gateway in your own Cloudflare, AWS or Google Cloud account.
Good for
- Cut tokens spent on test and build logs
- Keep agent memory across sessions
- Restrict commands a coding agent may run
- Keep prompts and code inside your own cloud account
Pricing
Freemium
1,000 requests free; Pro and Team monthly; own cloud from $15,000/yr
Prices change. Check contextmode.ai before you buy.
context-mode FAQ
Which agents does it support?
Claude Code, Codex, OpenCode, Pi and their desktop apps.
Is there a free tier?
Yes, 1,000 requests free with every feature and no card.
What does self-hosting cost?
The own-cloud option starts at $15,000 a year with 1,000,000 requests a month.
Where does data go in own-cloud mode?
Code, prompts and memory stay in your account.
Is context-mode free?
context-mode has a free plan, with paid plans for more usage or features.
What are the best alternatives to context-mode?
The closest alternatives to context-mode are ECC, ponytail, graphify, orca and claude-mem.
Alternatives to context-mode

Skills, hooks, memory and security layer for coding agent harnesses
- Freemium
- Open-source agent
- 305K GitHub stars
- AI models and LLM tooling

Ruleset that makes AI coding agents write less code that still works
- Open source
- Open-source agent
- 192K GitHub stars
- AI models and LLM tooling

Code knowledge graph that gives coding assistants shared, source-linked context
- Freemium
- Open-source agent
- 149K GitHub stars
- Knowledge and memory

Desktop environment for running several coding agents in parallel worktrees
- Open source
- Open-source agent
- 127K GitHub stars
- Coding

Memory for coding agents that saves decisions and fixes, with optional hosted sync
- Freemium
- Open-source agent
- 118K GitHub stars
- Knowledge and memory

Design skill that gives coding agents an art direction and checks pages in a browser
- Open source
- Open-source agent
- 117K GitHub stars
- Design and media