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.5.tar.gz (76.5 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.5-py3-none-any.whl (157.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agentsphere-2.1.5.tar.gz
Algorithm Hash digest
SHA256 d26aac2f2d1b3f9948aba49c54342d1175a74f0346f4081985fb9cc4ac5d0b0a
MD5 e35653d59227584d723b3c9406a3cff8
BLAKE2b-256 04e4b50136b287d957150e94ac9fcd5c17e62f6d839c1ee4ac9598910e11adc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentsphere-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4f06c94275cca333089a1cc5cb062ed431ebf7e71fcdba7e1fcd8904ff3f2db
MD5 569cc2f2d5e14ca35a35d03363988163
BLAKE2b-256 6ee0e4dc4e09faa51280e43b70fbe7b4887afb6260cea221b94883f7ce6cac59

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