Skip to main content

Prerequisites

  • Python 3.12+
  • Git with Git LFS
  • API keys for OpenAI and/or Google (Gemini)

Installation

1

Install from PyPI (recommended)

2

Or install from source (for wiki knowledge data)

3

Set up API keys

Create a .env file in the project root:
4

Connect Leeroopedia MCP (optional)

Give Kapso access to curated best practices from 1000+ ML/AI frameworks:
Sign up at app.leeroopedia.com for an API key ($20 free credit), then add to your .env:

Run Your First Experiment

Option 2: CLI

Expected Output

The system creates git branches for each experiment and outputs the best solution path.

With Knowledge Graph (Optional)

For domain-specific context, index a knowledge graph first:
1

Start infrastructure

2

Index wiki pages (one-time setup)

3

Use the indexed KG

Web Research (Optional)

Kapso can do deep web research before evolving:

Understanding the Output

After evolve() completes, you get a SolutionResult:
The code is in a git repository with branches for each experiment:

Next Steps

Full Installation

Set up MLE-Bench, ALE-Bench, and infrastructure

Architecture

Understand the system design

Configuration

Customize modes and parameters

Execution Flow

How experiments are run