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.1.3.tar.gz (129.5 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.1.3-py3-none-any.whl (115.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bumblehive-0.1.3.tar.gz
Algorithm Hash digest
SHA256 11dff54892559bbba9147c8a1d3cb648f26f16a9aaf24902239d9f7c183a27b2
MD5 65b9792a12e77856358362228c8dca4b
BLAKE2b-256 28eff9102f308b0d80a97524a5803ce6d6f5dfff9153e79c808243e5f2fdd495

See more details on using hashes here.

Provenance

The following attestation bundles were made for bumblehive-0.1.3.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.1.3-py3-none-any.whl.

File metadata

  • Download URL: bumblehive-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 115.0 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee61b8b41575d2dd7c7e43cd4611fcd31a154bc495c35fd3d707d554859216da
MD5 5bd16da935083e1d32590c9ecab0a143
BLAKE2b-256 e508ac4d556e0bbd6d3c7ee3c5b2cab3a5bf01504d5c91d92c2dc8e343037a73

See more details on using hashes here.

Provenance

The following attestation bundles were made for bumblehive-0.1.3-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

0.2.0

2 files

This release

0.1.3 This release

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