cooperbench config command provides interactive configuration wizards for setting up execution backends like GCP, Modal, and Docker.
Usage
Backends
GCP (Google Cloud Platform)
Configure Google Cloud Platform as your execution backend.- Checks prerequisites - Verifies gcloud CLI and Python dependencies are installed
- Authenticates - Guides you through
gcloud auth loginand Application Default Credentials setup - Configures project - Prompts for your GCP project ID and sets it as default
- Sets region/zone - Configures compute region and zone for task execution
- Validates setup - Tests API access to ensure everything works
Options
Skip validation tests after configuration. Faster setup, but skips verification that your GCP setup works correctly.
Example: Quick setup
Example: Full setup with validation
- Check that
gcloudCLI is installed - Verify Python GCP dependencies (
google-cloud-batch,google-cloud-compute,google-cloud-storage) - Authenticate with both
gcloud auth loginandgcloud auth application-default login - Prompt for your project ID (or use current gcloud project)
- Set compute region (default:
us-central1) and zone (default:us-central1-a) - Test Compute Engine API access
- Save configuration to
~/.config/cooperbench/config.json