# How do I put an agent I built in the cloud, and what runs there?

**An agent you build can run on this computer or in Irene's cloud. Deploying packs up the agent (its instructions, toolkits, skills, reflexes, recipes, hooks and connections) and runs it as its own small server with a public link, a ready-made chat page, and its own key that spends from your account up to a monthly cap you set. It sleeps when nobody's using it and wakes on the next message, or it can stay on around the clock. Your computer can be off.**

---

## What makes it different

| what it does | the primitive behind it | what that buys you |
|---|---|---|
| **One agent, one server** | Each deployed agent runs in its own pod, built from a shared image plus a bundle of just that agent's state | Agents don't share memory, files or keys with each other, or with your computer |
| **A chat page out of the box** | Every deployed agent gets a hosted chat page at its own link, or the custom page you built for it | Hand someone a link and they can use your agent, with nothing to install |
| **Its own key, with a cap** | Deploying makes a scoped, revocable key for that agent that spends from your account, with a monthly cap | One agent can't run up your whole bill. The cap changes without redeploying |
| **Sleeps when idle** | By default the pod scales to zero and wakes on a request; or set it to always on | You don't pay to keep an idle agent awake |
| **Each person gets their own space** | In sign-in mode, every user gets private history, files and memory, and their own app connections | A public agent never hands one person's data to another, and your own logins never ship with it |
| **Works while you're away** | Schedules and webhooks on a deployed agent run in the cloud | Jobs run at 6 a.m. whether or not your computer is on |

---

## How it works

### Deploying

1. **Build the agent** in the Agent builder. It asks early on: *Cloud, or this device?*
2. **Try it on this device first.** The builder won't offer a public page until the agent has run once ("Try it on this device first — run it once").
3. **Ask the builder to deploy it.** It bundles the agent's instructions, tests, custom toolkits, skills, hooks, saved reflexes and recipes, app connections and requirements, uploads the bundle, and starts the pod. There's no deploy button: deploying happens in the builder conversation.
4. **You get a public link** and, depending on who may use it, a key or sign-in instructions.

**Why a bundle on a shared image:** your computer doesn't need to build anything or have any cloud tools installed. The pod gets only the state this agent needs, and its size is picked from what it actually depends on.

### Who can reach it

| mode | who gets in |
|---|---|
| **key** | anyone with a key. You get a master key, plus a first key to hand out, and each one can be revoked |
| **sign-in** | people who sign in by email. Each gets private history, files, memory and their own app connections. It can be made invite-only |
| **open** | anyone with the link. Each person gets their own conversation, and you pay for all of them |

When you switch an agent to sign-in mode, its app connections are switched to per-user first, so your own logins never ship with the pod. The deploy also refuses a sign-in agent that hard-codes your own email as a recipient, unless you say so.

### Sleeping or always on

| setting | behaviour |
|---|---|
| **scale to zero** (default) | sleeps when idle, wakes on the next request |
| **always on** | stays up around the clock |

**Size** is picked automatically: the smallest server that fits the agent's real dependencies, with room to spare (up to 2 GB of memory).

**Always on isn't the same as working on its own.** A deployed agent works unattended when a **schedule** or **webhook** wakes it. Those run in the cloud only when the agent is deployed. On this device, they run while Irene is open.

### What works in the cloud

| works in the cloud | stays on this device |
|---|---|
| files, web, shell, reflexes, skills, recipes, agent memory, delegation, media generation, cloud storage, database, plus any app connection, MCP server or toolkit you built | the specialist agents (Browser, Computer use, Coding, Docs, Slides, Spreadsheets, Design & Media) and local document search |

If a draft uses something that only runs on this device, the **Public link** tab is dimmed: "No public page yet — [agent] uses [toolkit], which runs on this device only. Detach it to get a link." An agent that hands work to other agents can only deploy if all of them can.

**Why some things stay local:** the specialists drive your browser, your desktop and your files, and local document search reads your computer. None of that exists in a cloud server.

### What it keeps

The pod keeps its files, sessions, channel state, each user's memory and workspace in cloud storage, and restores them when it wakes or is redeployed. **Why:** a cloud server's own disk doesn't survive a redeploy or a move.

---

## Where you see it

- **The Agent builder:** two tabs, **On this Device** and **Public link**, plus **Runs · N** once there are saved runs.
- **The agent's page:** the hosted chat page, or the custom page you built. Its account menu has **Connections**, **API key** and **Sign out**.
- **Workforce:** your deployed agents, their status and link, their cloud sessions and read-only transcripts.
- **Ask the builder** to check status, change the cap, add a secret, redeploy, or take the agent down.

---

## Approvals

- **Approvals still apply in the cloud.** A tool that needs approval pauses until someone answers in the chat page. Calls through the plain run endpoint deny such tools automatically.
- **For schedules and webhooks** you decide per tool: allow, always ask, or deny. A background trigger never counts as someone approving.

---

## Privacy and security

- **Secrets** (API keys for outside services) are encrypted, put into the pod's environment, and can't be read back. Listing them shows names only.
- **Cloud storage and database access** go to the pod as secrets, not inside the bundle. A read-only connection doesn't carry the write key at all; that stays on your computer.
- **The pod is locked down:** the agent's shell can reach only its own workspace. If the pod can't set up that separation, it refuses to start.

---

## What it costs

- **What the agent does** (models, media, search, tools) is billed to your account through the agent's own key, at what we pay + 20%.
- **The monthly cap** defaults to **$10** for open agents and **$25** for key or sign-in agents. It resets each calendar month and can be changed any time without redeploying. No cap means uncapped; a cap of $0 means no spending.
- **The server itself:** Irene covers the compute and records an estimate of each agent's machine hours.

→ [Plans, usage & shared usage](https://mycelen.com/manual/start-here/plans-and-usage)

---

## Limits

- **The specialist agents and local document search don't deploy.** Use them on this device, or give the cloud agent toolkits that do deploy.
- **Taking an agent down is permanent:** it deletes its cloud sessions, workspace, stored secrets, triggers, approvals and the deployment, and revokes its key. Your local draft stays.
- **Optional dependencies install as best they can.** If one fails, the agent still deploys, and the toolkit that needed it fails when used.
- **When you redeploy, say whether it should stay always on.** Redeploying without saying so can return it to sleep-when-idle.

---

## Related

- [Agent builder](https://mycelen.com/manual/reference/builders/agent-builder) · [Channels](https://mycelen.com/manual/reference/builders/channels) · [Phone numbers](https://mycelen.com/manual/reference/builders/phone-numbers)
- [Store](https://mycelen.com/manual/reference/toolkits/store) · [Database](https://mycelen.com/manual/reference/toolkits/database) · [Agent memory](https://mycelen.com/manual/reference/toolkits/agent-memory) · [Build your own toolkit](https://mycelen.com/manual/reference/toolkits/build-your-own-toolkit)

[Ask Irene about this]
