Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

6.2 KB
Raw Blame
[
  {
    "id": "python",
    "label": "Python",
    "group": "sdk",
    "icon": "python",
    "install": "pip install --upgrade boxlite",
    "run": "BOXLITE_API_KEY=$KEY python main.py",
    "codeLanguage": "python",
    "setupLabel": "Run in your local terminal",
    "setupDescription": "Run this command in your local development environment to install the Python library. Continue once the install finishes.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "python"
  },
  {
    "id": "typescript",
    "label": "Node",
    "group": "sdk",
    "icon": "typescript",
    "install": "npm install @boxlite-ai/boxlite tsx",
    "run": "BOXLITE_API_KEY=$KEY npx tsx index.mts",
    "codeLanguage": "typescript",
    "setupLabel": "Run in your local terminal",
    "setupDescription": "Run this command in your local development environment to install the Node library. Continue once the install finishes.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "typescript"
  },
  {
    "id": "go",
    "label": "Go",
    "group": "sdk",
    "icon": "go",
    "install": "go get github.com/boxlite-ai/boxlite/sdks/go\ngo run github.com/boxlite-ai/boxlite/sdks/go/cmd/setup",
    "run": "BOXLITE_API_KEY=$KEY go run .",
    "codeLanguage": "go",
    "setupLabel": "Run in your local terminal",
    "setupDescription": "Run this command in your local development environment to install the Go library. Continue once the install finishes.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "go"
  },
  {
    "id": "rust",
    "label": "Rust",
    "group": "sdk",
    "icon": "rust",
    "install": "cargo add 'boxlite@*' --features rest\ncargo update -p boxlite\ncargo add tokio --features macros,rt-multi-thread\ncargo add futures",
    "run": "BOXLITE_API_KEY=$KEY cargo run",
    "codeLanguage": "rust",
    "setupLabel": "Run in your local terminal",
    "setupDescription": "Run this command in your local development environment to install the Rust library. Continue once the install finishes.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "rust"
  },
  {
    "id": "c",
    "label": "C",
    "group": "sdk",
    "icon": "file",
    "install": "(\n  set -eu\n  command -v jq >/dev/null\n  PLATFORM=${PLATFORM:-darwin-arm64}\n  # Linux: PLATFORM=linux-x64-gnu or linux-arm64-gnu\n  ASSET_URL=$(curl -fsSL 'https://api.github.com/repos/boxlite-ai/boxlite/releases?per_page=100' \\\n    | jq -er --arg platform \"$PLATFORM\" '\n      sort_by(.published_at) | reverse\n      | first(.[] | select(.draft == false and .prerelease == false)\n        | . as $release | .assets[]\n        | select(.state == \"uploaded\")\n        | select(.name == (\"boxlite-c-\" + $release.tag_name + \"-\" + $platform + \".tar.gz\"))\n        | .browser_download_url)')\n  STAGING=$(mktemp -d .boxlite-c-sdk.XXXXXX)\n  INSTALLED=0\n  cleanup() {\n    if [ \"$INSTALLED\" = 0 ] && { [ -e \"$STAGING/previous\" ] || [ -L \"$STAGING/previous\" ]; }; then\n      if [ -e boxlite-c-sdk ] || [ -L boxlite-c-sdk ]; then\n        printf 'Previous SDK preserved in %s\\n' \"$STAGING/previous\" >&2\n        return\n      fi\n      if ! mv \"$STAGING/previous\" boxlite-c-sdk; then\n        printf 'Previous SDK preserved in %s\\n' \"$STAGING/previous\" >&2\n        return\n      fi\n    fi\n    rm -rf \"$STAGING\"\n  }\n  trap cleanup EXIT\n  trap 'exit 130' INT\n  trap 'exit 143' TERM\n  curl -fsSL \"$ASSET_URL\" -o \"$STAGING/sdk.tar.gz\"\n  mkdir \"$STAGING/new\"\n  tar xzf \"$STAGING/sdk.tar.gz\" --strip-components=1 -C \"$STAGING/new\"\n  if [ -e boxlite-c-sdk ] || [ -L boxlite-c-sdk ]; then\n    mv boxlite-c-sdk \"$STAGING/previous\"\n  fi\n  mv \"$STAGING/new\" boxlite-c-sdk\n  INSTALLED=1\n)",
    "run": "cc main.c -Iboxlite-c-sdk/include -Lboxlite-c-sdk/lib -lboxlite -pthread \\\n  -Wl,-rpath,\"$PWD/boxlite-c-sdk/lib\" -o quickstart\nBOXLITE_API_KEY=$KEY BOXLITE_REST_URL={{REST_API_URL}} ./quickstart",
    "codeLanguage": "c",
    "setupLabel": "Download C SDK",
    "setupDescription": "Requires curl, jq and tar. Downloads the newest stable release with a C SDK archive for your platform. Set PLATFORM for Linux. The next step includes boxlite.h and links libboxlite.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "c"
  },
  {
    "id": "cli",
    "label": "CLI",
    "group": "direct",
    "icon": "terminal",
    "install": "curl -fsSL https://sh.boxlite.ai | sh\ncommand -v jq",
    "run": "BOXLITE_API_KEY=$KEY bash quickstart.sh",
    "codeLanguage": "bash",
    "setupLabel": "Install CLI",
    "setupDescription": "Installs the boxlite command and checks jq. The example uses curl and jq to discover your organization before creating a Box.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "cli"
  },
  {
    "id": "rest",
    "label": "REST",
    "group": "direct",
    "icon": "server",
    "install": "command -v curl\ncommand -v jq",
    "run": "BOXLITE_API_KEY=$KEY BOXLITE_REST_URL={{REST_API_URL}} bash quickstart-rest.sh",
    "codeLanguage": "bash",
    "setupLabel": "Check REST tools",
    "setupDescription": "REST does not require an SDK install. The next step uses curl and jq to create a Box and execute a command. OpenAPI is available for full endpoint reference and generated clients.",
    "executionDescription": "Creates a Box, runs a command, starts a web server and prints a public preview URL. The script leaves the Box running; idle auto-stop still applies.",
    "template": "rest"
  }
]