Skip to main content

BumbleHive

小核心,大轰鸣 | Small Core, Big Buzz

A lightweight Python SDK for building a complete Agent Loop in just a few lines of code.

PyPI Python Python SDK CI MCP License linux.do

English | 简体中文


Try It in 30 Seconds

Install the Python SDK:

python -m pip install bumblehive

Set BUMBLEHIVE_MODEL, BUMBLEHIVE_API_KEY, and BUMBLEHIVE_BASE_URL, then run:

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.environ["BUMBLEHIVE_BASE_URL"],
    )

    async with bumblehive.from_config(config) as runtime:
        await runtime.run_console("Explain Agent Loop in one sentence.")


asyncio.run(main())

run_console() displays the runtime process and final answer directly in your terminal.

Choose a Run Method

API Best for
run_console() Trying or debugging an Agent in the terminal
run() Getting a structured result for a Python application
stream() Consuming runtime events in a custom interface

Core Capabilities

  • Manage model calls, the Agent Loop, and resource lifecycles through Runtime.
  • Give an Agent Python functions, built-in tools, or MCP servers.
  • Add streaming events, conversation history, persisted sessions, Skills, and observability hooks when needed.

Desktop

Bumblehive Desktop is an optional reference application built with the Bumblehive Python SDK. It shows how Runtime, tools, and sessions can be combined into a complete product.

Bumblehive Desktop demo

Desktop installers will be published through GitHub Releases.

Next Steps

The English documentation is in progress. See the English overview, the complete Chinese documentation, or the runnable examples.

Goal Start here
Make the first Agent call Quickstart (Chinese)
Add a Python tool Register a tool (Chinese)
Save a conversation History and sessions (Chinese)
Load task instructions Skills (Chinese)
Connect external tools MCP (Chinese)
Look up a public API API Reference (Chinese)
Browse runnable code 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:

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:

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.

Metadata

Release files for bumblehive 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bumblehive 0.4.0
File Size Uploaded
bumblehive-0.4.0.tar.gz 138.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bumblehive 0.4.0
File Interpreter ABI Platform
bumblehive-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 254.7 kB

Release files / bumblehive-0.4.0.tar.gz

Download URL bumblehive-0.4.0.tar.gz
Size 138.5 kB
Tags Source
SHA-256 checksum
How to use checksums
105156a6849ad654423738b564c861be1df2ea59f9b9664950e4050f01560427
BLAKE2b-256 checksum
How to use checksums
9d30915f5e5e05960e0b1083e45a99c6f8cd3d3d060c45c2f544104bced1d803
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / bumblehive-0.4.0-py3-none-any.whl

Download URL bumblehive-0.4.0-py3-none-any.whl
Size 116.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36b319e2d769db544e63c35908977d75453d1b6d40fc5c7bbb26c7b17a1de176
BLAKE2b-256 checksum
How to use checksums
182258fcae9d22dfdbb1ebba2cecb590ebfb691665c575e49a789f1ee04fcf90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page