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 agentsphere 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

agentsphere-2.1.3.tar.gz (75.6 kB view details)

Uploaded Source

Built Distribution

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

agentsphere-2.1.3-py3-none-any.whl (156.3 kB view details)

Uploaded Python 3

File details

Details for the file agentsphere-2.1.3.tar.gz.

File metadata

  • Download URL: agentsphere-2.1.3.tar.gz
  • Upload date:
  • Size: 75.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for agentsphere-2.1.3.tar.gz
Algorithm Hash digest
SHA256 4a8e3f94f813411afb0507066e42a1e24de0db10ead4881f6cb74cd319fa4bd5
MD5 c0576f7bb0c7761daffa9d7dfe901bdd
BLAKE2b-256 470b3e400aeb8ca49af036b82acd9b152369b3a0c13d9067dbc48d2ad90bd298

See more details on using hashes here.

File details

Details for the file agentsphere-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: agentsphere-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 156.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for agentsphere-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 459f9d3429320cf3a0a992d246d8f33809f63f01324b5292402c06cfce1f979a
MD5 8384d32f7ee65f193f623659de1880a5
BLAKE2b-256 8520ad10b7f83431e5ac4058a1986a7341f73ce07e30714a55a1eea9b195acee

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