
# Prompts for AI Agent Deploy Work: 12 Ready-to-Use Templates

**Good prompts for AI agent deploy tasks have five parts: the goal, constraints (plan, budget, OS), a `dry_run` price check, a wait for your approval, and a verification step.** Below are 12 templates for everyday jobs, from price checks to deploying a Telegram bot or n8n. Copy one, fill in the brackets, and send it to your agent.

They work in Claude Code, Claude Desktop, Codex, Cursor and ChatGPT whenever the agent has the 0x.cloud MCP server connected or can call the API. For the full path from request to running server, see how an AI agent creates a server.


## The Deploy Prompt Formula

| Part | Example |
|---|---|
| Goal | "deploy the Telegram bot from this repo" |
| Constraints | "under $10/month, Ubuntu 24.04, hourly billing" |
| Price first | "run dry_run first, show hourly and monthly price" |
| Approval | "wait for my explicit yes" |
| Verify and report | "check the bot answers, send me the IP and management commands" |

## 0. Agent Rules: Put Them in CLAUDE.md or AGENTS.md Once

Add this to the project's instruction file and every other prompt can be shorter:


```text
Rules for 0x.cloud: at the start of each session call get_overview to learn your key's permissions and remaining cap, the balance and the servers. Before creating any server, run dry_run and show me the plan, billing period, hourly and monthly price, then wait for my explicit "yes". Never delete anything unless I name the server. If a request is rejected by the spend cap, do not retry or work around it with another plan; tell me. Give temporary servers a ttl_hours timer. On servers, work as a sudo user, not root. Never put secrets in code or git, only in a .env file with mode 600.
```


Why these rules matter and how key scopes reinforce them: [how to limit an AI agent](https://0x.cloud/kb/ai/limit-ai-agent).

## Prices and Plan Choice

### 1. Check prices without creating anything


```text
Using the 0x.cloud MCP server, get exact dry_run prices for s1-1, s1-2, s2-4 and s4-8 with Ubuntu 24.04: hourly, 1 month and 12 months. Show a table. Do not create anything.
```


### 2. Pick a plan for a workload


```text
I need a server for: [describe the job, e.g. "an aiogram Telegram bot calling OpenAI, 500 users a day"]. Suggest a 0x.cloud plan with memory headroom, explain the choice in two sentences, and show the dry_run price. Budget up to $[amount] a month. Do not create the server until I confirm.
```


## Prompts for AI Agent Deploy: Create a Server and Ship

### 3. Telegram bot in Python


```text
Create an s1-2 server on 0x.cloud with the "For bots" image, hourly billing. Show me the dry_run price first and wait for my yes. Then clone [repo URL], create .env with BOT_TOKEN (ask me for the value), run the bot as a service that starts on boot, and confirm it replies to /start. Send me the IP plus commands to view logs and restart.
```


Doing it by hand: [deploy a Python Telegram bot](https://0x.cloud/deploy/telegram-bot-python).

### 4. n8n with a domain and HTTPS


```text
Create an s1-2 server on 0x.cloud with Ubuntu 24.04 for 1 month; show the dry_run price and wait for approval. Install Docker with the one-line script, deploy n8n with Docker Compose and PostgreSQL, set up nginx and a Let's Encrypt certificate for [n8n.example.com] (the A record already points to the IP). Confirm n8n loads over https and send me the docker-compose.yml path and the update command.
```


Step-by-step manual version: install n8n on a VPS.

### 5. Throwaway server for a test


```text
I need a server for a couple of hours to test a build of [repo URL]. Create an hourly s2-4 with Ubuntu 24.04 on 0x.cloud (dry_run price first, wait for my yes), run the build and tests, and send me the results. Set ttl_hours: 4 so the server deletes itself if I forget. When I say "done", delete it early and tell me what it cost.
```


### 6. Server for Claude Code or Codex


```text
Create an s2-4 server on 0x.cloud with the "For AI agents" image for 1 month; show the dry_run price and wait for approval. Use run_command to create a passwordless user named agent, use authorize_ssh_key to add my public key [paste key] for that user, confirm Node, Python, Git, tmux and Docker are present, and give me a ~/.ssh/config block.
```


## Security and Maintenance

### 7. Baseline hardening for a new server


```text
SSH into [IP]. Create a sudo user named deploy with my key and test logging in as deploy. Then disable password logins and root password login, enable UFW (allow only SSH, 80 and 443), and install fail2ban with an sshd jail. Keep the current session open until the new login is verified. Send me the final settings.
```


If the server runs on 0x.cloud, the agent does not even need SSH: it can run the same steps through the `run_command` MCP tool and show you each result.

### 8. Domain and SSL for a running app


```text
On [IP], my app listens on port [3000]. Check that [app.example.com] points to this IP, configure nginx as a reverse proxy, and get a Let's Encrypt certificate with auto-renewal. Verify https and the http redirect. Do not delete anything.
```


### 9. Bot stopped responding


```text
The bot on [IP] stopped responding. Find out why: service status, the last 100 log lines, memory, disk space, and access to api.telegram.org. Send me a diagnosis and plan first; apply fixes only after I confirm.
```


### 10. Snapshot before a risky change


```text
Before upgrading [what], take a snapshot of server [name] on 0x.cloud ($0.99/month; show the cost and wait for approval). After the upgrade, check the app works. If something broke, offer to roll back to the snapshot.
```


## Money and Account Hygiene

### 11. Spending audit


```text
Using the 0x.cloud MCP server, show my balance and every server: plan, billing type, term end date. Flag servers that look like forgotten tests and estimate the savings. Do not delete anything; report only.
```


### 12. Will the balance last?


```text
Using the 0x.cloud MCP server, call get_overview: it shows the balance, daily spend and how many days the money lasts. Estimate how many days it covers my hourly servers and whether it covers monthly renewals. If it is under 7 days, put that on the first line.
```


## Prompt Mistakes to Avoid

**No budget.** The agent may pick a plan four times bigger "to be safe". Always give a dollar ceiling.

**No approval step.** The agent creates the server right away. Add dry_run plus "wait for my yes", or put it in the rules (template 0).

**Secrets in the prompt.** Do not paste tokens or keys into the prompt; the agent may write them into code or history. Have it ask for the value or read an environment variable.

**No verification.** "Deploy" without "confirm it works" often ends half done. Ask for a concrete check: a reply to /start, the page loading over https.

Everything 0x.cloud offers agents (MCP, API, key scopes, spend caps) is on the [0x.cloud for AI page](https://0x.cloud/ai).

## Which Server to Run These Prompts On

Most templates target s1-2 (1 vCPU, 2 GB RAM, $7.99 per month), enough for a bot, n8n or a small site. For a coding agent with Docker and builds, pick s2-4 (2 vCPU, 4 GB RAM, $15.99). For tests, use hourly billing: s1-2 costs about $0.054725 per hour, and deleting the server returns the unused remainder to your balance. Servers are ready in 60 seconds on average, setup is $0, and they run in Warsaw. More on [VPS for AI agents](https://0x.cloud/vps-for-ai-agents).


[Create server: s1-2, $7.99/mo](https://0x.cloud/cabinet/create?plan=s1-2)


## FAQ

**Which agents do these prompts work with?**
Any agent connected to the 0x.cloud MCP server or able to call its API: Claude Code, Claude Desktop, Codex, Cursor, ChatGPT. They are plain English with no agent-specific syntax.

**Could the agent create a server without my approval?**
Every template asks for a dry_run price and your confirmation first, and the service will not create a server without a dry_run quote. Back that up with a monthly spend cap on the agent's API key, and skip the delete scope unless it is needed.

**Where do I put rules so I do not repeat them in every prompt?**
In the project's instruction file: CLAUDE.md for Claude Code, AGENTS.md for Codex and other agents, project rules in Cursor. The agent reads it at the start of each session.

**Can I change the plan and budget in the templates?**
Yes. Swap in your own values: plans s1-1, s1-2, s2-4, s4-8, billing period, and a dollar cap. The more specific the limits, the fewer follow-up questions the agent asks.
