Skip to main content

sandbox-cloud-harbor-environment

Harbor environment plugin for Sandbox Cloud Platform.

Lets Harbor users run benchmark jobs (e.g. terminal-bench 2.0) against the Sandbox Cloud Platform with the same UX as other Harbor cloud environments. Installable from public PyPI — no company-private index required. This package owns only the Harbor-side adapter (a BaseEnvironment implementation); the platform itself is not included.

Installation

uv tool install harbor --with sandbox-cloud-harbor-environment

or with pip in a Python 3.12 environment:

pip install harbor==0.6.6 sandbox-cloud-harbor-environment

This pulls the public sandbox-cloud-client SDK automatically.

Usage

Set your connection details in environment variables:

export SANDBOX_CLOUD_PLATFORM_BASE_URL=https://your-platform-host
export SANDBOX_CLOUD_PLATFORM_API_KEY=scp...

Run a Harbor benchmark using the import-path extension point:

harbor run -d terminal-bench@2.0 \
    --environment-import-path sandbox_cloud_harbor_environment:SandboxCloudHarborEnvironment

Why --environment-import-path and not --env sandbox-cloud-platform?

Harbor 0.6.6's --env flag only accepts values from the built-in EnvironmentType enum (docker, daytona, e2b, …). External packages installed via --with cannot add new enum values at runtime. The official Harbor extension point for custom environments is --environment-import-path, which accepts any module.path:ClassName importable in the tool's virtual environment.

Environment variables

Variable Default Description
SANDBOX_CLOUD_PLATFORM_BASE_URL http://localhost:8000 Platform base URL
SANDBOX_CLOUD_PLATFORM_API_KEY (none) API key — forwarded as Authorization: Bearer; required when auth is enabled (the platform is OIDC-only)

Compatibility

  • Python 3.12+
  • harbor 0.6.6
  • depends on sandbox-cloud-client >= 1.0.0, < 2 (public PyPI)

Troubleshooting

Import error: sandbox_cloud not found The sandbox-cloud-client package provides the sandbox_cloud.* client modules and is a declared dependency; pip install sandbox-cloud-harbor-environment pulls it from public PyPI. If you see this, reinstall in a clean environment.

HTTPStatusError 401 Unauthorized Set SANDBOX_CLOUD_PLATFORM_API_KEY to a valid API key. (Note: the in-repo sandbox_cloud.client_sdk.plugins.harbor.environment import-path does NOT send an auth header — use this package's import-path, which forwards Authorization: Bearer.)

Connection refused / Cannot connect to host Set SANDBOX_CLOUD_PLATFORM_BASE_URL to the correct platform URL and confirm the platform host is reachable from your network.

Harbor version mismatch This package targets harbor==0.6.6. Other versions may work but are not tested. Pin harbor==0.6.6 if you encounter compatibility issues:

uv tool install harbor==0.6.6 --with sandbox-cloud-harbor-environment

Common change patterns

Adapter behavior changes land in the platform monorepo (this package's directory there) and ship via a per-package tag (#349): bump only THIS package's pyproject.toml version, then push harbor-env-vX.Y.Z (must equal the pyproject version — the publish workflow's release-tag guard refuses a mismatch and publishes only this dist). sandbox-cloud-client has its own independent line and client-vX.Y.Z tags; the retired repo-wide v* scheme no longer triggers any publish. This README documents usage only.

License

MPL-2.0 — source-available; modifications permitted, modified covered files' source published on distribution (file-level copyleft).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sandbox_cloud_harbor_environment-1.4.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file sandbox_cloud_harbor_environment-1.4.0.tar.gz.

File metadata

File hashes

Hashes for sandbox_cloud_harbor_environment-1.4.0.tar.gz
Algorithm Hash digest
SHA256 1cca43b0e7385f34e6a155a0738557f774936a4093bb76d91eff48548f44f5be
MD5 031bab1f1e9f1cfa3e1c6b585efc720b
BLAKE2b-256 1e73ae5a08513c2fb00c60519fedb481f716dc335ac93cfc0a1658603f863db0

See more details on using hashes here.

File details

Details for the file sandbox_cloud_harbor_environment-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sandbox_cloud_harbor_environment-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa8396cdfce05d36487d74d99553fb1f42068645a60135a19afa11a39108374f
MD5 fc54d4c34a220d2f36663d283b30db2c
BLAKE2b-256 769b2d0863f25b2865cbc6146eb1913f6c0fa32c3682b9bb29f85d8c4c1aa382

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 files

1.0.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page