Skip to main content

Agentsphere SDK that give agents cloud environments

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iruidong-2.1.6.tar.gz (76.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iruidong-2.1.6-py3-none-any.whl (156.6 kB view details)

Uploaded Python 3

File details

Details for the file iruidong-2.1.6.tar.gz.

File metadata

  • Download URL: iruidong-2.1.6.tar.gz
  • Upload date:
  • Size: 76.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for iruidong-2.1.6.tar.gz
Algorithm Hash digest
SHA256 2ca11a4b01a62281dea1f160b543b525ced8e0d7072a72cfe6555d9593c8a704
MD5 8bf8318eae2c38f52d7bce29042e27e2
BLAKE2b-256 e6944f331b5c637c7e49515e406f51b2a7d19022acbf4a75532b52541aa5f7ef

See more details on using hashes here.

File details

Details for the file iruidong-2.1.6-py3-none-any.whl.

File metadata

  • Download URL: iruidong-2.1.6-py3-none-any.whl
  • Upload date:
  • Size: 156.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for iruidong-2.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d78430053c992fcc760ed25303a070e8133a49e6853f0a2d1d6a02f35dd732b2
MD5 067aa42d9ecbb4adaf1015c57a01339c
BLAKE2b-256 42da8b0af9be097280c7ae5dc4d76b5928e733f5dc1aa342a37011a9f05a8a8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page