Installation
Cog works on macOS, Linux, and Windows 11 with WSL 2.Prerequisites
Before installing Cog, you’ll need:Docker is required. Cog uses Docker to create containers for your models. You’ll need to install Docker before you can run Cog.
macOS Installation
Using Homebrew (Recommended)
The easiest way to install Cog on macOS is using Homebrew:Using the Install Script
You can also use our install script:Manual Installation
Download and install the latest release directly from GitHub:macOS Security WarningIf you downloaded the binary manually and see a “cannot be opened because the developer cannot be verified” error, run:Installing via Homebrew handles this automatically.
Linux Installation
Using the Install Script
Download and run the install script:Manual Installation
Download the binary directly:Docker Container Installation
If you’re installing Cog inside a Docker container:Windows Installation
Cog works on Windows 11 with WSL 2 (Windows Subsystem for Linux).Install WSL 2
Follow the official WSL 2 installation guide from Microsoft.
Install Docker Desktop
Install Docker Desktop for Windows and ensure WSL 2 integration is enabled.
Upgrading Cog
Homebrew
If you installed with Homebrew on macOS:Other Methods
For all other installation methods, upgrade by running the same commands you used to install Cog. The install script and manual download will always fetch the latest version.Verify Installation
Verify that Cog is installed correctly:Next Steps
Quickstart
Run your first prediction with Cog
Your Own Model
Package your own model with Cog