Skip to main content

What is Agentsphere?

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

Run your first Sandbox

1. Install SDK

pip install agentsphere-code-interpreter

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. Execute code with code interpreter inside Sandbox

from iruidong import Sandbox

with Sandbox.create() as sandbox:
    sandbox.run_code("x = 1")
    execution = sandbox.run_code("x+=1; x")
    print(execution.text)  # outputs 2

4. Check docs

Visit Agentsphere documentation.

Metadata

Release files for iruidong 2.1.6

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

Source distribution (sdist)

Source distribution for iruidong 2.1.6
File Size Uploaded
iruidong-2.1.6.tar.gz 76.6 kB Details

Built distribution (wheel)

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

Total release size: 233.2 kB

Release files / iruidong-2.1.6.tar.gz

Download URL iruidong-2.1.6.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2ca11a4b01a62281dea1f160b543b525ced8e0d7072a72cfe6555d9593c8a704
BLAKE2b-256 checksum
How to use checksums
e6944f331b5c637c7e49515e406f51b2a7d19022acbf4a75532b52541aa5f7ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

Release files / iruidong-2.1.6-py3-none-any.whl

Download URL iruidong-2.1.6-py3-none-any.whl
Size 156.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d78430053c992fcc760ed25303a070e8133a49e6853f0a2d1d6a02f35dd732b2
BLAKE2b-256 checksum
How to use checksums
42da8b0af9be097280c7ae5dc4d76b5928e733f5dc1aa342a37011a9f05a8a8b
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

2.1.6 This release

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