Skip to main content

Agentsphere Python SDK

PyPI version

What is Agentsphere?

Agentsphere is an infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our Python SDK.

Run your first Sandbox

1. Install SDK

pip install agentsphere

2. Get your Agentsphere API key

  1. Sign up to Agentsphere here.
  2. Get your API key here.
  3. Set environment variable with your API key
AGENTSPHERE_API_KEY=***

3. Start a sandbox and run commands

from agentsphere import Sandbox

with Sandbox.create() as sandbox:
    result = sandbox.commands.run('echo "Hello from Agentsphere!"')
    print(result.stdout)  # Hello from Agentsphere!

4. Check docs

Visit Agentsphere documentation.

Metadata

Release files for agentsphere 3.0.0

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

Source distribution (sdist)

Source distribution for agentsphere 3.0.0
File Size Uploaded
agentsphere-3.0.0.tar.gz 155.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentsphere 3.0.0
File Interpreter ABI Platform
agentsphere-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 456.0 kB

Release files / agentsphere-3.0.0.tar.gz

Download URL agentsphere-3.0.0.tar.gz
Size 155.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cafab1f8592c6b66d6cb83de58a7cee8f1a518d12c7a1721f7e0ea8ebe9706b7
BLAKE2b-256 checksum
How to use checksums
ae77d985252d721c30c318b3d35ea401a2e730176af5a175e44248047cf45d2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

Release files / agentsphere-3.0.0-py3-none-any.whl

Download URL agentsphere-3.0.0-py3-none-any.whl
Size 300.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26d741755e5dfcfba6ccb77c7a4dc4586f65ef8235310eb1daffe333444fd4fb
BLAKE2b-256 checksum
How to use checksums
1a6ce7ff31cb451a125ee8872c2fea863dc2c111bfeee05b77015b39da4aed51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.1.6

2 release files

2.1.5

2 release files

2.1.3

2 release files

2.1.2

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

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