Skip to main content

floo sandbox backend for Deep Agents

FlooSandbox runs a Deep Agents agent's shell commands and file operations in an existing floo sandbox. Install the package with Python 3.11 or later.

pip install "langchain-floo-sandbox @ git+https://github.com/getfloo/floo-cli.git@langchain-floo-sandbox-v0.0.1#subdirectory=python/langchain-floo-sandbox"

Set FLOO_API_KEY. For a personal key, also set FLOO_ORG_ID to the org that owns the sandbox.

import floo_sandbox as floo
from langchain_floo_sandbox import FlooSandbox

app = floo.App.lookup("deepagents", create_if_missing=True)
sandbox = floo.Sandbox.create(app=app, image=floo.Image.debian_slim(), timeout=300)
try:
    backend = FlooSandbox(sandbox=sandbox)
    # Pass backend to create_deep_agent(..., backend=backend).
    result = backend.write("/app/input.txt", "hello from floo\n")
    assert result.error is None, result.error
    command = backend.execute("tr a-z A-Z < /app/input.txt > /app/output.txt")
    assert command.exit_code == 0, command.output
    output, = backend.download_files(["/app/output.txt"])
    assert output.content == b"HELLO FROM FLOO\n"
finally:
    sandbox.terminate(wait=True)

Pass the backend to create_deep_agent(model=model, backend=backend) while the sandbox is open. The caller chooses the model and closes the sandbox.

Run the tests

From this directory, run:

uv sync --locked --group test
uv run --locked --group test pytest --disable-socket tests/unit_tests
uv run --locked --group test pytest --timeout 120 tests/integration_tests

The integration tests use your floo credentials and create two short-lived sandboxes. Seven assertions in langchain-tests==1.2.0 have strict expected failures. Deep Agents returns absolute file paths, excludes directories from glob results, and replaces existing files on write. The lifecycle test checks all three behaviors.

Metadata

Release files for langchain-floo-sandbox 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-floo-sandbox 0.0.1
File Size Uploaded Provenance Actions
langchain_floo_sandbox-0.0.1.tar.gz 164.2 kB With provenance Details for langchain_floo_sandbox-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-floo-sandbox 0.0.1
File Interpreter ABI Platform Actions
langchain_floo_sandbox-0.0.1-py3-none-any.whl Python 3 none any Details for langchain_floo_sandbox-0.0.1-py3-none-any.whl

Total release size: 170.0 kB

Release files / langchain_floo_sandbox-0.0.1.tar.gz

Download URL langchain_floo_sandbox-0.0.1.tar.gz
Size 164.2 kB
Tags Source
SHA-256 checksum
How to use checksums
39f1a636164fd7b804e592c58e93c3c52a99f078a03d8f8bf9a19480c3d5a31f
BLAKE2b-256 checksum
How to use checksums
9ec63815035b1a3794933b83af6601fc353cdae55a86e04c9be83c5e3e34c02e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / langchain_floo_sandbox-0.0.1-py3-none-any.whl

Download URL langchain_floo_sandbox-0.0.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfbda124b3e8457d7bbdf6d196cc8b1e1f9a4867629d5dab21147a6d4afc2a78
BLAKE2b-256 checksum
How to use checksums
a858c265a179d78e9c607f8268d3885ca1e4dcff5ccf904ef52c7cb5473e04f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for langchain-floo-sandbox 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_floo_sandbox-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

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