stirrup
The lightweight foundation for building agents
What it is and what it does
Stirrup is a lightweight agent framework designed to work with language models rather than impose rigid workflows on them. It provides a foundation for building autonomous agents that can execute code (locally, in Docker, or E2B sandboxes), search and fetch web content, call external tools via MCP servers, process files, and incorporate human feedback. The framework includes built-in context management to handle long conversations, multimodal support for images and video, and a flexible tool system based on Pydantic schemas.
The package ships with sensible defaults—local code execution and web search tools—but is fully customizable. You can use it as an installed package or fork it as a template for building specialized agents. It supports multiple LLM providers through OpenAI-compatible APIs, LiteLLM, or custom clients, and includes a skills system for modular, domain-specific instruction packages. The 11 runtime dependencies cover HTTP requests, image and video processing, schema validation, and retry logic.
Use it for:
- Build an autonomous research agent that searches the web, fetches articles, and synthesizes findings into a report
- Create a code-generation agent that writes, tests, and refines scripts based on user requirements
- Develop a data analysis agent that processes files, executes analysis code, and generates visualizations
- Set up a multi-tool agent that integrates with external services via MCP to automate complex workflows
- Prototype a specialized agent by cloning the repository and customizing the core loop and tool set
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Stirrup is a lightweight Python framework for building LLM-powered agents that can execute code, search the web, process files, and call external tools with minimal scaffolding.
Yes. Stirrup is actively maintained, has low install friction, carries a permissive MIT License, and addresses a real need for a lightweight, unopinionated agent framework. Its 548 GitHub stars and recent activity suggest community traction. No known security vulnerabilities. Best suited for developers building agents who want flexibility over rigid frameworks.
Install
stirrup on PyPI
pip
pip install stirrupuv
uv add stirruppoetry
poetry add stirrupInstalling stirrup
Before you install
Low friction installation with a pure Python wheel. Active maintenance—last commit 2026-08-05, released 2026-08-04—and 548 repository stars suggest ongoing development. Requires Python 3.12 or later.
License in practice
MIT License permits unrestricted use, modification, and redistribution with minimal restrictions, making it suitable for both commercial and open-source projects.
Quickstart
pip install stirrup
import asyncio
from stirrup import Agent
from stirrup.clients.chat_completions_client import ChatCompletionsClient
async def main():
client = ChatCompletionsClient(
base_url="https://openrouter.ai/api/v1",
model="anthropic/claude-opus-5",
max_tokens=8_192,
context_window_tokens=1_000_000,
)
agent = Agent(client=client, name="agent", max_turns=15)
async with agent.session(output_dir="./output") as session:
finish_params, history, metadata = await session.run("Your task here")
asyncio.run(main())
Requires Python 3.12 or later. API key environment variable (OPENROUTER_API_KEY or equivalent for your provider) must be set before running.
Verify before relying
- Whether all 11 runtime dependencies are required for core functionality or only for optional features like video processing or web search
- Performance characteristics and latency when running agents with many tool calls or long conversation histories
- Compatibility scope with LLM providers beyond OpenAI-compatible APIs and LiteLLM
Package facts
| License | MIT License Copyright (c) 2025 Artificial Analysis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — anyio, filetype, httpx, json-schema-to-pydantic, moviepy, openai, pillow, pydantic, rich, tenacity, trafilatura |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 241,087/month — #8,888 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: stirrup-0.2.0-py3-none-any.whl
Keywords: ai, agent, llm, openai, anthropic, tools, framework
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
ai-parrotAI-Parrot is an async-first Python framework…
permissive · top 15,000 on PyPI
strands-agentsStrands Agents is a Python SDK for building AI…
permissive · top 1,000 on PyPI
fast-agent-mcpfast-agent-mcp is a CLI-first framework for…
permissive · top 15,000 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
npmai-agentsAutonomous AI agent framework that executes…
permissive · top 15,000 on PyPI
smolagentssmolagents lets you build and run AI agents…
unclear · top 15,000 on PyPI
PraisonAIPraisonAI is a framework for building and…
permissive · top 15,000 on PyPI
openai-agentsA framework for building multi-agent LLM…
permissive · top 1,000 on PyPI
livekit-plugins-anthropicIntegrates Anthropic's Claude models into…
permissive · top 5,000 on PyPI
deepagentsDeep Agents is an opinionated agent harness…
permissive · top 5,000 on PyPI