PandaStack
Getting started

Install the CLI

The `pandastack` CLI manages sandboxes, templates, tokens, and auth from your terminal.

Install

The CLI ships with the TypeScript SDK on npm:

npm install -g @pandastack/sdk   # provides the `pandastack` command

Configure

Set your API key (create one at app.pandastack.ai/settings/api-keys):

export PANDASTACK_API_KEY=pds_abc123def456...

pandastack auth login prints these setup steps, including the config-file alternative (~/.config/pandastack/config.json). To target a different API origin (e.g. a self-hosted deployment), set PANDASTACK_API_URL.

Verify

$ pandastack version
pandastack 0.9.0

$ pandastack me
$ pandastack sandbox list

Commands print JSON, so they compose with jq:

pandastack sandbox list | jq -r '.[].id'

Common commands

pandastack sandbox create --template code-interpreter --ttl 3600
pandastack sandbox list
pandastack sandbox exec <id> -- python -c 'print(1 + 1)'
pandastack sandbox logs <id> --stream both
pandastack sandbox ssh <id>
pandastack sandbox preview-url <id> --port 3000
pandastack sandbox delete <id>

pandastack template list
pandastack template build --name my-template -f Dockerfile --size-mb 2048
pandastack template delete my-template

pandastack token list
pandastack token create --label local-dev
pandastack token revoke pds_abc123

See CLI reference for the full command tree.

On this page