# Resell and re-bill

> Run agents for many clients in one account, read what each one costs, cap it, and bill your clients your own price.

**Ask your management agent:**

- "Show me what my instances cost this month."
- "Set a monthly usage cap of $8 on the acme agent."


molted.net is built to be resold. You keep the client relationship and set your own prices; molted.net bills
you at its own rates.

## One account, many clients

All your clients live in your account. There are no sub-accounts: you separate clients with
[tags and ownerPath](organise-clients.md), give each one access with [links](access-links.md) and your
[branded app](branded-app.md), and keep their agents isolated from each other (every instance is its own
machine).

Your clients never need a molted.net account and never receive a molted.net invoice.

## What each client costs you

For every instance you can read:

- **its cost over a period** (`GET /v2/instances/{id}/cost?from=…&to=…`): hosting and tools, line by line;
- **its usage report** (`GET /v2/instances/{id}/usage-report`): what the agent used, by category;
- **snapshots** of its cost at a date, to freeze a figure for an invoice (`/cost/snapshots`);
- the **list of meters** and their unit prices (`GET /v2/meters`).

Add up the instances tagged `client=acme` and you have what Acme cost you this month.

## Capping what a client can spend

Every instance has a monthly **usage cap** for tools (browser, connected apps, Molted Flash, voice, memory).
Set it per instance to match what your client pays:

```bash
curl -X PUT "https://api.<region>.molted.net/v2/instances/<instance>/usage-cap" \
  -H "Authorization: Bearer $MOLTED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "cap": 8 }'
```

The cap is in US dollars. Tools stop when the cap is reached (a small overshoot is possible, as usage is
measured with a short delay); you pay only what the agent actually used. See
[Usage caps](usage-caps.md).

## Setting up each new client

1. Prepare a [template](templates.md) with your agent's instructions and skills.
2. When a client pays you, create their instance from the template, with their tags and cap (from your own
   backend through the API, or by asking the [management agent](management-agent.md)).
3. Send them an [invite link](access-links.md) to your branded app.

The same flow works when your own resellers sell to their clients: create the instance, then send the invite
link to whoever should receive it.

## What does not exist yet

- Handing an instance over to another molted.net account.
- Separate billing accounts for your clients inside your account.

If you need either, [talk to us](enterprise.md#talk-to-us).

> **With Enterprise, on request:** we can offer volume pricing, reserved capacity and a monthly invoice
> instead of a prepaid wallet, and work with you as a partner on the clients you bring. See [What Enterprise
> adds](enterprise.md#talk-to-us).
