DEV Community

Alex Spinov
Alex Spinov

Posted on

Coolify Has a Free API That Replaces Your $100/Month Hosting Bill

Coolify is an open-source, self-hostable alternative to Netlify, Vercel, and Heroku. Deploy anything on your own hardware with zero vendor lock-in.

What Is Coolify?

Coolify is a self-hosted PaaS that runs on any VPS. You get the convenience of Heroku with the control of bare metal.

The Coolify API

Coolify v4 exposes a REST API for full automation.

Authentication

export COOLIFY_TOKEN="your-token"
export COOLIFY_URL="https://your-coolify-instance.com"

curl -s "$COOLIFY_URL/api/v1/servers" \
  -H "Authorization: Bearer $COOLIFY_TOKEN" | jq .
Enter fullscreen mode Exit fullscreen mode

Deploy an Application

curl -s -X POST "$COOLIFY_URL/api/v1/applications" \
  -H "Authorization: Bearer $COOLIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"project_uuid": "proj-1", "server_uuid": "srv-1", "git_repository": "https://github.com/user/repo", "build_pack": "nixpacks", "ports_exposes": "3000"}'
Enter fullscreen mode Exit fullscreen mode

Database Management

curl -s -X POST "$COOLIFY_URL/api/v1/databases/postgresql" \
  -H "Authorization: Bearer $COOLIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"project_uuid": "proj-1", "server_uuid": "srv-1"}'
Enter fullscreen mode Exit fullscreen mode

Cost Comparison

Setup Monthly Cost
Vercel Pro $20/user
Heroku $5-25/app
Railway $5-20/service
Coolify + $5 VPS $5 total

What Can You Deploy?

  • Any Docker container
  • Node.js, Python, Go, Rust, PHP apps
  • PostgreSQL, MySQL, MongoDB, Redis
  • WordPress, Ghost, n8n, Appwrite, MinIO

Getting Started

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

One command. You now have your own PaaS.


Need to scrape websites without getting blocked? Check out Scrapfly for proxies, browsers, and anti-bot bypass. Or email spinov001@gmail.com for custom data extraction.

Top comments (0)