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

agentsphere-2.1.6-py3-none-any.whl (157.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentsphere-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 agentsphere-2.1.6.tar.gz
Algorithm Hash digest
SHA256 485a4f991b6ddc32f910bb5e6b9fbda124a36f1c64856e0c3e8568ac2360d643
MD5 a14251f2a8621ed952c21bf9191faf5d
BLAKE2b-256 cfe2a39a079e03e7c7db8f855648f48904e8e2cc390b7e4cad0640656e5a6997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentsphere-2.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b246f037ee9682525247a5244c46b0e2cb962888f598c270aa37c6af5105e70e
MD5 1e53c0b9771c64fc11d1e60c5d48cad4
BLAKE2b-256 980b2f6446c2a27a14bd6cf84f59b635ecf9ca10d95965dfd6adb5a0b265eefb

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