What is a sandbox SDK?

A sandbox SDK is a client library that creates sandboxes through an API. Your code uses it to run commands, move files and stop a sandbox.

Updated

What the SDK does

An SDK call starts a sandbox, runs a command or stops the sandbox. Some SDKs also manage files and open a terminal. In some SDKs, a command call returns its result after the command ends.

The SDK and the API

An SDK wraps the provider's API in functions for one language. Some docs also show raw REST calls, so the API works without an SDK. The SDK saves you from writing the request code.

Languages

Language support differs between SDKs. Many cover Python and TypeScript. Some cover one language only, and some cover more than two.

What to check

  • The languages you use, and whether each one has the calls you need.
  • Whether the SDK has async calls for your language.
  • Whether command output streams while the command runs, or arrives at the end. For terminal output, see PTY.
  • What happens to your code when a session ends.
  • The license of the SDK code. Read the license file in the SDK repository.

Related terms

All glossary terms

Related