The management agent is an agent that runs your account for you. Instead of clicking through the dashboard or writing API calls, you ask it in plain words.
What it can do
- Create instances for you or your clients, from a template, with the right size, runtime, tags and owner path.
- Give access: create invite links to send to a client, or sign-in links into your branded app.
- Publish your branded app and connect your own domain.
- Diagnose an agent that does not answer: status, events, alerts, logs, then restart if needed.
- Turn an instance into a template so new clients start from it.
- Answer questions about your account: balance, costs per instance, usage caps.
It asks for your confirmation before anything that costs money (creating an instance, changing a size) or deletes something.
Examples of what to ask:
- "Create an agent for Acme from my sales template, Small, tagged client=acme, and send me the invite link."
- "Which of my agents cost the most this month?"
- "The agent of Dupont does not answer, what is going on?"
- "Publish my app on app.example.com."
Starting it
Open your dashboard and click the round chat button at the bottom right, or choose Start with Molted on the Getting started page. The first click creates the agent; the next ones open it.
- Only the account owner can start it.
- It is a Mue instance of size Large, billed like any other instance. Your account needs credit for its first day.
- It runs on the first AI account you connect to it (Claude or ChatGPT), and on Molted Flash until then.
How it works
The management agent uses the molted.net API, like any program you would write. When it is created, it receives an API key named Management agent, stored in its own secrets vault. You see this key in Developers → API Keys.
- Revoke the key to cut its access immediately. It is revoked automatically when you delete the management agent.
- Delete the agent like any other instance when you no longer need it.
How it does the usual jobs
The recipes below are what the management agent follows. They are written for agents, and they are useful to
anyone who drives molted.net through the API. Calls go to https://api.<region>.molted.net
with the account's API key (Authorization: Bearer …).
An agent for a client
- Say what will be created and wait for a yes: the name, the size and its monthly price (for example Small, $2.88 a month).
- Create it:
POST /v2/instanceswithhandle: lowercase, taken from the name (anna-dupont);tenantId;startAgent: true;profile:{ "userName": "Anna", "language": "French", "timezone": "Europe/Paris" };- no
runtime: Mue is the default.
- Give the invite link right away, without waiting for the agent to start:
POST /v2/instances/{id}/invite-linkwithexpiresInHoursup to 48. It works while the agent is starting. If it is opened too early, the page says the agent is starting and the invitation stays valid: it is used only once, when it actually opens the agent. molted.net sends nothing: show the message to the user, then send it with the user's own tools (their email, their chat) if they ask. - Then wait until its
statusisrunning(usually 1 to 3 minutes):GET /v2/instances. - Tell the new agent who it works for: read
workspace/USER.mdwithGET /v2/instances/{id}/fs/read?path=workspace/USER.md(404 on a new agent), then write it withPUT /v2/instances/{id}/fs/write. Write facts only, and nothing about the client that the client should not read: the client will open this agent. - To open it yourself instead, once it is running:
POST /v2/instances/{id}/open-in-applicationwith{"applicationId": "mue-web"}(or your branded app's id), a sign-in link, single use, valid 10 minutes. It answers409while the instance is still starting.
A template for a type of client
Template writes still go through v1; reads are in v2.
- Create the template:
POST /v1/templateswithname,runtime: "molted-runtime",pathBase: "home",mode: "replace"and its files (paths relative to the agent's home directory):workspace/mue-pages/home.json, the suggested missions of the home screen:
Up to 8 suggestions,{ "version": 1, "suggestions": [ { "label": "Estimate a property", "text": "Estimate the property at…", "hint": "address, surface", "icon": "home" } ] }labelup to 60 characters.iconis one ofhome,calendar,messages,list,chart,star,bolt,globe,folder, or an emoji.hintandiconare optional..agents/skills/<name>/SKILL.md, one per skill, starting with a frontmatter that hasnameanddescription.- On request, the left bar,
workspace/mue-pages/sidebar.json:
and a custom page,{ "version": 1, "items": [ { "page": "routines" }, { "page": "terminal", "hidden": true } ] }workspace/mue-pages/<id>/index.htmlwith itspage.json.
- Variables: a
{{NAME}}written in a file is a template variable. Declare it on the template and fill it at creation, or don't write one: otherwise creating an agent from the template fails. - Create an agent from it:
templates: [{ "name": "…" }]inPOST /v2/instances(withplainValuesfor the variables). - Check: read
workspace/mue-pages/home.jsonon the new agent (fs/read). The cards are on its home screen before its first conversation.
An agent that needs attention, or a full disk
- Look:
GET /v2/instances(itsactualState: heartbeat, memory,diskUsagePercent…), thenGET /v2/alertsand keep the alerts of that instance. - Explain what is wrong in plain words.
- For a full disk, find what takes the space:
POST /v1/instances/{id}/execwith{"command": "du -xh -d 2 /home/agent"}. The command runs as is, without a shell: no pipes, no redirections, no~. Sort the result yourself and keep the largest entries. - Propose the exact list (path and size) of what to delete and wait for a yes. Delete only that, then
check again.
- Caches and build outputs: fine to propose.
- Documents,
workspace/, memory and conversations: never, unless you name them one by one and the user agrees.
- If nothing can go, propose a bigger size: it applies without a restart.
A stopped instance is not free: it costs 10 times less than a running one.
Using your own agent instead
Any instance can play this role: tag it role=management-agent and give it an API key of your account. It is
then the one the dashboard opens. This is useful if you built your own management agent, on another runtime
or with your own instructions.
Your management agent, like any agent, can read this documentation at /docs/llms.txt.