pkgx is a package runner that executes any version of any tool without installation, distributed as a lightweight standalone binary.
The tool solves the problem of managing tool versions and dependencies across different environments. Rather than requiring users to install and configure tools locally, pkgx fetches and runs them on demand. It works by packaging tools with their dependencies and making them available through a simple command-line interface that can specify exact versions. The binary itself is small and self-contained, designed to work across macOS, Linux, Windows, and Docker environments.
Developers should choose pkgx if they need to run multiple tool versions without cluttering their system or managing complex installation procedures. It suits projects where reproducibility matters—CI/CD pipelines, scripts that need specific tool versions, and teams working across different machines. The tool is particularly valuable for scripting workflows where you can declare tool dependencies directly in shebangs, ensuring scripts run with the exact versions they require. The ecosystem includes complementary tools: dev for creating project-specific virtual environments based on keyfiles, pkgm for installing packages to the system, and mash for managing scripts that depend on open source tools.
The project maintains an active package registry accessible through a web interface and CLI query mode. Development focuses on expanding platform support, with native Windows support marked as experimental while WSL2 provides full compatibility. The tool integrates into CI/CD systems and editor workflows, and the maintainers actively develop the surrounding ecosystem of related tools to make pkgx a composable primitive for broader dependency management use cases.