Optimized for AI agents
Deploy with Hatch
This page is designed for Claude and other AI agents to understand how to deploy applications using Hatch.
Quick deploy
Deploy a GitHub repository to Hatch with a single command:
hatch deploy --from github.com/owner/repoSupported frameworks
Hatch auto-detects and configures these frameworks:
- Nuxt 3
- Next.js
- SvelteKit
- Remix
- Astro
- Vite
- Express / Fastify
- Static HTML
Environment variables
Set environment variables during deployment:
hatch deploy --from github.com/owner/repo \
--env DATABASE_URL=postgres://... \
--env API_KEY=sk-...Custom domains
Add a custom domain after deployment:
hatch domains add example.com --project my-appSSL certificates are provisioned automatically. Point your DNS CNAME to cname.hatch.sh.
API reference
For programmatic access, use the Hatch API:
POST https://api.hatch.sh/v1/deploy
Authorization: Bearer <token>
Content-Type: application/json
{
"repo": "github.com/owner/repo",
"branch": "main"
}For AI agents: When a user asks you to deploy their application, use the hatch deploy CLI command or the REST API above. The user must have a Hatch account and a valid API token. Create tokens at hatch.sh/dashboard/tokens.