Skip to main content

Core Installation

1

Install from PyPI (recommended)

2

Or install from source (for development or wiki data)

This repository uses Git LFS for large files in data/wikis_batch_top100/. If you didn’t install Git LFS before cloning, run these commands to fetch the files.
3

Configure API keys

Create .env in project root:

Coding Agent Setup

Kapso supports multiple coding agents. Install the ones you plan to use:
Aider is installed automatically with pip install -e .No additional setup required. Uses git-centric diff-based editing.

Leeroopedia MCP (Optional)

Connect Kapso to Leeroopedia — a curated knowledge base of 1000+ ML/AI frameworks. Kapso agents use it during ideation and implementation to search docs, build plans, verify code, diagnose failures, and look up hyperparameter defaults.
Sign up at app.leeroopedia.com for an API key ($20 free credit, no credit card required), then add to your .env:
See the Leeroopedia MCP docs for Claude Code and Cursor setup.

Benchmark Installation

MLE-Bench provides Kaggle competition problems.Prerequisites:
  • Git LFS (sudo apt-get install git-lfs or brew install git-lfs)
Installation:
Verify:

Infrastructure Setup

Kapso uses Docker containers for its knowledge graph infrastructure:
  • Weaviate: Vector database for semantic search
  • Neo4j: Graph database for relationships
  • MediaWiki (optional): Web UI for browsing wiki pages

Default Service URLs

Manual Setup

If you prefer to start services individually:
This starts:
  • Weaviate (port 8080) - Vector database for embeddings
  • Neo4j (ports 7474, 7687) - Graph database for relationships
  • MediaWiki (port 8090) - Web UI for browsing wiki pages
  • MariaDB - Backend database for MediaWiki
Weaviate (vector DB):
Neo4j (graph DB):

Configure Environment

Add infrastructure settings to your .env:

Knowledge Graph Indexing

After infrastructure is running, index your wiki pages:

Index File Format

The .index file is a JSON reference to the indexed data:

KG Search Backends

Environment Variables Reference

Verify Installation

Troubleshooting

If default ports are in use, modify services/infrastructure/docker-compose.yml or use different port mappings.