小核心,大轰鸣 | Small Core, Big Buzz
A lightweight Python SDK for building a complete Agent Loop in just a few lines of code.
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.
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
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.3.0.tar.gz.
File metadata
- Download URL: bumblehive-0.3.0.tar.gz
- Upload date:
- Size: 129.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cefb9789668c478f1bd7799d505cb05bb63138f0b0b0628293c5d82b9381163
|
|
| MD5 |
44142d2837045f2877bc8604a0a006bd
|
|
| BLAKE2b-256 |
659925c7cf14b2dc7c25317b988f82621f1cbf9d846ccbe37cb22ef950561527
|
Provenance
The following attestation bundles were made for bumblehive-0.3.0.tar.gz:
Publisher:
sdk-release.yml on wxhcore/bumblehive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bumblehive-0.3.0.tar.gz -
Subject digest:
8cefb9789668c478f1bd7799d505cb05bb63138f0b0b0628293c5d82b9381163 - Sigstore transparency entry: 2613053722
- Sigstore integration time:
-
Permalink:
wxhcore/bumblehive@90060116a295af24fb8f42c29d94ffa9fffa337e -
Branch / Tag:
refs/tags/sdk-v0.3.0 - Owner: https://github.com/wxhcore
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-release.yml@90060116a295af24fb8f42c29d94ffa9fffa337e -
Trigger Event:
push
-
Statement type:
File details
Details for the file bumblehive-0.3.0-py3-none-any.whl.
File metadata
- Download URL: bumblehive-0.3.0-py3-none-any.whl
- Upload date:
- Size: 114.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f95ec052a3a1b1232fdc5c505b7a168565b627e1b52ca8916b1f50ad495a5505
|
|
| MD5 |
5c86e8a0916b0ffeb86b6906df9fd94f
|
|
| BLAKE2b-256 |
a32d78b677b96664ee74c6d6f528501224d466025d50e5de7944cccdff63ea2a
|
Provenance
The following attestation bundles were made for bumblehive-0.3.0-py3-none-any.whl:
Publisher:
sdk-release.yml on wxhcore/bumblehive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bumblehive-0.3.0-py3-none-any.whl -
Subject digest:
f95ec052a3a1b1232fdc5c505b7a168565b627e1b52ca8916b1f50ad495a5505 - Sigstore transparency entry: 2613053766
- Sigstore integration time:
-
Permalink:
wxhcore/bumblehive@90060116a295af24fb8f42c29d94ffa9fffa337e -
Branch / Tag:
refs/tags/sdk-v0.3.0 - Owner: https://github.com/wxhcore
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-release.yml@90060116a295af24fb8f42c29d94ffa9fffa337e -
Trigger Event:
push
-
Statement type: