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-pathand not--env sandbox-cloud-platform?Harbor 0.6.6's
--envflag only accepts values from the built-inEnvironmentTypeenum (docker, daytona, e2b, …). External packages installed via--withcannot add new enum values at runtime. The official Harbor extension point for custom environments is--environment-import-path, which accepts anymodule.path:ClassNameimportable 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).
Metadata
Release files for sandbox-cloud-harbor-environment 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sandbox_cloud_harbor_environment-1.4.0.tar.gz | 22.9 kB | Without provenance | Details for sandbox_cloud_harbor_environment-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sandbox_cloud_harbor_environment-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for sandbox_cloud_harbor_environment-1.4.0-py3-none-any.whl |
Total release size: 42.5 kB
Release files / sandbox_cloud_harbor_environment-1.4.0.tar.gz
| Download URL | sandbox_cloud_harbor_environment-1.4.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cca43b0e7385f34e6a155a0738557f774936a4093bb76d91eff48548f44f5be
|
|
BLAKE2b-256 checksum How to use checksums |
1e73ae5a08513c2fb00c60519fedb481f716dc335ac93cfc0a1658603f863db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / sandbox_cloud_harbor_environment-1.4.0-py3-none-any.whl
| Download URL | sandbox_cloud_harbor_environment-1.4.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa8396cdfce05d36487d74d99553fb1f42068645a60135a19afa11a39108374f
|
|
BLAKE2b-256 checksum How to use checksums |
769b2d0863f25b2865cbc6146eb1913f6c0fa32c3682b9bb29f85d8c4c1aa382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for sandbox-cloud-harbor-environment 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.