The valkyrie-sdk package provides an async Python client for run management and hosted resource inspection. It requires Python 3.12 or newer and does not install the CLI or tracker service.
Install
The SDK reads the same configuration as the CLI. Run valkyrie config init first, or pass a tracker URL directly.
Pass base_url to ValkyrieClient for a self-hosted tracker. Otherwise, the SDK uses TRACKER_SERVICE_URL or the hosted tracker URL. The ValkyrieClient reference lists every constructor parameter and default.
When both AWS access-key fields are configured, the SDK sends those credentials and AWS resources to the tracker for the run. When both are absent, start requests omit AWS credentials and request managed execution. See AWS execution mode.
In access-key execution, the SDK sends AWS credentials through X-Harness-* headers. Connect only to a trusted tracker and use HTTPS outside local development.
Examples
The repository includes complete scripts for common workflows:
From a Valkyrie checkout:
Next steps