skillfed

stirrup

The lightweight foundation for building agents

stirrup v0.2.0 241.1K downloads/30d#8,888 on PyPI548
Permissive 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) Active released

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 stirrup

uv

uv add stirrup

poetry

poetry add stirrup

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

llm agent frameworkai agent buildercode execution agentautonomous agent frameworktool-calling agent librarymulti-tool agent systemlightweight agent framework
agent-frameworkllm-toolsasync-first

More Python Modules packages

Further reading