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 First call (Chinese)
Add a Python tool Register a tool (Chinese)
Save a conversation History and sessions (Chinese)
Use Skills or MCP Skills and 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bumblehive-0.2.0.tar.gz (129.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bumblehive-0.2.0-py3-none-any.whl (114.6 kB view details)

Uploaded Python 3

File details

Details for the file bumblehive-0.2.0.tar.gz.

File metadata

  • Download URL: bumblehive-0.2.0.tar.gz
  • Upload date:
  • Size: 129.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bumblehive-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8cec7c1613669e0fbef631e7d37e88c1d70a9cd3b2a04150ee2461d8568a04c2
MD5 5f9f378413f2299259ae1339eb5b2b3b
BLAKE2b-256 862eed4a19e96bd3442f29b443feb9772f8c23238ce2081901ea1656c8fd1d36

See more details on using hashes here.

Provenance

The following attestation bundles were made for bumblehive-0.2.0.tar.gz:

Publisher: sdk-release.yml on wxhcore/bumblehive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bumblehive-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bumblehive-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 114.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for bumblehive-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54c5bbb7fa8317a3b74cc0c951181b07ff4bc1c1c0d3e5811e745adee6655ffc
MD5 b643eaddc338316717164ee936a66719
BLAKE2b-256 91bddb009bc89f3c1cbbc10c65d97e793b8dd56cd318096c19d6c6f95c84d251

See more details on using hashes here.

Provenance

The following attestation bundles were made for bumblehive-0.2.0-py3-none-any.whl:

Publisher: sdk-release.yml on wxhcore/bumblehive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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