Scan your whole stack
From OX Research Newsroom
Are you using sandscale?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
sandscale was last scanned on 29 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 29 Nov 2026 | No rules fired |
Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Python SDK for Sandscale: sandboxes, workspaces and build hosts over
the Sandscale API (https://api.sandscale.dev). One dependency (httpx); Python 3.10 or later.
The server decides everything: permissions, plan limits, quotas, entitlements, kill switches and regions. The SDK sends your request as you (your API key or your own sign-in token) and hands back the server's answer, including its error code and message.
pip install sandscale
import sys
from sandscale import Sandscale
with Sandscale() as sandscale: # SANDSCALE_API_KEY from the environment
box = sandscale.sandboxes.create(template="builtin:python", timeout_seconds=600)
# BUILTIN_TEMPLATES lists the built-ins: base (default), python, node, go, go_postgres (Go with PostgreSQL 17
# running on 127.0.0.1:5432, TEST_DATABASE_URL set), minimal. The default image has
# Python 3 with pip, Node.js with npm, git, curl, a C compiler, jq and unzip (docs/sandbox/images.md).
try:
run = sandscale.sandboxes.run(
box.id,
'python -c "print(6*7)"',
region=box.region,
on_stdout=sys.stdout.write,
on_stderr=sys.stderr.write,
)
print("exit code", run.exit_code)
finally:
sandscale.sandboxes.stop(box.id, region=box.region)
| Argument | Environment | |
|---|---|---|
api_key |
SANDSCALE_API_KEY |
A Sandscale API key. |
token |
The person's own sign-in access token, or a function returning a current one (called before every request, so it can refresh). | |
org_id |
SANDSCALE_ORG_ID |
Sent as X-Org-ID; required by workspace and build host calls, whose routes name the organization. |
base_url |
SANDSCALE_BASE_URL |
Default https://api.sandscale.dev. https only (plain http only to a loopback host). |
Credentials are held in memory and sent only to the configured API origin and the region origins the server lists; redirects are not followed, so a credential never follows one.
One account works in every Sandscale region. Pass region="us" or region="eu" to the client
(the default for every call) or to any call:
| Region | API |
|---|---|
| none | https://api.sandscale.dev, the front door: it routes to the request's region, US by default |
"us" |
https://api.us.sandscale.dev |
"eu" |
https://api.sandscale.dev with region=eu1: the front door sends the call to the EU region with your own credential. The EU regional host (api.eu.sandscale.dev) does not accept a global API key or sign-in token, so the SDK never calls it directly |
A region id such as us1 names the same region. region_urls sets origins explicitly.
Against another base_url (a self-hosted Sandscale) a region is looked up in that server's
public region list (GET /api/v1/regions).
Models carry the region they were read from; pass it to later calls on them. Lists without a
region read every Sandscale region the front door reports live and merge the results; pages
says, per region, the next cursor or the error that region answered.
| Area | Methods |
|---|---|
sandboxes |
create, get, list, run (live stdout and stderr, exit code), logs, write_file, read_file, list_files, pause, resume, snapshot, list_snapshots, stop, attach_volume, list_attachments, commit_volume, detach_volume, restore_cache, save_cache |
volumes |
create, get, list, delete |
caches |
list, delete |
workspaces |
list, get, start, stop, connect_info |
build_hosts |
list_pools, list, get, start (take a lease of a pool), stop (release it), connect_info, ssh_certificate |
sandboxes |
create (network, image, runtime, environment_id), get, list, run (live stdout and stderr, exit code), logs, write_file, read_file, list_files, pause, resume, snapshot, list_snapshots, stop, expose_port, list_ports, close_port, create_preview_link, list_preview_links, revoke_preview_link, ssh_info, ssh_certificate |
snapshots |
list (with quota usage), get, delete |
templates |
create, list, get, delete, build_status |
policy |
get, set |
webhooks |
list, create, delete, verify (also verify_webhook_signature) |
traces |
list, get, get_export, set_export, delete_export, test_export |
execute, search, tasks, code_policy |
code mode (below): tasks.get, tasks.wait, code_policy.get, code_policy.set |
api |
the typed API (below): every operation as api.<namespace>.<function>(**args) |
objects |
buckets (create_bucket, list_buckets, get_bucket, update_bucket, delete_bucket), lifecycle, policy, access keys, limits |
workspaces |
list, get, start, stop, connect_info, create, update, delete, rebuild, open_link, list_backups, create_backup, verify_backup, list_apps, share_app |
build_hosts |
list_pools, list, get, start (take a lease of a pool), stop (release it), connect_info, ssh_certificate, renew, kill, list_runs, get_run, list_artifacts, get_artifact, download_artifact, delete_artifact, list_caches, list_pool_caches, purge_pool_cache |
lab_hosts |
list, get, revoke |
agent_cloud |
create_task, list_tasks, get_task, cancel_task |
account |
billing, change_plan, set_overage, cancel_pending_plan_change, checkout, usage, regions, list_api_keys, create_api_key, rotate_api_key, delete_api_key |
sandboxes.run waits for the command and returns a RunResult (run_id, exit_code,
stdout, stderr, duration_ms, oom_killed, timed_out, streamed). With on_stdout /
on_stderr it starts the command without waiting (wait false): the server answers with the
run's id, and the output arrives live, in the calling thread, from that run's log stream, after
the organization's DLP rules. The server may redact it, or end the stream with
dlp_unavailable, raised as a ServerError. The exit code comes from the stream's end. A
server that answers with the finished result instead gets the callbacks the final output once.
sandboxes.create(vault_env=[VaultEnvRef("DB_PASSWORD", "secret/data/db", "password")]) puts
Sandscale Vault values in the sandbox's environment. The server reads them as you and gives them
to the sandbox only.
Persistent volumes keep a directory between sandboxes, in versions.
attach_volume(sandbox_id, volume_id, mount_path, mode="rw") mounts one (read-write by one
sandbox at a time, else 409 volume_writer_attached; mode="ro" is never written back),
commit_volume writes the next version and detach_volume(..., commit=False) drops
uncommitted changes (a read-write attachment commits first by default). Dependency caches are
keyed by the server from the lockfile it reads in the sandbox and shared within the organization
only:
r = sandscale.sandboxes.restore_cache(box.id, ecosystem="pip", lockfile="/workspace/requirements.txt")
if not r.hit:
sandscale.sandboxes.run(box.id, "pip install -r /workspace/requirements.txt")
sandscale.sandboxes.save_cache(box.id, ecosystem="pip", lockfile="/workspace/requirements.txt")
Every call takes region= like the first ones. The server decides what you may do; the SDK
only carries the answer.
box = sandscale.sandboxes.create(template="builtin:python", network="allowlist", runtime="firecracker")
port = sandscale.sandboxes.expose_port(box.id, 8080, ttl_seconds=3600, region=box.region)
link = sandscale.sandboxes.create_preview_link(box.id, 8080, visibility="team", region=box.region)
print(link.url)
sandscale.sandboxes.revoke_preview_link(box.id, link.id, region=box.region)
sandscale.sandboxes.close_port(box.id, 8080, region=box.region)
cert = sandscale.sandboxes.ssh_certificate(box.id, open("id_ed25519.pub").read().strip(), region=box.region)
print(cert.known_hosts, cert.key_id) # the certificate itself is in cert.certificate
snaps = sandscale.snapshots.list()
print(snaps.usage.count, snaps.usage.bytes)
tpl = sandscale.templates.create(name="py-ml", image="registry.example/py-ml@sha256:" + "0" * 64, memory_mb=2048)
print(sandscale.templates.build_status(tpl.id).status)
sandscale.policy.set(egress_allowlist=["pypi.org"], egress_presets=["npm", "pypi"], max_concurrent=10)
policy.set(hibernation="on" | "off" | "default") sets hibernation between tool calls;
keep_awake retries a waking sandbox (SandboxWakingError) before raising.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.