Python SDK
Works locallyWorks in the local build today.
from harebox import HareBox
hb = HareBox() # reads HAREBOX_API_KEY and HAREBOX_API_URL
box = hb.create(size={"preset": "default"}, sleep={"mode": "auto"})
print(box.run("echo hello")["stdout"])
for copy in box.fork(count=2):
print(copy.id)
for event in box.prompt("echo hi", harness="shell"):
print(event["type"])
box.stop()
Every API operation is also a typed method, such as hb.get_limits(). Streams reconnect from their last cursor. Errors raise ApiError, with code and fix.

