Pythonic wrapper around the TypeScript SwarmKit SDK for multi-agent orchestration in E2B sandboxes
Project description
SwarmKit Python SDK
SwarmKit lets you run and orchestrate terminal-based AI agents in secure sandboxes with built-in observability.
Get Started
-
Get your SwarmKit API key at dashboard.swarmlink.ai (new users: request access first)
-
Get an E2B API key at e2b.dev for sandbox execution
-
Install the SDK:
pip install swarmkit
Note: Requires Node.js 18+ (the SDK uses a lightweight Node.js bridge).
-
Check out the official documentation and cookbooks to start shipping with SwarmKit!
Streaming Events
You can subscribe to streaming events:
stdout: Raw NDJSON output from the agent/CLI (may arrive in chunks).stderr: Process stderr (may arrive in chunks).content: Parsed ACP-style events (messages, tool calls, plan updates).
Large Outputs
The Node bridge enforces per-event size limits for responsiveness.
stdout/stderrare chunked when very large; your callback receives each chunk normally.contentevents are lossless: if a payload is too large to stream safely, you receive a truncated preview plus arefto a local JSON file containing the full payload.
Example:
def on_content(evt):
if evt.get("truncated") and evt.get("ref"):
full_update = open(evt["ref"]["path"], "r", encoding="utf-8").read()
# full_update is the original ACP update JSON
swarmkit.on("content", on_content)
Reporting Bugs
We welcome your feedback. File a GitHub issue to report bugs or request features.
Connect on Discord
Join the SwarmKit Developers Discord to connect with other developers using SwarmKit. Get help, share feedback, and discuss your projects with the community.
License
See LICENSE for details.
Project details
Release history Release notifications | RSS feed
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 swarmkit-0.1.29.tar.gz.
File metadata
- Download URL: swarmkit-0.1.29.tar.gz
- Upload date:
- Size: 529.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
840b476edd6395d89e2fd461a89f9e370db23a4a0e56869b67ec9e56b9fadbb1
|
|
| MD5 |
ddbeac32bd4445c2bd4da95f8fd174c7
|
|
| BLAKE2b-256 |
34fbbc5bd17db7ef81c4c2d19baf14d4b0fb41d4e42ea1f89456e5275e344a73
|
File details
Details for the file swarmkit-0.1.29-py3-none-any.whl.
File metadata
- Download URL: swarmkit-0.1.29-py3-none-any.whl
- Upload date:
- Size: 531.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6922eec35e051245ca7cf2d837a66e6927af7b179eda18f768fdbeb414f45af
|
|
| MD5 |
b675842b014f2533bc00940d20543207
|
|
| BLAKE2b-256 |
931990a01b22c3ffcd9680e65228bc13f875890ec53dac7f60c0ea405a2434ff
|