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.2.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.2-py3-none-any.whl (156.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentsphere-2.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1f93ad0c00bff8e408f830f2e0cada4f42e583a3c99f2eb05d6c1150dc972b94
MD5 c2ca8f4b7d57d2faa7ba0b15869e1cff
BLAKE2b-256 cf753419623060691254f80bed9ad9058baf15e10ee574e93b92e51b330d899d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentsphere-2.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7506d8c58e6097fa749e0e280ca0446a393e1ce577f08b9e0e25f1374aa3d315
MD5 d01c8ab5230c509e8a99a5eb22cd0a62
BLAKE2b-256 1283c925bfc1a91076a1161f86cb3e082be313913cfd93cc61218a1a964255e5

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