All posts

Can AI Agents Like Cursor and Windsurf Deploy Websites Automatically?

Update (September 2026)

If you use Claude, ChatGPT, Perplexity or Cursor, you don't need an API key any more: connect Hostilo as an MCP connector and your AI publishes the site itself. Hostilo is listed in the Claude connector directory and the ChatGPT app directory; other tools can add https://hostilo.app/mcp as a custom connector.

AI coding agents like Cursor and Windsurf have changed how people build software. You describe what you want, and the agent writes the code. The next question is whether the agent, once it has built your website, can also publish it (put it online) without you copying files around by hand. With more and more hosts, it can.

What "deploy" means for an agent

For a human, deploying a website means getting the finished code onto a host so it has a public URL. For an AI agent to do this automatically, it needs a way to talk to a host from code, which is called an API. An API is a set of web addresses the agent can send requests to: "here's my HTML, publish it," or "update this existing site with new code." If a host offers one, an agent can deploy on your behalf.

How it works with Hostilo

Hostilo has a REST API for this (described in hostilo.app/openapi.json). The flow looks like this:

Example agent instructions

You can put something like this into your agent's rules (for Cursor, that's a .cursorrules file):

You are an autonomous Hostilo agent. You can publish code.
Base URL: https://hostilo.app/api.php
Auth Header: "Authorization: Bearer YOUR_API_KEY"

Actions:
1. GET  ?action=list_sites            (see existing projects)
2. POST ?action=update_site           (upload new code)
   Body: {"site_id": 123, "html": "<!DOCTYPE html>..."}

Now when you ask your agent to "update my landing page and publish it," it can write the code and push it live in one step.

Tip

Requests are rate-limited per key, so an agent can't overload the service by accident. Well-behaved agents pace themselves.

Why this matters

This connects building and publishing. Instead of "agent writes code → you copy it → you paste it into a host → you save," it becomes "agent writes code → agent publishes." For people building lots of small sites, or iterating quickly, that saves time. It also means your site can be updated by automation: a scheduled agent could refresh content without you doing anything.

Do you need to be technical to use this?

To set up the API workflow, a little comfort with configuration helps. The connector in Claude or ChatGPT takes a few clicks. And you don't need any of this to use Hostilo normally. If you're a non-technical creator, copy and paste is enough. The agent API is an option for power users, not a requirement.

Frequently asked questions

Which agents can deploy to Hostilo? Any tool that can make web requests with an API key: Cursor, Windsurf, custom scripts or agent frameworks. Tools that support MCP connectors (Claude, ChatGPT and others) can use the connector instead.

Is it safe to give an agent my API key? Treat the key like a password. It only controls your sites, and you can regenerate it anytime if you suspect it's exposed.

Can an agent create brand-new sites, or only update existing ones? Both. The API supports listing, creating and updating projects.

Do I have to use the API at all? No. It's optional. Copy and paste publishing works without it.

Put your AI site online

Paste your ChatGPT or Claude code, click Save and get a live HTTPS link. Free to start, no credit card.

Publish your site free

Related guides

More from the blog