Self-host with the CLI
This is the run-it-yourself path: you get a real project and the blocks you're licensed for, and you run it on your own machine or server. Want it live with nothing to install? Start a hosted workspace instead.
1 · Install the CLI
npm i -g @ai-blocks/cli --registry=https://registry.mltg.net
2 · Sign in — prints a code, then approve it at https://mltg.net/device
ai-blocks login ai-blocks list # the blocks your account may install
3 · Scaffold a project — writes package.json, src/boot.ts,
a docker-compose.yml (Postgres) and an .npmrc
ai-blocks init my-shop --modules ecommerce cd my-shop ai-blocks install ecommerce
4 · Run it — now it's your app, on your infrastructure
docker compose up -d db pnpm install pnpm dev # your store is live at http://localhost:9430
Installing a block gives you the code, not a running site — step 4 is what starts it. While in beta, a licence for every block is granted free on first login.