← Daily AI recipesPhoto & Video✓ Verified Oct 14, 2026

Build a browser RPG with an AI agent in one evening

Get a playable browser game in a single HTML file with no coding knowledge, using a free AI agent.

  1. 1.Open the AgentHere website and sign up. Sign-up grants 1 000 000 free tokens - enough to build a game prototype without linking a card.

    If the service is unavailable in your region, use a VPN or another AI chat that supports code generation.

    AgentHere ↗
  2. 2.In the «My Agents» section, choose an assistant or analyst template, then open the web chat. Send the agent a prompt to create the first version of the game.

    The more precisely you describe the mechanics, the better the result. For your first game, one screen and basic actions are enough.

    AgentHere ↗
    Prompt
    Create a simple browser-based text RPG in a single index.html file. Put all HTML, CSS and JavaScript inside one file. The player is a hero exploring a dark forest. Include a start screen with a 'Start Game' button, a simple battle system with a Goblin (with 'Attack' and 'Heal' buttons), and a Win/Lose screen. Keep the code minimal but playable.
    What this prompt doesThe English prompt asks the AI to create a simple text RPG in a single index.html file with embedded HTML, CSS, and JavaScript. The game includes a start screen, a battle with a Goblin (Attack and Heal buttons), and victory/defeat screens.
  3. 3.Copy the code generated by the agent, create a new file named index.html on your computer, and paste the code there. Save the file.

    You can ask the agent to split the code into blocks if it doesn't fit in one message, or just copy all the code from the .html block.

    AgentHere ↗
  4. 4.Open the index.html file with a double click in any browser. Check that the game launches and the buttons work.

    If the game doesn't work, copy the error text from the browser console (F12 -> Console) and send it to the agent for fixing.

    Web Browser ↗
  5. 5.Return to the chat with the agent and ask it to add one specific mechanic or improvement. Update the code in your file.

    Add one feature at a time so the agent doesn't get confused. For example, add sound or a leaderboard.

    AgentHere ↗
    Prompt
    Add a health potion item to the game. The player starts with 1 potion. Add a 'Use Potion' button that restores 30 HP and removes 1 potion from the inventory. Update the HTML and JavaScript accordingly.
    What this prompt doesThe English prompt asks to add a health potion (1 at start) and a 'Use Potion' button that restores 30 HP and removes the potion from the inventory, updating the code.
  6. 6.When the game is ready, publish it online so you can share the link. Sign up on Surge, install the utility, and run the publish command in the folder with your game.

    Surge is a free static site hosting service. To install it, run `npm install --global surge` in your terminal.

    Surge ↗
💰 What it costs to followprices as of 2026-10
  • freeAgentHere - free sign-upAfter sign-up you get 1 000 000 free tokens - enough to build a game and dozens of edit iterations; image and music generation are included in the account.
  • freeVercel - landing hostingThe free plan lets you host a static site with your game and get a public link at no cost.
Try it and be the first to check in

Why today

AI services change fast - interfaces and free limits may differ from what's described.