Agent
Write the app you want in Persian or English, say it in a voice message, or give files and links. Agent makes the project, writes the app on cloudhost's products and shows every change as a preview; production changes only when you confirm Deploy.
Start from a message#
The Agent page in the sidebar is one message box: text, a voice message (record, then send), files of any kind and links. Beside the send button you choose where it goes: a new project by default, with a short name from your idea that you can change before or after (project names are unique in the team), or one of your projects. Below the box are the projects you worked on with Agent lately. The same box is the top of an empty team's Overview.
Agent opens from every page: the Agent button in the top bar (on a phone, its icon in the header), the keyboard shortcut ⌘I on a Mac or Ctrl+I elsewhere, or the first row of the Find… menu. Inside a project it opens that project's Agent tab; anywhere else, the Agent page. The empty box suggests ideas to start from.
When you send, cloudhost makes the project with your own session and role (not Agent), makes Agent a key that reaches only that project, and opens the project's Agent tab. Files you uploaded before the project existed are held and go to the project with the first message.
Making a new project is for owners, admins and developers; an existing one, for any member who can deploy in it. The other ways to start are beside the box: import from Git, the CLI and use your own coding agent.
The project's Agent tab#
Each project has one conversation with Agent, and the project's Agent tab is that conversation with the live preview beside it. There is no new conversation and no list of them: every message carries on the same conversation, and Agent knows what was said before. A project's older conversations, from before this, are archived and can be read.
Agent's versions are the project's deployments on the agent branch, with Agent as their author; rolling back and comparing two versions work as for any deployment. Every other page of the project has a slim panel that opens the same conversation, so you can ask Agent without leaving the page.
Agent is always available, with no switch to turn it on. "Stop Agent on this project" is a row in the project's Settings: the running message stops and Agent's key is revoked at once; the next message starts it again with a new key. Deleting the project revokes the key too.
The repository is the one truth#
The app's code lives only in the project's repository, never in the chat. Agent works like any developer, on its own branch, agent, and each of its changes is that branch's preview, at its own address and on its own copy of the data; production is not touched. Agent's key pushes with Git only to the agent branch; a push to any other branch is refused.
Before each message Agent is told the latest commit of each app on main and on agent. When you or a teammate pushed with git push, Agent reads it before its next step.
Deploy to production#
Going live is Deploy, in Agent and on the Deployments page. The Deploy to production button opens the same dialog as a production deploy on the Deployments page, which shows before you confirm:
- what changes from production's version to the preview's: files added, removed and changed, and new bindings and environment variables;
- the table changes as SQL, the tables' structure only; a change that drops a table or a column is marked apart;
- any new monthly cost in production, and the wallet balance.
- Rows made while testing stay in the preview; production keeps its own data, and the dialog says so.
The dialog deploys the versions it showed. If Agent changed the preview after the dialog opened, the deploy is refused, so nothing you did not see reaches production; open the dialog again to see the new changes.
Approvals#
Agent asks before deleting, before changing production and before anything that costs. It makes the resources the app needs that are billed by use only by itself: a SQL database, a cache, a bucket, a queue, a notification topic, an actor. Everything in the table below waits in the conversation for you to approve or deny; our API holds it, not Agent. An approval works once, for 30 minutes, and cloudhost carries out only the action it shows: if Agent asks for the same action with something different, the earlier approval expires and a new one appears.
| Approval | When |
|---|---|
| Production deploy | A deploy, rollback or gradual release in production; linking a repository or building from it; building a production version again |
| Change to production | Anything that changes production at once: a variable or a secret's value that reaches production, protection and its bypass token, share links, the firewall, routing, schedules, and a queue sending its messages to an external service |
| New monthly charge | Making or enlarging something with a fixed monthly charge, such as an instance kept running, a larger SQL database compute or more read replicas; the price per month and the wallet balance are on the card |
| Destructive change | Always, even when free: any delete in the project (but a preview and the build cache), such as a resource, an app, a function, a database branch, a secret or the project itself; rotating a credential, key or secret; restoring a database to an earlier time; purging a queue; a flag's kill switch or rollback |
| Custom domain | Adding a domain to an app or function, or changing one |
| Wallet top-up | Only a payment link, for the person who approves (owner, admin or billing) |
Agent's key never reads a secret's value (the app reads its secrets as variables), takes a database password or another resource's credential, sees the team's members or audit log, makes keys, or changes the team and its billing. Cache commands, queue messages and publishing to a topic or channel work on a preview's or development's data only, never production's.
Files, links and voice#
Agent sees images and PDFs as they are and reads the text of a document, a recording or a video. It opens links itself, on the web. A voice message becomes text in the box, for you to read and fix before you send it.
| Every plan | |
|---|---|
| Files in one message | 10, at most 100 MB together |
| Links in one message | 10 (links written in the text count too) |
| A voice message | At most 10 MB |
| A message's length | 32,000 characters |
Sign-in and email in your app#
Sign-in and sending email and SMS are part of the app itself: the app has its own sign-in library and sends email and SMS through the external services you choose, with their keys in Secrets. When the app you ask for needs people to sign in, Agent writes sign-in into the app's code, with the services you name.
Usage and cost#
Each message is a run, paid in credits: one credit is one US cent of the work the run does, at the price in Billing. Each run's cost shows beside its message in the conversation and as an Agent line in the project's Usage; the team's monthly credit pays first, then the wallet. The products the app uses are billed as in any project.
From the CLI, the API and MCP#
cloudhost agent new "a shop for handmade bags" --file menu.csv --link https://example.com/bags
cloudhost agent send "make the buttons green" --project bag-shop
cloudhost agent deploy --project bag-shop # shows the changes, the SQL and the costs, then asks
cloudhost agent stop --project bag-shopEvery route is in the API reference. Agent's own key cannot call any of these routes.
Use your own coding agent#
If you work with your own coding agent, connect it to cloudhost with the MCP server and an API key; it does the same work under the same rules. In cloudhost, Agent is only the name of our own.