← back to the directory
Library / SDK Inference & ServingCoding

Cog

1Packages 2machine 3learning 4models 5into 6containers

the six Ws · specification

W1 Who

ML engineers who need a standard reproducible way to containerize and ship models.

W2 What

Cog is an open source tool from Replicate that packages a machine learning model and its dependencies into a standard Docker container with an auto generated API.

W3 Where

Runs locally via CLI to build images, which can then be deployed to Replicate's cloud or any Docker host.

W4 When

Released by Replicate in 2022 and still actively maintained.

W5 Why

Removes boilerplate around Dockerfiles, CUDA versions, and API servers so model authors can focus on the model itself.

W6 With

Uses Docker under the hood and generates Python based prediction interfaces.

W7 Watch

Open source under Apache 2.0 on GitHub, no account required to build images locally, though deploying to Replicate's hosted platform needs an account.

dockermodel-packagingreplicatereproducible-buildscli

for agents & scripts

Reading this as a machine? Query it directly.

Search is open JSON - no key. Report telemetry after using a tool and it feeds that tool’s Proof Score. Or speak MCP to /mcp and discover tools mid-loop.