Skip to main content
GET
/
local-sandbox
List local sandboxes
curl --request GET \
  --url https://api.klavis.ai/local-sandbox \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.klavis.ai/local-sandbox"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.klavis.ai/local-sandbox', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.klavis.ai/local-sandbox', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "local_sandboxes": [
    {
      "local_sandbox_id": "<string>",
      "created_at": "<string>",
      "servers": [
        {
          "id": "<string>",
          "server_name": "<string>",
          "mcp_server_url": "<string>",
          "benchmark": "<string>",
          "updated_at": "<string>",
          "metadata": {},
          "auth_data": {},
          "tags": [
            "<string>"
          ]
        }
      ],
      "benchmark": "<string>"
    }
  ],
  "total_count": 123
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Response

200 - application/json

Successful Response

local_sandboxes
LocalSandboxInfo · object[]
required

List of all local sandbox environments

total_count
integer
required

Total number of local sandboxes