Prerequisites
Before installing Longshot, ensure you have the following installed:- Python 3.12+ - Required for the CLI
- Node.js 22+ - Required runtime engine for the orchestrator
- Modal account - For cloud sandboxes (
pip install modal && modal setup)
Installation Methods
The recommended installation method is pipx as it isolates Longshot in its own virtual environment.
Runtime Bootstrap
On first run, the CLI automatically downloads a matching runtime bundle and installs Node runtime dependencies into a local cache:- Default cache location:
~/.longshot/runtime/<version> - Runtime components: TypeScript orchestrator, planner, worker pool, and reconciler packages
Runtime Configuration
You can override the default runtime behavior with these environment variables:| Variable | Description |
|---|---|
LONGSHOT_RUNTIME_URL | Explicit URL for the runtime tarball |
LONGSHOT_RELEASE_REPO | GitHub repo slug for release downloads (default: andrewcai8/longshot) |
LONGSHOT_CACHE_DIR | Custom cache root for runtime assets |
Verify Installation
After installation, verify that Longshot is working correctly:Next Steps
Quickstart
Get your first Longshot project running in minutes
Configuration
Configure environment variables and LLM providers