Skip to main content

deepagents-microsandbox

Microsandbox backend for the DeepAgents framework. This package enables DeepAgents to launch and control isolated sandbox environments using Microsandbox.

Key Features

  • Sandbox Provider: Manages the lifecycle of microsandbox instances (create, list, delete).
  • Sandbox Backend: Provides a standard interface for file operations and command execution within a sandbox.
  • DeepAgents Integration: Fully compatible with the DeepAgents SandboxProvider and SandboxBackend interfaces.

Installation

pip install deepagents-microsandbox

Usage

from deepagents_microsandbox import MicrosandboxProvider

# Initialize the provider connecting to a microsandbox server
provider = MicrosandboxProvider(server_url="http://localhost:5555")

# Create or get a sandbox
sandbox = provider.get_or_create(sandbox_id=None)

# Execute a command
result = sandbox.execute("echo 'Hello World'")
print(result.stdout)

# Clean up
provider.delete(sandbox_id=sandbox.id)

Development

This project uses uv for dependency management.

Prerequisites

  • uv installed.
  • Python 3.11 or higher.

Setup

Install dependencies:

uv sync

Testing

Tests are split into unit tests (mocked) and integration tests (requiring a real server).

Run Unit Tests (Mocked) These tests mock the HTTP interactions and do not require a running server.

uv run pytest

Run Integration Tests These tests verify behavior against a real microsandbox server.

  1. Start a microsandbox server in dev mode:
    msb server start --dev
    
  2. Run the tests with the environment variable:
    MICROSANDBOX_DEV_SERVER=http://127.0.0.1:5555 uv run pytest
    

Metadata

Release files for deepagents-microsandbox 1.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 deepagents-microsandbox 1.0.1
File Size Uploaded
deepagents_microsandbox-1.0.1.tar.gz 140.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepagents-microsandbox 1.0.1
File Interpreter ABI Platform
deepagents_microsandbox-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 150.4 kB

Release files / deepagents_microsandbox-1.0.1.tar.gz

Download URL deepagents_microsandbox-1.0.1.tar.gz
Size 140.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b9471f251597fc56b9b2bc5f41a478cd6b87db2641a1e91210978b4abeeb1600
BLAKE2b-256 checksum
How to use checksums
8dd577562772b7bf868478e5e3badb4f66e60171c6b740be4cf9fd5ffa0c37e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 4, 2026.

Transparency log

Release files / deepagents_microsandbox-1.0.1-py3-none-any.whl

Download URL deepagents_microsandbox-1.0.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8173ce8dbdf290a0fb5bf83f204814b587470ba9b93fcdad8980ca85e46604b1
BLAKE2b-256 checksum
How to use checksums
e8e57fc618dfa08d60a954bf3b13cb9c765ecb37cd3ad8c2174171dcbff8b00b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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