#107107th of 118 in Agent frameworks and SDKs

rlm

Python library that lets an LLM recursively call itself from a REPL

Stars
5.8k
License
MIT
Last commit
Nov 2026
Last release
Jun 2026
Language
Python
Stars, last 29 weeks+2,290
21 Apr 2026: 3,469 stars28 Apr 2026: 4,005 stars5 May 2026: 4,116 stars12 May 2026: 4,173 stars19 May 2026: 4,225 stars26 May 2026: 4,278 stars2 Jun 2026: 4,366 stars9 Jun 2026: 4,401 stars16 Jun 2026: 4,749 stars23 Jun 2026: 5,045 stars30 Jun 2026: 5,121 stars7 Jul 2026: 5,181 stars14 Jul 2026: 5,217 stars21 Jul 2026: 5,254 stars28 Jul 2026: 5,296 stars4 Aug 2026: 5,322 stars11 Aug 2026: 5,407 stars18 Aug 2026: 5,469 stars25 Aug 2026: 5,508 stars1 Sept 2026: 5,547 stars8 Sept 2026: 5,578 stars15 Sept 2026: 5,606 stars22 Sept 2026: 5,621 stars29 Sept 2026: 5,636 stars6 Oct 2026: 5,663 stars13 Oct 2026: 5,686 stars20 Oct 2026: 5,701 stars27 Oct 2026: 5,727 stars3 Nov 2026: 5,743 stars10 Nov 2026: 5,759 stars

3,469 on 21 Apr 20265,759 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

rlms replaces a plain llm.completion call with rlm.completion. The prompt is loaded as a variable in a REPL, and the model writes code to inspect it and launch sub-LM calls. It supports OpenAI, Anthropic, OpenRouter and Portkey clients, plus local models through vLLM's OpenAI interface. The repo also includes a verifiers/prime-rl training environment and a trajectory visualizer.

Who it is for: Developers and researchers building long-context LLM agents in Python

Strengths

  • Handles long contexts by keeping the prompt as a REPL variable with recursive sub-calls
  • REPL backends: local, ipython, docker, modal, prime, daytona, e2b
  • Includes a prime-rl/verifiers training setup with an OOLONG example
  • JSONL trajectory logging with a local visualizer for inspecting sub-calls

Weaknesses

  • Default local REPL runs Python exec in the host process; README says not for production
  • Prime Sandboxes are beta, with slow runtimes noted as an open issue
  • Cloud sandbox environments need separate accounts and API keys (Modal, Prime, Daytona, E2B)
  • Training harness uses unsandboxed local REPL, which the README says is not ideal for safety

What it needs

  • no GPU
  • Needs Python 3.11+, LLM API or vLLM server, Docker (optional), Modal/Prime/Daytona/E2B (optional), Node.js (visualizer)
  • Models: OpenAI, Anthropic, OpenRouter, Portkey, vLLM
  • port 3001

Quick answers

Is rlm open source?

Yes. Its code is on GitHub under the MIT license.

Does rlm need a GPU?

No, it runs without one.

Also in Agent frameworks and SDKs

See all 118
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)75.9k stars+15,456 (+26%) in 30 daysMIT95 out of 100
2openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing30.6k stars+689 (+2.3%) in 30 daysMIT91 out of 100
3mastraTypeScript framework for building AI agents, workflows and MCP servers29.5k stars+792 (+2.8%) in 30 dayscustom license91 out of 100
#4browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)120.7k stars+3,290 (+2.8%) in 30 daysMIT90 out of 100
#5copilotkitSDK for adding agent chat, generative UI and shared state to apps38.6k stars+760 (+2.0%) in 30 daysMIT90 out of 100