BumbleHive
An agent runtime designed for tool-driven loop engineering.
BumbleHive is a lightweight Python library for building AI agents around a clear execution loop: build context, call the model, execute tools, observe events, and continue until a final result is produced.
Highlights
- Tool-driven agent loop with built-in and MCP-backed tools.
- Streaming lifecycle events for model deltas, tool calls, errors, and final results.
- Session-aware runtime with isolated history and concurrency control.
- Modular Python APIs for configuration, providers, tools, skills, and observability.
Quick Start
import asyncio
import os
import bumblehive
async def main() -> None:
config = bumblehive.RuntimeArguments(
model=os.environ["BUMBLEHIVE_MODEL"],
api_key=os.environ["BUMBLEHIVE_API_KEY"],
base_url=os.getenv("BUMBLEHIVE_BASE_URL"),
workspace="./demo",
)
runtime = bumblehive.from_config(config)
result = await runtime.run("Summarize Agent Loop in agent-loop.md.")
asyncio.run(main())
Examples
See examples for independently runnable Runtime, Loop, Provider, Tools, Skills, and Observability examples.
Local Development
The Python SDK, Server, and WebUI development workflow supports macOS, Windows, and Ubuntu Linux. It requires Python 3.11+, Node.js 22.12+, and pnpm 10.33.0. A dedicated Conda environment is recommended:
conda create -n bumblehive_env python=3.11 -y
conda activate bumblehive_env
pnpm run setup
pnpm run setup is the only project setup entry point. It installs every Node workspace dependency from the root lockfile, then uses the active Python interpreter to install the SDK, Server, test, and desktop packaging dependencies before running the core environment check. pnpm run dev repeats that lightweight preflight before starting either process. If a requirement is missing, the command stops with a targeted error. The same command works on Ubuntu Linux and does not require the desktop system toolchain. Set BUMBLEHIVE_PYTHON to an interpreter path to override the active interpreter.
For daily development:
conda activate bumblehive_env
pnpm run dev
This starts the Server on 127.0.0.1:18421 and the WebUI on 127.0.0.1:1420. Use pnpm run dev:server or pnpm run dev:web to run one component, and pnpm test for the Python test suite.
Desktop
The optional desktop workflow currently targets macOS and Windows. macOS additionally requires Rust and Xcode Command Line Tools. Windows additionally requires the Rust MSVC toolchain, WebView2, and Microsoft C++ Build Tools with the Desktop development with C++ workload.
After the shared pnpm run setup, start development or create the installer for the current platform:
pnpm run dev:desktop
pnpm run build:desktop
Both commands verify Rust, Tauri, and the platform toolchain, then automatically package the Python Server as a sidecar before starting Tauri. build:desktop creates an app and DMG on macOS or an NSIS installer on Windows.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bumblehive-0.1.1.tar.gz.
File metadata
- Download URL: bumblehive-0.1.1.tar.gz
- Upload date:
- Size: 125.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
638f889f1441fe3ce0791b70d8ee10b84deb9cb649c54fe43587c893b0032af8
|
|
| MD5 |
cc24e09ab843c18665b25d96a94dd423
|
|
| BLAKE2b-256 |
b0771eb9d08ac6f0183c57fcabc88913e042af20571f23aeb102e122fd1218f3
|
File details
Details for the file bumblehive-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bumblehive-0.1.1-py3-none-any.whl
- Upload date:
- Size: 113.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d7619c1670b6cba32f9b15f9afb53c036e2a668ab83f292542911243db77d11
|
|
| MD5 |
ce842f224546c685b9d0ee95ae6e0480
|
|
| BLAKE2b-256 |
bdfc2cd08b4e3d0e0836462512cffa3ba13e67b13e885b43d5f41e856ce3f311
|