> vibeTTY_ Academy
EN FA RU
Open in Telegram

Academy

Build real products, one message at a time.

A hands-on guide to OpenCode hosting with the vibeTTY agent, your machine, and copy-paste recipes for the things people actually build: a blog, a store, an API, a bot.

What is vibe coding?

Vibe coding means describing the product you want in plain language and letting an AI coding agent turn it into real, running software: it writes the files, installs the packages, runs the app and shows you the result.

Unlike an autocomplete assistant (Copilot, Cursor) that helps you edit a file you already opened, a vibe-coding agent owns the whole loop — project, dependencies, server, public URL. You review and steer; it does the keystrokes.

  • No local setup. No Node, Python or Docker on your laptop — the agent works inside your machine.
  • Real code, not a mock. Django, Next.js, WordPress, Ghost, Medusa — whatever the job needs, it is a normal project you can keep.
  • Online in one step. Publish the port it listens on as https://your-label.vibetty.xyz and share the link.

Introduction

vibeTTY is a Telegram bot that fronts a real coding agent running on a real container. You write what you want in plain language; the agent reads files, installs packages, writes code, runs it, and publishes it to a public HTTPS address.

🧠 The agent

OpenCode — the same open-source coding agent developers run locally — with tools to read, edit and run code.

🖥 Your machine

An isolated container with a persistent /workspace that survives restarts. Up to three per account, plan-dependent.

🌐 A public URL

Publish any port as https://your-label.vibetty.xyz — no DNS, no certificates, no server to rent.

First steps

  1. Open the bot. Press /start in @vibettybot. You start on the Free plan — no credit card, no commitment.
  2. Create a machine — paid plans. Machines → ➕ New machine, pick a size. Your container is ready in seconds. The Free plan owns no machine: skip this step and build a static site in public/ instead (step 4).
  3. Ask for something. Send a normal message. The agent works in /workspace and streams back what it does.
  4. Publish it. Paid plans: from 🌐 Web add a route with a label and the port the app listens on. Free plan: put index.html in public/ — that folder is already served at your own address, no route needed.
Tip: your plan's monthly allowance covers agent runs, so a precise request uses less of it than a vague one. See Prompting tips below.

Groups and teams

Add @vibettybot to a Telegram group and press /start once: the group becomes an account of its own. Its balance, plan, machines, workspace, timers and queue are shared by every member, and every reply goes to the group — so a small team can build one project together without passing a login around.

  • Address the bot. In a group it only answers a command (/start), an @vibettybot mention, or a reply to one of its own messages — ordinary chatter is ignored, so a busy group is never billed per message. The one exception is the next step of a flow the group already opened (a machine name, a timer prompt, a shell line).
  • One run at a time. Runs are sequential for the account, exactly like a private chat. A message sent while a run is active steers that run instead of starting a second one, so two people can hand work to the same agent without overwriting each other.
  • Shared files and sites. Every machine, the persistent /workspace and its published domains belong to the group: what one member builds the others can open, continue and publish. 🕘 Commits lists the workspace's last checkpoints, so the group can see what changed and when.
  • Shared spending. A group gets no signup credit and draws from the same plan allowance as its members' runs. It names its own label on its first message, and that label is also the group's own site address. Anyone in the group can spend it, so use a group for work you want to share and a private chat when you need a separate account.
A group is gated exactly like a person: the same verification, plan caps and machine rules apply. Its files and sites belong to the group, not to whoever created it, so removing a member does not take the project with them.

Machines

A machine is a small container with a persistent folder mounted at /workspace. Everything you build lives there and survives restarts. The agent works in that same folder on every run, so the files it writes persist — but its shell is a disposable container removed when the run ends, so a long-running server belongs in start.sh below.

ActionWhere
Create / resize🖥 Machines → ➕ New machine
One-shot shell/sh then a command (runs inside the machine)
Suspend / resumeThe machine's page — suspending stops the container but keeps its files and routes
Files & backupsThe machine's page — browse /workspace, take a backup, and restore a zip back into /workspace
Logs, commits & site check🖥 Machines → 📜 Logs / 🕘 Commits (read-only, no run billed); 🌐 Website → 🩺 Check sites

Long-running services: the container has no systemd, so never ask for a unit. Put the app's start command in /workspace/start.sh — the machine runs that script at boot and after every restart, so the site comes back by itself — and write its log to /workspace/logs/.

The web dashboard & SSH

Telegram is not the only client. The same account, agent and machines are also a proper web dashboard — and every machine has a real SSH port if you prefer a terminal.

🌐 Sign in to the dashboard

Open Settings → 🌐 Login in web in the bot, then enter the one-time code at /panel. Pages cover Home, Chat, Tasks, Timers, Machines, Credits and Settings; the chat streams live with a Stop button, and the paperclip (or a pasted screenshot) sends an image or file to the agent; the screenshots and files it produces appear inline with a download link. Home shows your plan, the days left and what remains of today's allowance, so the subscription is visible without opening Settings, and a Your site card opens your first published address (or the always-on public/ site when none is published) in one tap and can check that it answers. Every turn shows its time and a one-tap Copy. New run (and the sidebar's New task) starts a fresh session instead of continuing the previous task, and a task opened from the sidebar shows its own history with an Export .md. Fenced code in an answer renders as a real code block with a one-tap Copy.

Open the dashboard →

🔑 SSH into a machine

Each machine shows its port on its page. Copy the command — ssh -p <port> root@vibetty.xyz — and your account's public key is already authorized on every machine you own.

📄 Always-on static site

Files in the workspace's public/ folder are served at <username>.vibetty.xyz with no machine and no server process — the Free plan's way to put a page online.

📁 Files, commits, logs, disk and sites

The Machines toolbar opens the shared workspace tree, its last five git checkpoints, the newest service logs under logs/ (the tail of each file), each machine's disk use, a downloadable workspace backup and the account's published sites in a modal — the same pages the Telegram machine hub shows, so you can inspect a project, read why an app exited and publish or remove a domain from the browser without running a task.

Talking to the agent

Any plain message is a task. The agent keeps a session, so you can iterate: “now make the header sticky”, “use a dark theme”, “add a contact form”. You can attach a photo (a screenshot or a design), a voice note, or a document such as a zip or PDF in Telegram, and the agent acts on it. When it needs a decision it asks a question with options — answer by tapping a button in Telegram, or in the web dashboard the same options appear right under the question. You can also interrupt a running task with a new message: it joins the same session instead of starting over.

Do

  • Name the stack and the outcome.
  • Say where it should run (a port).
  • Ask for a check when done.

Avoid

  • “Make me a website.”
  • Vague stack-less requests.
  • Asking for several products at once.

Queue, timers and reusable prompts

One account runs one task at a time. Everything that should not wait for you to type it — a follow-up, a nightly job, a prompt you keep rewriting — has a home in 📋 Tasks and ⚙️ Settings, and every entry is billed against the plan exactly like a typed message.

Task queue📋 Tasks → ➕ Add task. Rows wait their turn and run in order; cancel or delete a row you no longer need, or ⏸ Pause queue to stop new rows starting while keeping every one of them — ▶️ Resume continues where it stopped. 🗂 Finished tasks keeps history out of the live list, and 💬 on a row reopens its whole conversation with Continue / Retry / Delete; 📄 Export saves that conversation as a Markdown file. History is paged newest-first, and 🔍 Search tasks finds an old one by a word from its prompt.
Timers📋 Tasks → ⏱ Timers. A timer is an interval plus a prompt, so “check the deploy every morning” becomes one row. ▶️ Run now fires it once, ⏸ Pause all stops a whole set. A timer reuses the same session and workspace.
Backlog📋 Tasks → 🗂 Backlog stages an idea without running it. Nothing in the backlog ever fires on its own; promote one row (or 📥 Queue all) when you are ready to spend the allowance.
Ready prompts⚙️ Settings → 📝 Ready prompts saves a prompt you reuse. Run it now, 📥 queue it after the current work, or edit the text. The web dashboard's Settings page has the same library and the same Run / Queue pair.
Skills⚙️ Settings → 🧩 Skills stores a SKILL.md in the workspace's .opencode/skills folder. The agent loads it only when a task matches, so a house style or a deploy checklist applies without repeating it in every prompt.

While a run is going, a message you send does not start a second task: it is handed to the running one as the next turn (the current generation is interrupted and the same session continues). That is how you correct a run mid-flight — and 🎯 Current task re-attaches the live output, with Stop one tap away.

prompt · a nightly check
Every night at 02:00, run the test suite, check that https://my-site.vibetty.xyz returns 200, and post a one-line status here. If anything fails, include the exact error and the last 20 log lines.

Publishing

Publishing is opt-in and independent of machines: a domain either points at a port inside one machine, or serves the workspace public/ folder with no machine and no server process. 🌐 Web is the one place to add and remove domains; Caddy terminates TLS and proxies the target — for a <label>.vibetty.xyz subdomain there is no DNS or certificate work at all.

Make the app listen on 0.0.0.0:8080 so it is reachable from outside the container.

Every machine also answers on its own default route; add your own domains from 🌐 Web and choose a target (a machine port or the public folder). Each machine publishes one user route for now.

Have a domain of your own? Add it — not just a subdomain. Tap 🌍 My own domain on 🌐 Web (or on a machine's page) and type the full address, e.g. app.example.com. Point its DNS here first — a CNAME to <username>.vibetty.xyz, or an A record to this server — and Caddy issues the HTTPS certificate as soon as DNS resolves; nothing to install. A custom domain is an extra address for the same app: it counts against your plan's published-site allowance, not the one-route-per-machine limit. Until DNS resolves the row is saved but the site will not answer, and 🩺 Check sites shows exactly that.

Your own address never needs a domain row: everything in public/ is always online at <username>.vibetty.xyz, and the 🌐 Web page opens it with one tap on the 🏠 button — copy the link from there when you need to share it. 📦 Files on the same page downloads the whole public/ folder as a zip, so you always keep a copy of the site.

In the bot, ❓ Help → 🌐 Sites & publishing repeats this on one page, and 🩺 Check sites probes every published address (and keeps the recent outages), so a stopped app's 502 is visible without reading a log. As soon as a route exists, the main menu itself carries a 🌐 Open site button, so seeing the result is one tap from the first screen.

The build loop (use it for every project)

Every recipe on this page is the same six-step loop. The difference between a project that works and one that almost works is usually step 3: making the agent run and verify what it wrote.

  1. Pick one project and one first milestone. Not “a store”, but “a product list page with three products”.
  2. Create a machine (paid plans — on the Free plan skip it and build in public/), then send the first prompt from the recipe. Name the stack, the folder and the port.
  3. Ask it to run the app and prove it: a curl status, a build that passes, a screenshot. “It should work” is not a result.
  4. Send one follow-up per change: copy, a form, a color, one more page. Small steps are cheaper and easier to undo.
  5. Publish from 🌐 Web — a machine app: label + port; the public/ folder: label only — then open the HTTPS URL yourself. Check the CSS and JS assets too, not just the home page.
  6. Ask for a backup and a repeatable start. A service that dies on restart is a demo, not a product.

Version history is built in

Every workspace is a git repository from the start, and the agent commits a checkpoint when a piece of work is done. Open 🖥️ Machines → 🕘 Commits (or the same button in the web dashboard) to read the last five: a hash, the date, the author and the message. Commits are local — no remote, nothing pushed — so you can always see what changed without leaving the chat. If a change is wrong, ask for a fix commit instead of a rewrite.

prompt · review before publishing
Review this project like a production release. Do not change the stack: find every hard-coded secret and move it to .env with a .env.example placeholder; make sure the app binds 0.0.0.0 on its port and starts from a clean restart; add a /healthz endpoint, a daily backup script that keeps 7 days, and a short README with the run command. Then show me the exact commands to start, back up and restore it.

Recipe: a static site

The lightest option: plain HTML/CSS, or a generator. No database, no server process to babysit. In the bot, Tasks → 🍳 Recipes → 🧱 Static site asks seven short questions (name, purpose, pages, contact, theme, extras, language) and runs this for you.

port 80nginxno DB
Build a responsive landing page for my coffee shop in /workspace/public: a hero, a menu with prices, an about section and a footer with hours and address. Use plain HTML and CSS (no framework), mobile-first, and serve /workspace/public with nginx on port 80. Then curl it and show me the HTTP status.

Step by step: a site that stays up

  1. On a paid plan create a machine; on the Free plan skip that step. Then ask for the page in /workspace/public. A pure static site needs no server process.
  2. Replace the placeholder copy and images with your own. Attach a logo or a screenshot and say “use this as the hero image”.
  3. Check 375 px and 1280 px, every link, and the CSS file the HTML references. A page that loads without CSS is not finished.
  4. Publish: 🌐 Web → add a route with a short label and port 80 (nginx) or leave the folder to the always-on static site.
  5. Iterate: SEO tags, Open Graph, a contact form (needs a backend or a form service), analytics, favicon.
prompt 2 · multi-page
Turn this into a four-page site: Home, Services, Work and Contact, in /workspace/public. Share one style.css and one small script.js, no framework. Each page needs the same header/footer, a real title and meta description, and the nav must mark the current page. Add a 404.html and make every link relative so it works at any subdomain. Then check that every internal link and asset returns 200 and list anything that failed.
prompt 3 · SEO and sharing
Add real SEO to this site: a unique title and description per page, canonical URLs, Open Graph and Twitter cards with an image I can replace later, JSON-LD for a local business, sitemap.xml and robots.txt. Keep all visible copy in the HTML, not in JavaScript. Then validate the links and show me the sitemap and one page's head.
prompt 4 · visual audit
Audit this site at 375 px and 1280 px: no horizontal scroll, readable contrast, images with alt text, tap targets at least 44 px, and the hero readable without JavaScript. Fix what you find, then take one full-page screenshot at each width, save them in /workspace/audit/ and send both to me with a short list of what you changed.

Recipe: a blog & magazine

In a hurry? The bot carries the four headline projects (blog, store, API, bot) as complete prompts: open 📋 Tasks → 🍳 Recipes (or Tasks → Recipes in the web dashboard) and tap one. It runs exactly like typing the prompt here.

For writing and publishing, use a maintained open-source CMS instead of hand-rolling one. Ghost is the modern choice; WordPress is the familiar one.

Ghost (recommended for a magazine)

port 2368SQLitenewsletter
Install Ghost (the official Node app) with SQLite and run it in production on port 2368, bound to 0.0.0.0. Set the URL to my future domain placeholder for now, create the owner account with a random password, and put the start command in /workspace/start.sh so it comes back by itself after a restart (the machine runs that script at boot). Send me the login URL and the password.

WordPress (the familiar one)

port 80MariaDB + PHPplugins
Install WordPress with wp-cli: apt-install nginx, php-fpm and MariaDB, create the database and a user, serve the site on port 80, and create an admin account with a random password. Then send me the admin URL and the password.
Follow-ups work too: “add a newsletter signup to the footer”, “change the accent color to teal”, “install the SEO plugin and configure it”.

Step by step: Ghost

  1. Create a machine (Ghost needs ~500 MB RAM) and run the install prompt below.
  2. Open /ghost on the published URL, sign in with the owner account and change the password the agent generated.
  3. Publish port 2368 from 🌐 Web. Ghost needs its public URL set to that address so links and images are absolute.
  4. Write three posts and an About page before inviting anyone. An empty blog looks broken.
  5. Ask for a content backup (SQLite + images) and a theme you can edit, then iterate on typography and navigation.
prompt 2 · content and navigation
In Ghost, create three published posts about [your topic], each with a cover image, a one-sentence excerpt and one internal link to another post. Add a tag called Guides, an About page, and a primary navigation with Home, Guides and About. Set the publication title, description and accent color from the site settings, then show me the public home page URL and the Ghost admin URL.
prompt 3 · theme polish
Install Casper as the active Ghost theme and make it yours: set the accent color, upload a logo and favicon from /workspace/brand, and make the header show the publication name plus the primary navigation. Keep the Reading time and dark mode support. Rebuild the theme, restart Ghost, then screenshot the home page and one post at 375 px and send them to me.
prompt 4 · backup
Set up a nightly backup for Ghost: dump the SQLite database and the content images into /workspace/backups/ghost-YYYY-MM-DD.tar.gz, keep the last seven archives, and delete older ones. Add a restore script and a README that explains both. Run the backup once now and show me the archive size and the list of files inside it.

Recipe: an online store

A store is a CMS plus payments. Start with a maintained e-commerce stack, then iterate on products, shipping and checkout.

WooCommerce on WordPress

port 80wp-cliplugins
Install WordPress with wp-cli and MariaDB on port 80, create an admin with a random password, then install and activate the WooCommerce plugin and run its setup for a physical-goods store with USD currency. Add two sample products with prices and stock. Send me the admin URL and password, and the store URL.

Medusa (headless, modern)

port 9000PostgreSQLAPI-first
Set up a Medusa v2 store: install PostgreSQL, clone the Medusa starter, configure the database URL from an env file, run the migrations and seed, and start it on port 9000 bound to 0.0.0.0. Add a couple of products and a region with USD. Send me the admin URL and login.
Payments: add a gateway only when you have keys. Ask the agent to “wire Stripe test mode with my key from env” — never paste a live secret key into the chat.

Step by step: WooCommerce

  1. Install WordPress + WooCommerce with the prompt below, on port 80, with MariaDB and an admin password you change immediately.
  2. Add real products, categories, stock and one image each. Delete the sample products and the “Hello world” post.
  3. Configure shipping, tax and currency before payments. A test checkout with the wrong shipping is the classic launch bug.
  4. Wire a payment gateway in test mode. Keys go in .env or wp-config, never in the chat.
  5. Publish port 80, place one test order as a guest, and check the confirmation email and the order in wp-admin.
prompt 2 · catalogue
With wp-cli, add six products in three categories (two each), each with a short description, a price, stock 10 and a placeholder image from /workspace/brand. Configure USD, a flat shipping rate of $5 and free shipping over $50, and no tax. Delete the sample products. Then list every product with its URL and confirm the shop page returns 200.
prompt 3 · test checkout
Configure Stripe test mode for WooCommerce using STRIPE_SECRET_KEY and STRIPE_PUBLISHABLE_KEY from the environment; do not print the secret. Enable card payments, place a test order for one product as a guest with a test card, and confirm the order becomes Processing and the stock drops to 9. Then send me the checkout URL and a screenshot of the order screen.
prompt 4 · harden
Harden this shop: disable the WordPress file editor, limit login attempts to five per minute, turn off XML-RPC, set permalinks to post name, add a caching plugin and a daily database backup to /workspace/backups keeping seven files. Keep WooCommerce working. Then verify the shop, cart, checkout and wp-admin all return 200 and report the changes.

Iranian payments: Zibal, Zarinpal and the rest

If you sell to customers in Iran, Stripe cannot charge an Iranian card — you need an Iranian payment gateway (IPG): Zibal, Zarinpal, NextPay, Pay.ir, IDPay or a direct bank gateway. They all follow the same four-step flow; only the field names change.

ZibalZarinpalNextPayIDPayIPG
  1. Create the order on the server and compute the amount from the cart — never from a form the buyer posts. Store a Payment row in a pending state.
  2. Request a payment: POST to the gateway API with your merchant key; it returns an identifier — trackId on Zibal, authority on Zarinpal.
  3. Redirect the buyer to the gateway's start page. Watch the unit: Zibal and Zarinpal take the amount in Rials, so Toman × 10.
  4. Receive the callback. The gateway returns the buyer to your callbackUrl with a status — do not trust it: always call verify server-side.
  5. Confirm and record. If verify succeeds (result 100), mark the order paid and store the reference number and amount. A callback can arrive twice, so make the payment idempotent.

Zibal

Online signup with a national ID, a ready sandbox (merchant=zibal), settlement to your IBAN and simple docs with Django and WooCommerce samples.

Zarinpal

The best-known option, with both an aggregator and a direct gateway. Sandbox at sandbox.zarinpal.com; verify answers 100 (paid) or 101 (already verified).

NextPay · Pay.ir · IDPay

The same shape under different names: request → redirect → callback → verify. If you already hold one of these accounts, wiring it is a few lines of code.

Direct bank gateway

Behpardakht (Mellat), Sadad (Melli), Parsian and friends under a bank contract: lower fees and higher limits, but they require a legal entity and a licence.

The bureaucracy: aggregator or direct?

This is the part that sinks most projects: the code is easy, the paperwork is not. There are two doors, and they ask for very different things.

Aggregator (no company needed)

  • Sign up online with your national ID, a phone number and a card/IBAN in your own name.
  • Approval in hours to a few days; no company, no tax file.
  • Lower daily transaction ceiling, fees around 1–2%, settlement usually next business day (T+1) to your IBAN.
  • Some require a domain, SSL and an e-namad (electronic trust seal) before raising the ceiling.

Direct gateway (company)

  • A legal entity: a registered company with its articles of association.
  • A tax code and an open tax file, plus a business licence (javaz-e kasb).
  • A corporate bank account whose IBAN matches the company name.
  • A site with terms, privacy, refund and contact pages on a registered domain; approval takes days to weeks, with lower fees and higher limits.
Beware the human middleman: plugging into a friend's merchant account or a reseller's panel means the money lands in their account, they can hold it, and it breaks Shaparak/PSP rules. The legitimate middleman is a licensed PSP that sells an aggregator gateway (Zibal, Zarinpal and the like) — not a person renting out their panel.

Before you apply, have these ready

  • A domain with SSL and a public HTTPS callback URL; the <label>.vibetty.xyz address you publish from 🌐 Web is enough.
  • Terms, privacy, refund and contact pages — most PSPs refuse a site without them.
  • A card or IBAN in the name of the person or company that will own the gateway.
  • For a direct gateway: the company, its tax code and the business licence.
  • Keys in .env or the gateway panel only — never in the chat. If you must write one, use /sh and a file.

Wire it: two ready prompts

prompt 1 · Django + Zibal
Add Iranian payments with Zibal to this Django store. Create a Payment model (order, amount_rial, track_id, status, ref_number, raw_json, created) and two views: POST /payments/start/<order_id>/ that computes the amount from the order in Rials, calls https://gateway.zibal.ir/v1/request with ZIBAL_MERCHANT from the environment, saves the trackId and redirects to https://gateway.zibal.ir/start/<trackId>; and /payments/callback/zibal/ that calls /v1/verify, marks the order paid only when result is 100 and the amount matches, is idempotent on a repeated callback, and redirects to the order page. Read PUBLIC_BASE_URL for the callback. Add a 'check payment' button that re-verifies a pending payment. Test end to end with the sandbox merchant 'zibal' and show me the request, the verify response and the paid order.
prompt 2 · WooCommerce
Install and configure an Iranian payment gateway for WooCommerce (Zibal or Zarinpal, whichever has an official plugin): set the merchant/terminal id from the environment without printing it, set the callback URL to the site's public HTTPS address, keep prices in Toman in the UI but send Rials to the gateway if the plugin requires it, and enable the plugin's sandbox mode. Then place a test order, confirm it becomes Processing with the reference number stored, and show me the order note and the gateway log.
The money moves outside vibeTTY: the gateway charges the buyer, the PSP settles to your IBAN, and no one here can reverse a payment. Keep every payment's status in your database, build a “my orders” page, and use the PSP panel for refunds.
No gateway account yet? Test the whole flow first with a local mock that speaks the same request/verify contract, then swap in the real base URL and merchant key. That way the checkout, callback and idempotency are proven before the paperwork lands.

Recipe: a REST API & app

For custom logic, scaffold a real backend. The default stack is Django + DRF + SQLite, served by gunicorn — production-ready, not a dev server.

port 8000Django + DRFSQLitegunicorn
Create a Django + DRF project in /workspace/api with a 'notes' app: a Note model (title, body, created) and a REST API at /api/notes/ with list, create, retrieve, update and delete. Use SQLite, read SECRET_KEY and DEBUG from the environment, commit a .env.example, run the migrations, collect static, and serve it with gunicorn on 0.0.0.0:8000. Verify /api/notes/ returns 200 and show me the output.

A frontend for it (Next.js)

Add a Next.js (App Router, TypeScript, Tailwind) frontend in /workspace/web that lists the notes from http://127.0.0.1:8000/api/notes/ and lets me add one. Build it with next build and serve the built output with next start on 0.0.0.0:3000. Then curl the home page and show me the status.

Step by step: a Django API

  1. Scaffold with the prompt below: model, serializer, viewset, migrations. Ask for /api/notes/ to return 200 before adding anything else.
  2. Add authentication and ownership next. An API where everyone can edit everything is not a first version, it is a bug.
  3. Write tests for the happy path and for 401/403 before the UI exists; the agent can run them in seconds.
  4. Serve with gunicorn on 0.0.0.0:8000, collect static files, and publish the port from 🌐 Web.
  5. Add docs (OpenAPI) and a frontend only after the API answers. Two half-built apps are harder than one working API.
prompt 2 · auth and tests
Add token authentication to the notes API: only the owner can read, update or delete a note; anonymous requests get 401 and another user's note gets 404. Add ?search= on title and body plus pagination of 20. Write tests with Django's TestCase for create, list, search, pagination, 401 and cross-user 404, run them, and show me the test output.
prompt 3 · API docs
Add drf-spectacular to this Django project: expose /api/schema/ and a browsable /api/docs/ page, add a short description and one example request/response per endpoint, and make the schema validate without warnings. Then curl /api/docs/ and show me the HTTP status and the list of documented endpoints.
prompt 4 · repeatable deploy
Make this API deployable from a clean machine: pin requirements.txt, add .env.example with SECRET_KEY, DEBUG, ALLOWED_HOSTS and PORT, a /workspace/start.sh that supervises gunicorn and restarts it on failure (the machine runs that script at boot), a /healthz endpoint that checks the database, and a backup command that copies the SQLite file with a timestamp. Then restart the service, curl /healthz and show me both the status and the last lines of /workspace/logs/app.log.

Recipe: a Telegram bot

Run your own bot as a long-lived service inside the machine — it keeps running after the agent finishes.

python-telegram-botstart.shlong-running
Write a Telegram bot in Python with python-telegram-bot in /workspace/bot: it replies to /start with a welcome, /weather with a fake-but-tidy forecast, and echoes other text. Read the token from the BOT_TOKEN environment variable (put a placeholder in .env.example). Start it from /workspace/start.sh (the machine runs that script at boot) and append its output to /workspace/logs/bot.log. Do not print the token.

Step by step: your own Telegram bot

  1. Create the bot with @BotFather and keep the token out of the chat. Put it in a file with /sh, for example echo 'BOT_TOKEN=...' > /workspace/bot/.env.
  2. Scaffold the bot with one command and one echo reply first. Do not start with ten handlers.
  3. Keep it running from /workspace/start.sh so it survives the agent's turn and a machine restart; its log is /workspace/logs/bot.log.
  4. Test each command in Telegram yourself, including a wrong input and a restart (systemctl restart).
  5. Add persistence only when the bot needs memory: SQLite for reminders, Redis only when you truly need a queue.
prompt 2 · reminders with SQLite
Extend the bot with reminders stored in SQLite: /remind 10m take a break, /list and /done 3. Use APScheduler or a simple asyncio loop, store UTC timestamps and show them in the timezone from TZ (default Asia/Tehran). Validate bad input with a helpful reply, add tests for parsing and storage, and restart the service. Then show me /list output after creating two reminders.
prompt 3 · safe operations
Harden the bot: allow admin-only commands through an ADMIN_IDS environment variable, rate-limit each user to five messages per minute with a friendly reply, handle Telegram flood waits without crashing, log structured lines without tokens or message bodies, and shut down cleanly on SIGTERM. Then restart it and show me the journal lines for one normal command and one rate-limited command.
prompt 4 · health and watchdog
Add a local health endpoint to the bot: an aiohttp server on 127.0.0.1:8080 with /healthz that returns 200 only when the polling task is alive and the database opens, plus /metrics with message count and uptime. Start it from /workspace/start.sh with a small restart loop. Then kill the bot process, wait five seconds, and show me that it came back and /healthz returns 200.

More recipes

Each of these is a long-running service, so keep its start command in /workspace/start.sh and write its output under /workspace/logs/: that is what brings it back after a restart. A process started once with nohup or setsid is gone the next time the machine boots.

📊 Analytics

Install Umami with PostgreSQL on port 3002, start it from /workspace/start.sh (logging under /workspace/logs/) and send me the login and the tracking snippet.

🔀 Automation

Install n8n on port 5678 with basic auth, start it from /workspace/start.sh (logging under /workspace/logs/) and send me the URL and password.

📁 File server

Install Filebrowser, point it at /workspace, start it on port 8081 from /workspace/start.sh (logging under /workspace/logs/) and set an admin password.

🔒 Passwords

Install Vaultwarden with SQLite on port 8083, start it from /workspace/start.sh (logging under /workspace/logs/) and enable signups.

🩺 Monitoring

Install Uptime Kuma on port 3001, start it from /workspace/start.sh (logging under /workspace/logs/) and give me the URL to create the admin account.

📦 Git server

Install Gitea with SQLite, start it on port 3000 from /workspace/start.sh (logging under /workspace/logs/) and create my admin account.

Launch checklist

Before you share the link, run this list once. It catches the failures that make a finished project look broken.

  • The app binds 0.0.0.0 on the published port, not 127.0.0.1.
  • The home page and its CSS/JS both return 200 over HTTPS — open the page in a private window.
  • It starts after a machine restart or a service restart, not only in the agent's session.
  • Secrets are in .env (and .env is not served), with a .env.example for the next person.
  • There is a backup you have restored once, not just a backup script.
  • You know where the logs are (/workspace/logs/*.log) and one command to restart it (sh /workspace/start.sh).
prompt · the last check
Run a launch check on the project in /workspace: start it with its production command, curl the home page and every asset it references, restart the service and confirm it comes back, check that .env is not reachable over HTTP, and print a short table of PASS/FAIL for each item. Fix anything that fails, then give me the final URL and the exact restart command.

Prompting tips

  • Name the stack and the target: “Django + DRF”, “Next.js + Tailwind”, “nginx on port 80”.
  • Ask it to run and verify: “start it with gunicorn and curl the home page”.
  • Keep secrets in env files: “read the key from env, never hard-code it”.
  • Iterate in small steps instead of one giant request — each step uses less of your allowance and is easier to fix.

Plans & limits

Every account has a plan. New accounts start on the Free plan with no card; add credit to continue. Upgrade from ⚙️ Settings → 📦 Plan.

PlanPriceMachinesMachine sizeUsage / monthSites
Free$00—$0.501
Basic$5/mo11 GB · 1 vCPU$51
Pro$15/mo2up to 2 GB · 2 vCPU$152
Ultra$40/mo3up to 2 GB · 2 vCPU$405
The usage figure is a cap, not wallet money: agent runs spend the plan's monthly allowance (also capped per day and week), and the usage shown is included in the price. Machines are included up to the plan's limit; suspend one to stop its container while keeping its files.
At the month boundary a paid plan renews itself from the wallet balance at the same price, and the allowance resets. If the balance cannot cover the price, the account falls back to Free — files and the static site stay, but machines need a paid plan. A plan you can't stop is not a subscription: ⚙️ Settings → 📦 Plan carries Cancel renewal (and Keep renewing after it), which keeps the paid period running and moves the account to Free at its boundary — nothing is refunded, and nothing more is charged.

Topping up: 💳 Credits offers card-to-card in Toman (attach the receipt in the dashboard composer or send it in the bot; the operator reviews it) or an ETH deposit. Both fill the wallet, and the wallet balance is what buys a plan.

Credits & usage: where each dollar goes

Every account has two separate numbers. The wallet balance is the money you topped up; the plan allowance is what agent runs spend, measured in dollars and capped per day, week and month. A run never debits the balance — the balance is what buys and renews the plan, so one can be full while the other is used up.

QuestionWhere the answer is
How much is left today?The main menu's status card, and Home in the dashboard — the same $0.04 / $0.05 line.
What are my limits, and this period's spend?⚙️ Settings → 📦 Plan: the plan's day/week/month caps and this period's spend against each, in the bot and the dashboard.
What did my runs cost overall?💳 Credits → 📊 Usage: lifetime runs, tokens and spend, the last 7 days, an average per run and a rough runs-left figure.
Which run ate my allowance?🧾 Recent runs — on Usage in the bot and beside Export CSV on the dashboard's Credits page — lists the newest ten with tokens and each run's plan cost, newest first: the page that explains a cap refusal.
Why did my balance change?Credits → 🧾 History is the ledger: every change with its reason (plan, top-up, bonus) and the balance after it.
Can I keep the records?📄 Export CSV on the History page — in the bot and the dashboard — saves the last 500 ledger rows as a portable file.
A cap is not a balance. When the daily, weekly or monthly window fills, the run is refused and the notice names that window; topping up does not raise a cap — a larger plan does. The plan page always carries a 💳 Credits button, so a refused purchase or a full window has a way to add money.
The wallet also pays the monthly renewal: at the month boundary the same plan is bought again at its price. If the wallet cannot cover it, the account falls back to Free — files, published sites and the public/ folder stay; machines need a paid plan.

Referral: earn credit by inviting friends

Every account has a personal code, shown under ⚙️ Settings → 🎁 Referral code in the bot (Settings → Referral in the dashboard). Share the invite link; when a new account enters your code — from the link or the “enter a code” button — both sides receive the same referral bonus as wallet credit, and both ledgers record it as a referral bonus. The bonus is wallet money, so it buys a plan; it is not extra plan allowance.

QuestionAnswer
Where is my code?⚙️ Settings → 🎁 Referral code: the code, the ready-made https://t.me/…?start=… link and how many friends joined so far. The dashboard's Settings → Referral shows the same code and link.
How does a friend claim it?Opening the invite link starts the bot with the code filled in, so the bonus applies on signup. Someone already using the bot can tap 🔑 Enter a code on the referral page and send it instead.
What are the rules?One code per account, a code cannot be used by the account that owns it, and a code that was never issued is refused instead of credited. A rejected code changes nothing, so it is safe to try again with the right one.
A referral bonus lands in the wallet, not the plan allowance, so it can pay for a plan or its monthly renewal but never raises a day/week/month cap. Check 🧾 History to see the exact amount and the balance after it.

Security & what the agent can touch

Every account is a boundary: the agent is powerful inside your workspace and denied outside it.

AreaWhat happens
Your own boxOn a paid plan the agent runs for your account in a separate, disposable container with only your shared /workspace mounted; the Free plan uses that same workspace in a throwaway sandbox. No other account can read your files.
ShellThe agent may run build and test commands, but only inside that container — the same place /sh runs. It cannot reach the host, the Docker daemon, /etc, SSH keys or another user's data.
Disabled toolsBuilt-in web fetch/search, subagents, plugins and MCP servers are off. The one network exception is the bot API, which acts only on your own account.
Model keyThe provider key stays on the host. Your container receives a short-lived proxy token scoped to the model call, so it can never read or change the provider account or its credit.
SecretsCommit .env.example, never .env: .env, .ssh/ and .opencode/ are git-ignored. A workspace backup zips your files but excludes the OpenCode credential store, so a download never ships keys.
Public surfaceOnly the routes you publish are reachable from the internet, over HTTPS; every other port stays inside the machine. Remove a route to take its site offline without touching your files.
A single run also has a wall-clock cap (15 minutes by default) with a live activity summary and a Stop button, so long work cannot silently burn your whole allowance. The exact cap and prices live in the plan page, not in this guide.

When something breaks

Five checks that explain almost every failed launch. Read the run's own error before changing code.

The address answers 502, 404 or times out

The route's port must equal the port the app listens on, and the app must bind 0.0.0.0, not 127.0.0.1. Open 🖥 Machines → 🌐 Website and tap 🩺 Check sites for a one-tap status of every published address (a stopped machine answers 502); then curl the app from inside the machine. You do not have to watch it yourself: once a published site stops answering the bot messages you in the chat (and again when it recovers), so a dead app reports itself. Suspending the machine pauses the watch. The same 🩺 page opens with the 30-day uptime (percentage, total downtime and the number of outages) and then lists the last outages with how long each lasted, so both \"was it down last night?\" and \"how reliable has it been?\" are answered after the chat notice is gone.

The page loads but has no styling

That is a static-file problem, not a design bug. Run the production build (collectstatic for Django, next build for Next.js), serve the built output, then curl -I the exact CSS/JS URL and require 200. Never leave DEBUG on to hide it.

It worked, then died after a restart

The container has no systemd or init, so never ask for a unit. Keep the start command in /workspace/start.sh: the machine runs that script at boot and after every restart, so the app comes back by itself. Anything it prints goes to /workspace/logs/, and 🖥 Machines → 📜 Logs shows the tail of each file, so a crash tells you its own error without asking the agent or opening SSH.

The agent says it cannot run a server

The Free plan owns no machine, so only files in public/ can go online (a static site). A dynamic app, database or login needs a paid plan; buy one from ⚙️ Settings → 📦 Plan.

My change is not live

The app must be restarted (or rebuilt) and a browser may serve a cached page. You do not need SSH for this: 🔁 Restart app on 🖥 Machines (or the dashboard's Machines card) stops the process in logs/start.pid and reruns /workspace/start.sh, while the container, SSH and routes stay up; a full machine restart re-runs the same script. Then hard-reload the page. Anything started by hand must be started again.

Still stuck? Talk to a human

The bot has a two-way support chat, not a form: open ⚙️ Settings → ✉️ Support in Telegram (or Settings → Tools in the dashboard) and the next message you type goes to the operator, who replies in the same chat. Include your chat id (⚙️ Settings → 🆔 My chat id), the task or timer number from the reply, and the exact error line — a screenshot of the run reply answers most questions in one round.

FAQ

Do I need to know Docker or the terminal?

No. You write what you want in plain language. If a raw command is ever needed, /sh runs it inside your machine for you.

Where does my code live — and is it private?

In your account's shared /workspace, mounted into every machine you own. It persists across restarts and no other account can read it.

Can it keep running after the agent stops?

Yes — while the machine runs, and again after a restart if you keep the start command in /workspace/start.sh: the machine runs that script at boot. It keeps serving after the agent's turn ends, and anything it prints lands in /workspace/logs/.

What can I build with vibe coding?

Anything a small server can run: a landing page, a blog, a WordPress or Ghost site, a store, a REST API, a Telegram bot, a dashboard, an automation. The recipes below are the ones people ask for most.

Do I own the code?

Yes. It is a normal project in your own /workspace (Django, Next.js, PHP …), so you can download it, edit it in any editor, or move it to any host later.

Is it free to start?

You can open the bot and start on the Free plan — no card. Paid plans charge a monthly subscription with a larger monthly allowance and more machines; your usage counts against that allowance and you can watch it in every answer.