OptiLLM Inference Optimizer

A zero-training OpenAI-compatible proxy that boosts reasoning accuracy by 2-10x using 20+ inference optimization techniques.

Stars
★ 4.3k
Last updated
17d ago v0.4.1
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLISelf-hosted serviceLibrary / SDK
Works with
Universal · cross-platformOpenAI APIClaude API (Partial support)
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.10+Docker (optional)OpenAI API key or equivalent provider keyShell / CLINetwork accessLocal filesystem
Typical use
Data scientists use OptiLLM's MARS technique to improve accuracy on math benchmarks like AIME.
Not a fit if
  • Users who cannot supply paid OpenAI/Anthropic API keys
  • Latency- or cost-sensitive workloads that cannot afford multiple model calls
Maintenance
Commits in the last 30 dayslast commit 2026-11-16latest release v0.4.1 (2026-11-02)+0.9 ★/day over 7 days

What does this agent do, and when should you use it?

OptiLLM is an open-source inference proxy that acts as a drop-in replacement for the OpenAI API, applying over 20 state-of-the-art techniques (MARS, CePO, MOA, MCTS, etc.) to dramatically improve LLM reasoning on math, coding, and logic tasks—without any fine-tuning. It supports multiple providers (OpenAI, Anthropic, Google, Cerebras) and local models, can be deployed locally or via Docker, and includes a suite of plugins for extended capabilities like memory, web search, and MCP integration. The repository provides extensive benchmark results showing substantial accuracy gains on tasks like AIME and GPQA.

OptiLLM runs as a proxy server that accepts OpenAI-compatible /v1/chat/completions requests. It parses the requested technique (e.g., moa, mcts, bon) from the model name, calls the underlying model (via provider APIs or local inference), performs multiple generations, self-reflections, or planning steps, and returns the best or aggregated response. It supports environment-variable configuration for API keys, routing to OpenAI, Cerebras, Azure OpenAI, and other providers via LiteLLM.

  1. Data scientists use OptiLLM's MARS technique to improve accuracy on math benchmarks like AIME.
  2. Software engineers leverage PlanSearch or CePO to increase pass rates in code generation tasks.
  3. Enterprises deploy OptiLLM as a unified API gateway to multiple LLM providers.
  4. Researchers compare different reasoning techniques quickly via OptiLLM.
  5. Developers use plugins like web_search and memory to extend LLM capabilities for long-context tasks.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install optillm
  • docker pull ghcr.io/algorithmicsuperintelligence/optillm:latest
  • pip install -r requirements.txt
Environment variables
OPENAI_API_KEY
Install notes cover
Docker

How do you install or deploy this agent?

Install via pip: pip install optillm, or use Docker: docker pull ghcr.io/algorithmicsuperintelligence/optillm:latest. For source installation, clone the repo and run pip install -r requirements.txt.

How do you use this agent?

After installation, set environment variables (e.g., export OPENAI_API_KEY=...), then run optillm to start the service. Modify your OpenAI client's base_url to http://localhost:8000/v1, and prepend technique slugs to the model name (e.g., moa-gpt-4o-mini) to activate optimization. Alternatively, use extra_body or special tags in the prompt.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Significant accuracy improvements without training, as demonstrated on benchmarks (e.g., +30 points on AIME).
  • Supports multiple optimization techniques and plugins (MCTS, MOA, CePO, etc.).
  • OpenAI API-compatible, facilitating integration with existing tools.
  • Offers Docker images and a local inference server, supporting multiple providers.
Limitations
  • Inference-time compute overhead increases latency and cost.
  • Requires API keys and environment variable configuration.
  • Some techniques (e.g., MOA) may make multiple model calls, increasing usage.
  • Advanced customization (e.g., developing new plugins) has a learning curve.

How does this agent compare with similar options?

OptiLLM is similar to LiteLLM but focuses on reasoning optimization. LiteLLM primarily provides a unified interface, while OptiLLM adds multiple inference enhancement techniques.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
OptiLLM Inference Optimizer This agent 48 · Major gaps CLIFree + model costs ★ 4.3k 17d ago Python OpenAI API
Lynkr 42 · Major gaps CLIFree + model costs ★ 643 3d ago JavaScript Codex · Claude Code · OpenAI API
FABULA 73 · Some gaps Desktop appFree ★ 82 2mo ago TypeScript OpenAI API
CLIProxyAPI 43 · Major gaps Self-hosted serviceFree + model costs ★ 60k today Go Codex · Claude Code · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
48/ 100 5-point scale 2.4 / 5
Trust 12/29
Reliability 5/14
Adaptability 12/18
Convention 10/18
Effectiveness 6/13
Verifiability 3/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The README says the server binds to 127.0.0.1 by default and documents client API keys, the disabled-by-default code execution plugin, and URL blocking for private destinations. This supports least privilege and basic data-flow transparency. Plugins can still receive and forward prompts, MCP can execute tools, and code execution has full host access; the sample shows no per-action confirmation or comprehensive sensitive-data policy, so those scores remain low. The dependency list includes some version bounds and compatibility notes, but most dependencies are unpinned and no security review evidence is shown. SPL learning persists strategy data, while the sample gives no rollback or clearing instructions. An author field supports attribution, but publisher identity remains unknown.

Reliability5 / 14 · 1.8/5

The docs list providers, techniques, and limitations; the SPL implementation logs and returns an error string for exceptions around its main model call. However, LongCePO indexes a planning match without showing a recovery path for malformed output, and README and CLAUDE.md differ in some version, naming, and usage details. The broad, mostly unpinned dependency set and provider options offer some availability flexibility, but the sample does not show comprehensive failure handling or retry behavior.

Adaptability12 / 18 · 3.3/5

The README covers reasoning, coding, math, long documents, gateway use, and local inference, and explains technique selection, external endpoint limits, and configuration. This supports ordinary scenario and environment fit. Boundaries remain incomplete: users must infer the permissions and data access of some plugins, and the docs list capabilities without clear suitability rules for every scenario.

Convention10 / 18 · 2.8/5

The README provides installation, configuration, usage examples, security notes, limitations, and a technique index. The LICENSE explicitly grants Apache-2.0, justifying full marks for licensing. Naming and interfaces vary in the sample, including differing model and approach conventions; pyproject shows version 0.4.1 with a few compatibility notes, but the packet provides little change history or clear maintenance responsibility.

Effectiveness6 / 13 · 2.3/5

The proxy offers multiple reasoning pipelines through an OpenAI-compatible interface, with examples that make basic use understandable and useful to existing clients. Accuracy gains and benchmark numbers are claims in the README; the sample lacks full methodology, reproducibility detail, or cost analysis. Multi-sample and multi-stage calls can also increase latency and API expense, so the value and cost-benefit scores remain low.

Verifiability3 / 8 · 1.9/5

The README gives some benchmark figures, models, and dates and points to further details, but the sample does not support all broad performance claims with full methods or checkable raw results. README, source, dependency files, and CLAUDE.md partially corroborate the product architecture but do not cover every claim. The material does not consistently distinguish measured facts from promotional claims, so each verifiability score is partial.

Risks and how to mitigate them
  • The code execution plugin runs Python from requests or model responses in an unsandboxed Jupyter kernel; enable it only in a trusted, isolated single-user environment.
  • Configure client authentication before binding beyond localhost. The URL guard documents a DNS rebinding gap between validation and connection.
  • Performance gains are documentation claims; actual results, latency, and provider costs vary with the model, technique, and configuration.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 66885d3d6b16 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/optillm.svg)](https://followagents.com/en/agents/optillm)
<a href="https://followagents.com/en/agents/optillm"><img src="https://followagents.com/badge/optillm.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.4.1
    Release notes excerpt
    What's Changed Action required if you use these features - executecode is now disabled by default (#337, #302). The plugin runs Python from requests and LLM responses with no sandboxing. To keep using it, start optillm with --enable-unsafe-plugins=executecode or set OPTILLM_ENABLE_UNSAFE_PLUGINS=executecode. Only enable it in single-user, air-gapped environments. …
    View on GitHub ↗
  2. v0.4.0
    Release notes excerpt
    What's Changed Fix: proxy plugin config, logging and agent clients (#330, #331) - Proxy target ignored: without ~/.optillm/proxy_config.yaml, the proxy silently loaded the bundled example config and routed to its sample providers. It now creates an empty template instead. A single failed request no longer sends all later traffic to --base-url: 4xx errors don't mark a provider unhealthy, and unhealthy providers are retried before falling back. - /v1/models lists the configured providers' models (plus model_map aliases) with --approach proxy. …
    View on GitHub ↗
  3. v0.3.22
    Release notes excerpt
    What's Changed Fix: autothink, thinkdeeper and deepconf for transformers >= 5 (#320) Since transformers 5, apply_chat_template(return_tensors="pt") returns a BatchEncoding rather than a plain tensor, so passing the result straight to model(input_ids=...) raised. The tensor is now unwrapped via .input_ids: - optillm/thinkdeeper.py - optillm/autothink/processor.py - optillm/deepconf/processor.py …
    View on GitHub ↗

FAQ

Which LLM providers does OptiLLM support?
It supports OpenAI, Cerebras, Azure OpenAI, Google (via LiteLLM), and any OpenAI-compatible API endpoint.
What are the computational requirements?
Depends on the technique and base model. Techniques like MCTS require multiple simulations, increasing latency and compute.
Can OptiLLM be used for non-reasoning tasks?
Yes, it works for general tasks, but the optimization benefits are most pronounced in reasoning-heavy scenarios.
How can I customize the optimization techniques?
Use command-line arguments (e.g., --approach) or configuration files, and extend via plugin development.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts