Skip to content

Getting started

Install the OpenL2 CLI and Python package, then jump straight into the workflow you need.

  • Git
  • Python 3.11 or newer
  • Optional: an AI client that supports local MCP servers (Claude Desktop, Cursor, Codex, etc.)
Terminal window
git clone https://github.com/jetway-languages/openl2.git
cd openl2
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .

Optional extras:

  • Passage analysis / level estimation:
    Terminal window
    python -m pip install -e ".[analysis]"
  • Contributors (pytest, ruff):
    Terminal window
    python -m pip install -e ".[dev]"

Verify the install:

Terminal window
openl2 library list
openl2 validate courses/calling-in-sick

If you plan to author or adapt courses with an AI client, register openl2-course-design-mcp as a local MCP server using absolute paths:

{
"mcpServers": {
"openl2": {
"command": "/absolute/path/to/openl2/.venv/bin/openl2-course-design-mcp",
"args": [],
"env": {
"OPENL2_COURSES_DIR": "/absolute/path/to/courses"
}
}
}
}

Where to place this config for common clients:

  • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
  • Cursor: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
  • Codex / Claude Code: Add via your client’s MCP config (~/.codex/config.toml or .mcp.json)

Omit the env block if you want the agent to work directly on the repository’s built-in courses/ directory.


  • Integrating OpenL2 — Compile courses in Python (compile_level_export) and render lessons in your own app.
  • Learner Modeling & SRS — Track per-Concept/Skill mastery, schedule contextual reviews, and exchange state via openl2-study.
  • Building Plugins — Register an openl2.plugins exporter or integrate via .openl2-study.json.
  • Level Predictor Training — Reproduce or retrain OpenL2’s 0–100 difficulty predictor weights.