Docs / Modules / Servers & hosting

Light hosting

Keep your bot, website or small API online 24/7 on Harnes servers, without buying or managing a server. Free https://<name>.harnes.ir address that opens inside Iran, Telegram and other foreign APIs reachable, billed daily from your Harnes Code wallet (from 3,000 toman a day).

What you need

Nothing — it is billed daily from your Harnes Code wallet (the small plan is 3,000 toman a day). Creating an app needs at least 3 days of its price in credit. Windows app 0.1.20 or newer.

Connect

  1. Nothing to connect — your Harnes Code wallet just needs credit.
  2. Tell the agent what to put online (e.g. “keep this bot running 24/7”). It tells you the plan and daily price and creates the app once you agree.
  3. The project folder is uploaded, built and started at https://name.harnes.ir. Tokens in your .env are kept encrypted and are never uploaded as a file.
  4. Changed the code? Say “deploy it again”. Logs, restarts, plan changes and deleting are one sentence each.
  5. Plans: small (256 MB RAM, 3,000 toman/day), medium (512 MB, 5,000/day), large (1 GB, about 8,400/day). If credit runs out the app is stopped and deleted 7 days later; topping up turns it back on automatically.

Example requests

Build a Telegram bot that posts the dollar and gold price to my channel every hour and keep it running 24/7 on light hosting

Put this website online at mycafe.harnes.ir

mybot stopped answering last night — read its logs and fix it

Build a small FastAPI endpoint that receives my site form and forwards it to Telegram, and put it online