Husk sandbox integration for Deep Agents
Project description
langchain-husk
Husk sandbox integration for Deep Agents.
Quick install
uv add langchain-husk
# or
pip install langchain-husk
Quickstart
from husk_client import Husk
from langchain_husk import HuskSandbox
# Provision the sandbox using husk_client (the SDK).
sandbox = Husk(base_url="http://localhost:8000", api_key="hk_...").create(
image="python:3.12-slim",
cpu=2,
memory_mb=1024,
)
# Wrap it for Deep Agents.
backend = HuskSandbox(sandbox=sandbox, timeout=300)
result = backend.execute("python -c 'print(1+2)'")
print(result.output) # "3\n"
print(result.exit_code) # 0
# Use it as a Deep Agents backend:
# from deepagents import DeepAgent
# agent = DeepAgent(backend=backend, ...)
# Always destroy when finished.
sandbox.destroy()
The pattern matches langchain-daytona: the partner package wraps an
existing SDK sandbox object, it does NOT manage lifecycle. Provisioning
goes through husk_client.Husk, destruction through sandbox.destroy().
What is Husk?
Husk is a lightweight, MIT-licensed
AI code sandbox runtime — single-process FastAPI control plane + a Go
daemon that runs inside each container. Single docker run to start, no
Postgres / Redis / OIDC required.
License
MIT.
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 langchain_husk-0.0.1.tar.gz.
File metadata
- Download URL: langchain_husk-0.0.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00c87d108bde7e4c7f96be70b5f715324dc2d68208651e67f65ece77224db639
|
|
| MD5 |
f8137ed48f9cad209ea241346186f698
|
|
| BLAKE2b-256 |
ac0164bb0014e06a77402b6de42cad12c7f26910504fa150b9f31755f00cee6c
|
File details
Details for the file langchain_husk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: langchain_husk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5607e471174472658b7e45887cd5362e11e3fa1b1a1af00b50582c1a6b4eac21
|
|
| MD5 |
f5aa3bbc8b05f281e85269dfd0cdb45d
|
|
| BLAKE2b-256 |
b39ad901c3210a857188d0245c0b675333d5307db65a685a5cf777823637ee2f
|