Quick start
For agents
Run the installer and choose Global for all projects or Local for the current project, then ask your agent to deploy.
npx ezhst skill install
Then tell it: Deploy this to Reverhost. The agent deploy guide walks through it for each agent. The agent creates an account if you do not have one, creates and links a project, sets environment variables and deploys.
For humans
Install the CLI globally or run it with npx.
npm i -g ezhst
Create an account (or log in), link your app folder, set a Dockerfile and deploy.
npx ezhst register npx ezhst verify <code> npx ezhst link npx ezhst deploy
Already have an account? Use npx ezhst login instead of register. You can also sign up in the dashboard.
Installing the agent skill
The skill is a single SKILL.md file that teaches your agent how to use Reverhost.
ezhst skill install
Asks which agent (Claude Code, Codex or Cursor), then Global or Local.
ezhst skill install --agent claude --global
Writes ~/.claude/skills/reverhost/SKILL.md for use across projects.
ezhst skill install --agent cursor --local
Writes .cursor/skills/reverhost/SKILL.md in the current project.
Claude Code uses .claude/skills, Codex uses .agents/skills and Cursor uses .cursor/skills, under your home folder for Global or the current directory for Local. Choose Local to check the skill into the repo for your team. For noninteractive use, including --json, pass --agent <claude|codex|cursor> and exactly one of --global or --local.
For other agents, ask them to read the raw file at https://reverhost.com/skill.md before deploying.
Authentication
ezhst register --name <name> --email <email> --password <password>
Create an account. A "Default project" is created and a 6-digit verification code is emailed to you.
ezhst verify <code>
Verify your email with the code. Required before any other command.
ezhst login --email <email> --password <password>
Log in.
ezhst logout
Log out.
ezhst whoami
Show the logged in account.
ezhst resend-verification
Email a new code. Codes expire after 10 minutes, and you can request one every 60 seconds.
ezhst forgot-password --email <email>
Send a password reset link.
Verification is mandatory. Until you run ezhst verify with the code from your inbox, other commands are rejected. In the dashboard, the same code is entered on the screen shown after sign up.
login and register save your token in ~/.reverhost/config.json. In CI or agent sandboxes, provide the token with the EZHST_TOKEN environment variable instead.
EZHST_TOKEN=<token> npx ezhst deploy --json
Output and prompts
Projects and linking
A project contains up to 2 apps (your own apps and AI Builder apps count together) with a shared storage bucket and database. Each app has its own subdomain: <app-slug>.easyhost.fun.
ezhst projects list
List your projects.
ezhst projects create <name>
Create a project.
ezhst projects info
Project details and apps.
ezhst projects rename <name>
Change the display name. The URL stays the same.
ezhst projects delete --yes
Delete all apps, deployments, storage and the database.
ezhst link [--project <slug>]
Link the current folder to a project (writes .reverhost.json).
Project-scoped commands use the project linked in .reverhost.json. Pass --project <slug> to any of them to target another project.
ezhst projects create my-project ezhst projects list ezhst apps create my-api --project <project-slug> ezhst link --project <project-slug> --app <app-slug>
Deploying
Use ezhst apps list, ezhst apps create <name>, and ezhst apps delete --app <slug> --yes to manage up to 2 apps per project. Deployment, environment, build, domain and runtime commands accept --app <slug-or-id>. Link an app with ezhst link --project <slug> --app <slug>.
ezhst deploy [--verbose]
Package the current folder, upload it, build it with the app Dockerfile and go live. Fails fast if the app has no Dockerfile.
ezhst redeploy [--verbose]
Rebuild the latest upload, even a failed one. Use after fixing the Dockerfile or changing env vars.
ezhst start
Start the app.
ezhst stop
Stop the app.
ezhst deployments list
List deployments.
What gets uploaded
deploy uploads your project source. It skips node_modules, .next, .git, every .env* file, Python virtual environments, Rust target and Zig output. Reverhost then builds the Dockerfile stored on the app and runs the image.
Environment variables are not read from your .env files. Set them with ezhst env set or ezhst env import .env before deploying.
Your app is live at https://<slug>.easyhost.fun once the build finishes.
Environment variables
Variables are applied on the next deploy or redeploy.
ezhst env list
List variables.
ezhst env set KEY=VALUE [KEY=VALUE...]
Set one or more variables.
ezhst env unset KEY [KEY...]
Remove one or more variables.
ezhst env import <file>
Merge the variables from a .env file.
ezhst env set NEXT_PUBLIC_SITE_URL=https://my-app.easyhost.fun ezhst env import .env.production ezhst redeploy
Build settings
Every app is built from a Dockerfile stored on the app in Reverhost, so any language works: Node.js, Bun, Python, Go, Ruby, PHP, Rust, Zig or anything else you can write a Dockerfile for. A Dockerfile in your repository is not used automatically. Edit it in the dashboard Build tab or upload it with ezhst build dockerfile set -f Dockerfile.
ezhst build show
Show the root directory and the stored Dockerfile.
ezhst build set --root-dir <dir>
Set the build context folder, for example an app folder in a monorepo.
ezhst build reset
Clear the root directory and the Dockerfile. Set a Dockerfile again before the next deploy.
ezhst build dockerfile show
Print the stored Dockerfile.
ezhst build dockerfile set -f <file>
Upload a Dockerfile. Use -f - to read it from stdin.
ezhst build dockerfile template [id] [--apply]
List starter templates, print one, or save it to the app with --apply.
Template ids: node, bun, python, go, ruby, php, rust and zig. Start from one, then adjust the build and start lines for your framework.
Rules for the Dockerfile
| Rule | Details |
|---|---|
| Port | Listen on 0.0.0.0 and $PORT, which is 3000 |
| Environment | Your variables are runtime env in the container |
| Build-time variables | Mount the appenv secret in the RUN step that needs them. Never pass secrets with ARG or ENV |
| Image size | Up to 1 GB, so prefer slim base images and multi-stage builds |
RUN --mount=type=secret,id=appenv,target=/run/secrets/appenv sh -c 'set -a; . /run/secrets/appenv; set +a; npm run build'
ezhst build dockerfile template ezhst build dockerfile template node > Dockerfile ezhst build dockerfile set -f Dockerfile ezhst build set --root-dir apps/web ezhst redeploy
Logs and build logs
ezhst logs [--tail <lines>]
Runtime logs from the running app.
ezhst deployments log [deploymentId]
Full build log. Defaults to the latest deployment.
When a deploy fails, read the build log, fix the cause and run ezhst deploy again.
ezhst deployments log --json ezhst logs --tail 200
Custom domains
ezhst domains list
List domains with the DNS target for each.
ezhst domains add <hostname>
Add a domain.
ezhst domains verify <hostname>
Check DNS, then issue HTTPS.
ezhst domains remove <hostname>
Remove a domain.
DNS records
| Domain | Type | Value |
|---|---|---|
Subdomain, like www.example.com | CNAME | <slug>.easyhost.fun |
Root domain, like example.com | A | Server IP shown by ezhst domains list |
ezhst domains add www.example.com ezhst domains list ezhst domains verify www.example.com
Storage S3 compatible
Each project gets one bucket. Files are public by URL.
ezhst storage info
Bucket, public base URL and S3 credentials.
ezhst storage create <name>
Create the bucket.
ezhst storage rotate-keys
Issue new S3 credentials.
ezhst storage ls [prefix]
List files.
ezhst storage upload <files...> [--prefix <path/>]
Upload files.
ezhst storage download <key> [output]
Download a file.
ezhst storage rm <key>
Delete a file.
ezhst storage delete --yes
Delete the bucket.
Using it from your app
Run ezhst storage info, store the credentials with ezhst env set, then use any S3 client. The endpoint is https://storage.reverhost.com, the region is us-east-1 and requests must use path-style URLs.
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
export const s3 = new S3Client({
endpoint: "https://storage.reverhost.com",
region: "us-east-1",
forcePathStyle: true,
credentials: {
accessKeyId: process.env.S3_ACCESS_KEY_ID!,
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY!,
},
});
export const uploadAvatar = async (userId: string, body: Buffer) => {
await s3.send(
new PutObjectCommand({
Bucket: process.env.S3_BUCKET!,
Key: `avatars/${userId}.png`,
Body: body,
ContentType: "image/png",
}),
);
};
The file is then served at the public base URL from storage info followed by its key.
Database Postgres
Each project gets one managed Postgres database. See free Postgres hosting for what is included.
ezhst db info
Connection string, shadow connection string and tables.
ezhst db create <name>
Create the database.
ezhst db query "<sql>"
Run a SQL statement.
ezhst db query --file <file.sql>
Run a SQL file.
ezhst db rows <table> [--page <n>]
Browse rows in a table.
ezhst db reset-password
Rotate the password and print the new connection string.
ezhst db delete --yes
Delete the database.
Connecting your app
Copy the connection string from ezhst db info into your app's environment. It works with Prisma, Drizzle or any Postgres client.
ezhst db create main ezhst db info --json ezhst env set DATABASE_URL="postgresql://..."
Prisma migrations
prisma migrate dev needs a shadow database. Use the shadow connection string from ezhst db info.
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}
After ezhst db reset-password, update DATABASE_URL with ezhst env set and run ezhst redeploy.
Team members
Invite people to a project by email. Members can manage everything in it. Only the owner can invite, revoke invites, remove members, rename or delete the project.
ezhst members list
Show the owner, members and pending invites.
ezhst members invite <email>
Email an invite. The link is valid for 7 days and is also printed.
ezhst members revoke <email>
Revoke a pending invite.
ezhst members remove <email> --yes
Remove a member.
ezhst members leave --yes
Leave a project you were invited to.
ezhst accept-invite <link-or-token>
Join a project. Log in with the invited email first.
AI Builder dashboard
The AI Builder turns a description into a running app. Open
Builder in the dashboard, create an app and describe it. The name becomes its address, https://<name>.easyhost.fun.
For a new app or a big feature, the AI asks a few questions, shows a short plan to approve and lets you pick one of 9 themes before it builds. Small changes go straight to code. Every step is shown live: files written, SQL run and packages installed.
To point at part of the page, click
Select element and then the element in the preview. It is tagged in your message so the AI knows exactly what to change. You can also attach up to 5 images per message (png, jpg, gif, webp, avif, svg or ico, up to 5 MB each). They are saved in the app and served at /uploads/<name>, and the AI uses them only as they are, for example as a logo or background. It cannot see, edit, describe or generate images.
The menu next to Select element opens the Code view, where you can edit any file and save it straight into the running app, and Export, which downloads all of the app's code as a zip.
AI apps are plain JavaScript Hono servers. They use the project's Postgres database and storage when they need them, and work with environment variables, logs and custom domains like any other app. The AI Builder is not part of the CLI.
Each account gets its first AI app and its first build free. After that, AI requests use AI tokens, and Pro ($10 a month) tops your balance up to 1,000 tokens every month. Each request is charged by how much work it takes, and a typical full build is a few hundred tokens. AI apps count toward the 2 apps per project.
Limits
Reverhost hosting is free within these limits. Pro costs $10 a month for 10 projects and 1,000 AI tokens a month; see pricing. Run ezhst billing to see your plan and usage, and ezhst billing upgrade for a Pro checkout link. Apps in any language are supported, including Next.js and HTTP APIs. The free Next.js hosting page explains what each limit means in practice.
| Resource | Limit |
|---|---|
| Projects | 3 (10 on Pro) |
| Apps | 2 per project |
| Storage | 1 bucket per project, 256 MB |
| Database | 1 Postgres database per project, 128 MB |
| Team members | 10 per project, including pending invites |
| AI Builder prompts | 30 per day, per project |
| Builds per day | 10 (50 on Pro), per account owner |
| Concurrent builds | 1 per app |
| App container | 256 MB RAM, 0.5 CPU |
| Image size | 1 GB |