curl --request POST \
--url https://api.klavis.ai/local-sandbox \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"server_names": [],
"test_account_email": "<string>",
"ttl_seconds": 7200
}
'import requests
url = "https://api.klavis.ai/local-sandbox"
payload = {
"server_names": [],
"test_account_email": "<string>",
"ttl_seconds": 7200
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({server_names: [], test_account_email: '<string>', ttl_seconds: 7200})
};
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: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({server_names: [], test_account_email: '<string>', ttl_seconds: 7200})
};
fetch('https://api.klavis.ai/local-sandbox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"local_sandbox_id": "<string>",
"servers": [
{
"id": "<string>",
"server_name": "<string>",
"mcp_server_url": "<string>",
"status": "idle",
"benchmark": "<string>",
"updated_at": "<string>",
"metadata": {},
"auth_data": {},
"tags": [
"<string>"
]
}
],
"status": "idle",
"benchmark": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Acquire a local sandbox
Initializes a specialized Virtual Machine environment (Local Sandbox) that hosts multiple interconnected MCP servers. Optionally specify a benchmark (e.g., ‘Toolathlon’) to configure the sandbox. IMPORTANT: The benchmark parameter may affect BOTH (1) the initial data environment (e.g., preloaded data or pre-configured state for supported servers) AND (2) the MCP server implementation itself — some servers may be routed to a benchmark-specific MCP server with potentially different tools or behaviors.
curl --request POST \
--url https://api.klavis.ai/local-sandbox \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"server_names": [],
"test_account_email": "<string>",
"ttl_seconds": 7200
}
'import requests
url = "https://api.klavis.ai/local-sandbox"
payload = {
"server_names": [],
"test_account_email": "<string>",
"ttl_seconds": 7200
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({server_names: [], test_account_email: '<string>', ttl_seconds: 7200})
};
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: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({server_names: [], test_account_email: '<string>', ttl_seconds: 7200})
};
fetch('https://api.klavis.ai/local-sandbox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"local_sandbox_id": "<string>",
"servers": [
{
"id": "<string>",
"server_name": "<string>",
"mcp_server_url": "<string>",
"status": "idle",
"benchmark": "<string>",
"updated_at": "<string>",
"metadata": {},
"auth_data": {},
"tags": [
"<string>"
]
}
],
"status": "idle",
"benchmark": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
List of MCP servers to acquire, or 'ALL' for all available local servers
Supported MCP servers for local sandboxing. These are typically stateless or local-only servers.
filesystem, git, terminal, desktop-commander, arxiv, excel, word, powerpoint, code-executor, code-runner, pdf-tools, google_cloud, poste_email_toolathlon, canvas, localmemory, playwright Optional benchmark to configure the local sandbox. NOTE: This parameter may affect BOTH (1) the initial data environment (preloaded data for supported servers) AND (2) the MCP server implementation (some servers are routed to a benchmark-specific MCP server with potentially different tools or behaviors).
MCP_Atlas, Toolathlon, MCP_Mark Response
Successful Response
