OpenEvolve

The most advanced open-source evolutionary coding agent turns your LLMs into autonomous code optimizers that discover breakthrough algorithms.

Stars
★ 7.9k
Last updated
today v0.4.1
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLILibrary / SDK
Works with
Universal · cross-platformClaude Code · OpenAI API
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.10+pipDocker (optional)Claude Code CLI (optional)Shell / CLINetwork accessLocal filesystem
Typical use
GPU kernel developers seeking automated optimization for specific hardware, e.g., achieving 2.8x speedup on Apple Silicon.
Not a fit if
  • Users who want a ready-made tool without tuning system messages
  • Budget-limited teams running many iterations on costly models like o3
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v0.4.1 (2026-11-02)+8.1 ★/day over 7 days

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

OpenEvolve is an open-source library for automatically improving code through evolutionary algorithms. It implements MAP-Elites quality-diversity optimization and island-based evolution, leveraging multiple LLMs to generate new programs. Core components include an evolutionary engine, an evaluator interface, a database for population management, and visualization tools. Users can run evolution via CLI or Python API, with seed settings for reproducibility and extensive configuration options. It supports multiple programming languages (Python, Rust, Metal shaders) and demonstrates results across domains like GPU kernel optimization and algorithmic discovery.

OpenEvolve evolves code iteratively. It starts with an initial program, uses an LLM ensemble to generate mutated versions, evaluates them with user-supplied evaluator functions, and manages the population in a database. It uses MAP-Elites to organize programs by feature dimensions and island migration to maintain diversity. Artifact feedback (e.g., errors, warnings) informs future generations. The entry points include run_evolution and evolve_function Python APIs, and the openevolve-run.py CLI. Configuration is YAML-based, allowing multiple LLM providers (OpenAI-compatible endpoints, Claude Code CLI). The output is improved program code and performance metrics.

  1. GPU kernel developers seeking automated optimization for specific hardware, e.g., achieving 2.8x speedup on Apple Silicon.
  2. Researchers discovering new algorithms or mathematical structures, like achieving state-of-the-art circle packing results.
  3. Scientists automating tedious tuning of complex algorithms like adaptive sort or signal processing filters.
  4. Competitive programmers exploring multiple solution strategies for multi-objective problems.
  5. Engineers optimizing prompts for LLMs, using OpenEvolve to evolve prompts for improved accuracy.
  6. Developers needing to evolve code across multiple languages, including Python, Rust, and Metal shaders.

Key setup facts

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

Install / run
  • pip install openevolve
  • docker pull ghcr.io/algorithmicsuperintelligence/openevolve:latest
  • npm install -g @anthropic-ai/claude-code
Environment variables
OPENAI_API_KEY
Config files
examples/function_minimization/config.yaml
Runtime
Python 3.10+
Install notes cover
Docker

How do you install or deploy this agent?

Requires Python 3.10+ and an LLM API key (e.g., Google Gemini or OpenAI). Install via pip: pip install openevolve. Set the environment variable OPENAI_API_KEY (for Gemini, use the same variable). Optionally, install Docker for containerized runs (see docker pull ghcr.io/algorithmicsuperintelligence/openevolve:latest) or Claude Code CLI (npm install -g @anthropic-ai/claude-code).

How do you use this agent?

Quick start: Install, set OPENAI_API_KEY, and run an example: python openevolve-run.py examples/function_minimization/initial_program.py examples/function_minimization/evaluator.py --config examples/function_minimization/config.yaml --iterations 50. Or use the Python API: from openevolve import run_evolution; result = run_evolution(initial_program='...', evaluator=lambda path: {'score': ...}, iterations=100). Configure LLM providers by editing config.yaml (e.g., llm.api_base and llm.model).

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
  • Uses MAP-Elites and island models to prevent premature convergence and maintain diversity.
  • Supports multiple LLM providers (OpenAI, Gemini, Claude Code, local models) for flexible integration.
  • Provides full reproducibility with seed settings (default seed=42), ideal for research.
  • Includes a visualizer and checkpoint system for real-time monitoring and analysis.
  • Demonstrated success: GPU kernel optimization (2.8x speedup), state-of-the-art circle packing.
Limitations
  • Costs vary by LLM provider; advanced models can be expensive per iteration (e.g., o3 at $0.15-0.60).
  • Requires LLM API keys, which adds dependency (though Claude Code CLI offers an alternative with OAuth).
  • Crafting effective system messages is crucial and may require iterative tuning, which is not trivial.
  • Performance may depend on problem complexity and evaluator quality; configuration needs adjustment.
  • Benchmarks and achievements are from examples and may not generalize to all domains.

How does this agent compare with similar options?

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

Agent Source review Form / cost Stars Updated Language Full support on
OpenEvolve This agent 51 · Major gaps CLIFree + model costs ★ 7.9k today Python Claude Code · OpenAI API
GEPA Reflective Optimizer 52 · Major gaps Library / SDKFree + model costs ★ 7.7k 3d ago Jupyter Notebook Codex · Claude Code · OpenAI API · Claude API
OpenAlpha Evolve 45 · Major gaps CLIFree + model costs ★ 1.1k 1y ago Python OpenAI API · Claude API
KADATH 66 · Some gaps CLIFree + model costs ★ 269 1mo ago Python OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
51/ 100 5-point scale 2.6 / 5
Trust 14/29
Reliability 6/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

The CLI identifies the initial program, evaluator, configuration, API base, and output directory; the docs explain evaluator argument forwarding, and the CLI prints only argument keys to avoid logging values that may contain secrets. Checkpoints provide a documented recovery path, supporting moderate data-flow transparency and rollback scores. Deductions: runs use an LLM API, worker processes, and user-supplied evaluator code, but the packet does not explain isolation, permission limits, or confirmation of side effects. Dependency security evidence is limited to lower version bounds, with no lock or audit evidence. AlphaEvolve attribution and the Apache-2.0 license are stated, but maintainer responsibility and update ownership are unclear.

Reliability6 / 14 · 2.1/5

The docs and CLI provide traceable guidance for basic operation, checkpoint resume, exit behavior, and evaluator argument validation. Deductions: the README claims full determinism and perfect reproduction alongside configurable prompt stochasticity and external LLM services, without evidence for those absolute claims; dependencies have lower bounds but no availability or locking evidence in this packet; general exceptions print tracebacks, and actionable guidance is incomplete.

Adaptability10 / 18 · 2.8/5

The README identifies optimization, scientific computing, and multi-objective tasks and lists multilingual examples. The configuration guide covers LLM endpoints, evolution blocks, evaluator arguments, and several workflows. Deductions: claims such as handling any scoreable problem and broad compatibility are not paired with clear capability boundaries; resource requirements, unsuitable tasks, and safe operating conditions receive limited treatment.

Convention10 / 18 · 2.8/5

The README, configuration guide, FAQ, examples, install commands, and license provide a usable information structure; the Apache-2.0 text is complete. Deductions: example and FAQ claims about determinism, outcomes, and applicability are often absolute; the supplied packet has no change history or clear maintenance responsibility, and the dynamic version source does not explain the release or update path.

Effectiveness7 / 13 · 2.7/5

The project offers CLI and Python APIs, candidate metrics, checkpoints, visualization documentation, and an evolution approach based on MAP-Elites, islands, and LLM mutations. Deductions: result quality and time savings over manual work are mostly README assertions that cannot be established from this static packet; although the FAQ points to cost estimates and saving tips, the supplied material lacks a concrete cost model and gives limited detail on balancing LLM charges against evaluation costs.

Verifiability4 / 8 · 2.5/5

The configuration guide gives specific accounts of evaluator argument validation, cascade scoring, LLM feedback blending, and prompt stochasticity; the CLI source corroborates argument-key redaction and error handling. Deductions: performance, paper-count, and perfect-determinism claims in the README are not independently corroborated by the supplied code or sources; the README and FAQ do not consistently distinguish demonstrated facts from promotional inference.

Risks and how to mitigate them
  • Runs call the configured LLM service and execute user-supplied evaluator code; use an isolated environment and review potential file, network, or compute side effects.
  • Treat claims of full determinism or speedups as unverified. Results depend on the model, prompt configuration, evaluator, and runtime environment; check costs and scoring methods for your use case.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision c1f4c3115e62 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/openevolve.svg)](https://followagents.com/en/agents/openevolve)
<a href="https://followagents.com/en/agents/openevolve"><img src="https://followagents.com/badge/openevolve.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
    Highlights - Mixed evolution modes (#580, thanks @SUPR1M3): full_rewrite_probability makes a share of diff-based iterations ask for a full rewrite instead. The mode used is recorded on each program and in the evolution trace. Default 0.0. - AlphaEvolve interoperability (#519, #520, #522, #526, #527, #529, #532, #534, #535, #540, #541): opt-in adapters run Google's AlphaEvolve examples and evaluators locally, and export limited settings and Python bundles the other way. - Competitive evolution (#505): alternating competitive evolution with phase checkpoints. …
    View on GitHub ↗
  2. v0.4.0
    Release notes excerpt
    Highlights - Pluggable island selection and population strategies (#493): an optional island selector plus decision-returning hooks for admission, MAP-Elites cell replacement, archive membership, eviction and migration. ProgramDatabase validates the decisions and still owns every mutation. Default behaviour is unchanged. - LLM token usage tracking (#490): prompt_tokens, completion_tokens and total_tokens are captured from OpenAI-compatible responses, carried back from workers, stored in program metadata and prompt logs, and reported per iteration and as a run total. …
    View on GitHub ↗
  3. v0.3.2
    Release notes excerpt
    Bug fixes Booleans in metrics are flags, not scores. bool is a subclass of int, so a naive isinstance(value, (int, float)) check silently treated True/False as 1.0/0.0. OpenEvolve's own evaluator emits timeout: True as a metric, so this was not a hypothetical input. - Fitness math (utils/metrics_utils.py) — the significant one. When an evaluation timed out, evaluator.py returns {"error": 0.0, "timeout": True}, which safe_numeric_average scored as 0.5 — handing a program that failed outright a mid-range fitness and letting it compete for survival in the …
    View on GitHub ↗

FAQ

How much does it cost to run OpenEvolve?
Cost depends on LLM provider and iterations. For example, o3 costs ~$0.15-0.60 per iteration, while Gemini-2.5-Flash is ~$0.01-0.05. You can reduce costs by using local models, fewer iterations, or cascade evaluation.
Must I use a specific LLM?
No. OpenEvolve supports any OpenAI-compatible API, including OpenAI, Google Gemini, local models (e.g., Ollama), and Claude Code CLI.
What if evolution gets stuck?
Built-in mechanisms like island migration, diversity maintenance, and template stochasticity help avoid stagnation. You can also manually adjust settings like num_diverse_programs or migration intervals.
How can I measure success?
Use the evaluator's combined_score or metric average, or track convergence, diversity coverage, and efficiency via the visualizer.
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