Skip to main content
Kapso sends every model call through a coding-agent CLI. Install those CLIs and log in before installing the Python package — on its own the package cannot reach a model, and kapso evolve will stop in seconds rather than fail deep inside a run.

Prerequisites

Install Kapso

1

Install and log in to the coding-agent CLIs

Both logins are interactive and open a browser. To authenticate without a browser, see Using API keys instead of a CLI login.
2

Add an OpenAI key for embeddings

Create a .env file in the directory you will run Kapso from:
This key is used only to embed text for knowledge search and memory. Generation runs through the CLIs above.
3

Install the package

The package is leeroo-kapso. The PyPI package named kapso is an unrelated WhatsApp tool that installs a kapso command of its own and shadows this one; if it is present, pip uninstall kapso first.To work from a source checkout instead:
4

Verify the machine is ready

Every required check must read [OK ] before you run anything else.

How do I check my setup?

kapso doctor reports what your config requires, and names one fix for anything missing:
Your own list will be longer or shorter than this one. It is derived from your config, so enabling knowledge search adds Weaviate and Neo4j rows, and configuring a lesson bank adds a remote-reachability row. These are the same checks each verb runs before it does any work, so doctor cannot disagree with what a run will do. The command exits non-zero when a required item is missing, which makes it usable in CI.

What the markers mean

Each failing item prints up to three lines: reason for what is wrong, needed by for the config key that wants it, and fix for the command that resolves it.

How do I check just one command’s requirements?

Name a verb to narrow the report to that verb’s own requirements. Requirements follow your config, so a verb that never calls Codex is never asked for it:
The five verbs are research, learn_knowledge, evolve, learn and deploy. With no verb, doctor reports the union of all five.

How do I confirm my models are actually reachable?

Add --models to fire a one-token live call per configured CLI and model pair. A revoked login, or a model your plan does not include, surfaces here in seconds instead of hours into a campaign. A usage cap on a model you can serve does not: a one-token probe passes until the cap is hit.
--models spends a small number of real tokens. The plain doctor makes no model calls.

Using API keys instead of a CLI login

Each agent block in the config carries an auth_mode. The shipped default is oauth, which uses the CLI’s own stored login: For non-interactive environments such as CI, put a token in .env instead of logging in:

Optional: Knowledge-graph backends

learn_knowledge() and kapso index_kg store into a local Weaviate and Neo4j. Both run in Docker. From a source checkout:
kapso doctor reports both as Weaviate (localhost:8080) and Neo4j (localhost:7687) when your config enables knowledge search.

Optional: Benchmarks

The benchmark harnesses live in the source checkout under benchmarks/ and each needs its upstream repository installed first.
Kaggle competition problems. Needs Git LFS.
See MLE-Bench for how to run it.

Optional: Leeroopedia MCP

Leeroopedia is a curated knowledge base of ML and AI frameworks. Kapso agents query it during ideation and implementation to look up APIs, build plans and diagnose failures.
Get a key at app.leeroopedia.com, then add it to .env:

Troubleshooting

Global npm binaries have to be on your PATH. Confirm the shell can see them:
If npm install -g wrote somewhere outside your PATH, npm prefix -g shows where.
The login is stored per machine and expires. Re-run it:
Codex stores its login at ~/.codex/auth.json. Claude Code answers claude auth status.
Check the container logs:
Ports 8080, 50051, 7474 and 7687 must be free. If one is taken, change the mapping in services/infrastructure/docker-compose.yml.
Probe the models directly with kapso doctor evolve --models — see How do I confirm my models are actually reachable?

Working through a coding agent

If Claude Code, Codex or OpenCode will be running Kapso for you, copy the Kapso skill into the project as well. It has the agent run kapso doctor first, name the right package, and launch campaigns in the background with the handoff you need.

Quickstart

Run your first campaign

CLI reference

Commands, modes and flags

Kapso skill for coding agents

Let your coding agent run Kapso correctly
Related pages: Quickstart · CLI reference · Kapso skill for coding agents · What is Kapso Kapso is an open-source framework by Leeroo that builds software toward measurable goals through experiment campaigns. Source code: github.com/Leeroo-AI/kapso · Install: pip install leeroo-kapso · Every page as plain text: llms.txt.