Context Mode and LiteLLM: a hosted control plane, or a gateway you run
Your developers' coding agents fill the context with raw tool output, forget your conventions between sessions, and can run git push --force. Context Mode handles the three during the run, and your team has nothing to operate: we host it, and one command connects each developer. The LiteLLM proxy is an open-source model gateway that your team hosts. LiteLLM Lens is trace analysis that your team hosts, and it reads a session after each turn.
This page shows what Context Mode does in the session, puts the three products side by side, and says when each one is the right choice. Every LiteLLM fact links the LiteLLM page it comes from.
What Context Mode does during the run
- Less raw output, lower cost. Context Saving folds long tool output before the model reads it, and the full output stays in an archive the agent can search. In a 30-step session on Claude Opus 5.5, the agent sent a mean of 75,591 tokens per call through Context Mode and 330,785 direct. The session cost 65.5% less, in 4 of 4 pairs, and 168 paired runs on 10 shorter tasks cost $28.28 direct and $23.16 through Context Mode. The cost figures are for Claude Code.
- The agent remembers. Memory gives each developer's agents the current project facts in every session, on every machine. Recall keeps older work word for word. In the same 30 steps on a 200K window, the agent answered 9 of 10 questions on early details exactly through Context Mode, and 4 of 10 direct. The direct session compacted 3 times. The Context Mode session compacted 0 times.
- One set of command rules for the team. The admin sets the Protect rules once, and they apply to every member. Protect checks each tool call before the client runs it, on Claude Code and Codex, and blocks a command such as
git push --forceorterraform destroy.
The numbers are from paired runs of one agent, direct to the model and through Context Mode. On 10 shorter tasks, 155 of 168 paired runs cost less, and 168 of 168 tasks succeeded in both arms. The method and each result file are in the benchmarks.
Your coding agents keep their own Anthropic or OpenAI account. Context Mode sits between the agent and that account.
Side by side
| Context Mode | LiteLLM proxy | LiteLLM Lens | |
|---|---|---|---|
| What it is | A hosted control plane for coding agents, between the agent and the model API | A self-hosted server with one OpenAI-compatible endpoint for 100+ LLM providers. It adds virtual keys, budgets, rate limits, spend tracking, fallbacks and guardrails (LiteLLM AI Gateway) | A tool on your infrastructure that uses AI agents to analyze agent traces and find recurring problems (LiteLLM Lens, BerriAI/lens) |
| What your team operates | Nothing. We host it. One command, npx @context-mode/cli, signs a developer in and connects the agents. | A server and a PostgreSQL database (quickstart), or Helm on Kubernetes, or Terraform on AWS and GCP. The deploy guides cover capacity, network design and production operations (deploy). For a gateway hosted by LiteLLM, you talk to sales or book an onboarding call (docs index) | Lens and ClickHouse, from one Docker Compose file (local deployment). For a team: a server, Kubernetes or the LiteLLM dashboard (LiteLLM Lens) |
| When it acts | During the run. It keeps raw output out of the context, recalls memory, and checks each command before it runs. | During the run. Every request flows through the gateway your team hosts (client setup) | After each turn, and later. The plugin sends the transcript to Lens after each turn (coding agents). An investigation runs when you start it, or on a schedule (investigations) |
| Tool output in the context | Built in. Long tool output is folded before the model reads it, and the full output is archived. | Headroom compresses tool outputs before they reach the model. It runs as a sidecar service alongside LiteLLM, from v1.92.0 (Headroom) | The plugin reads the transcript. The model login and the model endpoint stay unchanged (coding agents) |
| Memory between sessions | Built in. Memory and Recall for each developer, in every session and on every machine. | A memory API that stores user preferences and feedback for each user and team, with PostgreSQL connected (memory) | Traces stay in your own ClickHouse (BerriAI/lens) |
| Blocks a command before it runs | Yes. Protect checks each tool call before the client runs it, on Claude Code and Codex. It reads the call as a shell command, through wrappers such as sudo, sh -c, xargs and ssh. The team sets the rules once. | The Tool Permission Guardrail allows or denies tool calls with rules on the tool name, the tool type and argument patterns, in the gateway your team configures (tool permission) | The plugin reads the transcript after each turn (coding agents) |
| Coding agents | Claude Code, Claude Desktop, Codex, Codex Desktop, T3 Code, OpenCode and Pi | Setup guides for Claude Code, Codex, OpenCode and other clients (client setup) | Plugins for Claude Code and Codex, on macOS and Linux (coding agents). The repository also names OpenCode (BerriAI/lens) |
| Uptime | Standard has a 99.9% monthly uptime SLA, with service credits. | Your team runs the server, with guides for production readiness, upgrades and health checks (deploy). Enterprise adds support SLAs (LiteLLM Enterprise) | Your team runs Lens and ClickHouse (local deployment) |
| Price | Free: 10,000 requests a month. Standard: $500 a month for the whole team, with 10,000,000 requests, the hosting and the SLA. We add no fee on tokens. See pricing. | Open source under the MIT license, with no markup on model spend (docs index, LICENSE). Enterprise is a license key, and its price depends on the size of the deployment (LiteLLM Enterprise) | Open source under the MIT license (LICENSE). You choose the analysis model and a monthly spending limit for each investigation, and provider charges apply (investigations) |
Choose Context Mode when
- You want nothing to operate. Your team runs no server, no database and no upgrade.
npx @context-mode/clisigns a developer in and connects the agents. See the quick start. - You want the help during the run. In the same session, the agent reads less raw output, keeps its early details, and gets a refusal for a blocked command. Protect checks the command before it runs.
- You want one set of command rules for every developer. The admin sets the team Protect rules once. They apply to each member's Claude Code and Codex, on every machine.
- You want one price and an SLA. Standard is $500 a month for any number of members, with 10,000,000 requests in one pool. The SLA is 99.9% monthly uptime. The service credit is 10% of the month's fee below 99.9%, 25% below 99.0% and 50% below 95.0%. The admin claims it by email within 30 days.
Use LiteLLM for
- LiteLLM proxy. One endpoint on your own infrastructure for 100+ model providers, for your applications, with virtual keys, budgets and rate limits (LiteLLM AI Gateway).
- LiteLLM Lens. A review of agent traces after the run: recurring problems with the traces behind them, and tests of candidate models on your traffic (LiteLLM Lens, model optimizations).
Keep the LiteLLM proxy for your applications. Connect your coding agents to Context Mode.
Sources
Each LiteLLM fact on this page comes from one of these pages. Our own numbers come from our benchmarks and our pricing.
- LiteLLM proxy: LiteLLM AI Gateway, quickstart, deploy, client setup, tool permission guardrail, Headroom, memory, LiteLLM Enterprise, docs index
- LiteLLM Lens: LiteLLM Lens, local deployment, coding agents, investigations, model optimizations
- Repositories: BerriAI/litellm and its LICENSE, BerriAI/lens and its LICENSE
Retrieved 2026-11-25.
Next step
Start Standard and invite your developers. Each developer connects with one command. See how we handle your data. Compliance documents and the security questionnaire: on request, through Talk to us.