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

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 ModeLiteLLM proxyLiteLLM Lens
What it isA hosted control plane for coding agents, between the agent and the model APIA 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 operatesNothing. 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 actsDuring 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 contextBuilt 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 sessionsBuilt 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 runsYes. 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 agentsClaude Code, Claude Desktop, Codex, Codex Desktop, T3 Code, OpenCode and PiSetup 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)
UptimeStandard 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)
PriceFree: 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

Use LiteLLM for

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.

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.

Get started free

Context Mode Gateway: your coding agent costs less and remembers your project. Context Mode Engine installs from your terminal.

Start free: 10,000 requests, every feature, no card. After you sign in, the console gives you one command to connect your coding agent.

Read the docs