Build with Harebell · When things go wrong

What your app costs

An app you build runs in your company's cloud account, and your company pays its cloud provider for what the app uses. Harebell shows you what each app costs, so that the cost of a small tool is never a mystery. This page explains where an app's cost comes from, where to look it up, and what you can do to keep it low. You do not need to be good with numbers. A little attention to a few habits is enough.

Where the cost comes from#

The cost of an app has two parts, and it helps to keep them apart.

The first part is the cost of the cloud itself. An app, unlike a job, runs all the time, so that your colleagues can open it whenever they like, and the computing power it uses is billed whether anyone is using it or not. A job uses computing power only while a run is going, so a job that runs for a minute each morning costs much less than an app. Beyond that, anything your app asks for costs something to keep: a database, a place to store files, a queue, the logs it writes, and the keys and secrets it holds. Building a new update also costs a little each time.

The second part is AI models. If your app asks an AI model to summarize, classify or write something, each call is charged by how much text goes in and out. This is usually the part that moves fastest, because it grows with use. An app that makes one call for each of two hundred rows, every time someone opens a page, adds up quickly.

Some costs belong to no single app. The network and the sign-in service are shared by everything in your company's account, so the console shows them separately and does not charge them to your app.

Where to see it#

Open your app in the console. On its Overview tab, the Cost card shows the total for the last 30 days. Open the part labeled "What it's for" and you see the total split into the kinds above, such as running it, databases, files, logs and AI models. This split is how you find out which part is the big one.

For the whole company, the Home page shows one number for the last 30 days, with cloud and AI together, and a link to see it by app. The Apps list shows the same at its foot, with the shared costs named.

Some things are worth knowing about the numbers, so they do not worry you:

  • Cloud costs come from your cloud account's bill, which usually runs about a day behind. Late charges can still change the last few days, so look at the trend rather than yesterday's last cent.
  • AI model calls are estimated as they happen, so they are current.
  • Days are counted in UTC, a standard clock that does not change with your time zone.
  • Only resources tagged for your app count. An app's resources are tagged each time it is released, so an app that has not been released lately may show cloud costs only from its next release.
  • A private copy you are building counts toward its app.

If the card says "Not counted yet", the cloud bill has not started splitting costs by app. This is normal for the first day after your first app goes live. If it is still there after that, an admin may need to turn on two cost tags in the cloud account's billing settings, and the card tells them how. Budgets and costs is the admins' page for this.

Keeping the cost low#

Cost is mostly a result of what you ask for, so the best savings come early, when you decide what the app needs.

Ask for what the app needs and no more. Every database, file store and queue costs money for as long as it exists. An app that only shows a page and keeps nothing is the cheapest app there is. Ask for a database, files or a Slack channel explains how to ask.

Keep the app small. Apps come in three sizes, small, medium and large, and small is the default. Most internal tools are comfortable at small. The release plan shows the size and what it means, and your AI tool can set it.

Choose the model for the job. Smaller, cheaper models are good at sorting, extracting and short summaries. Ask your AI tool, "Which AI model does this app use, and could a cheaper one do the job?"

Avoid calling a model when you do not have to. If the answer for a row never changes, ask your AI tool to remember it instead of asking again every time the page loads.

Let schedules breathe. A job that runs every five minutes does far more work than one that runs hourly, and a report people read once a day rarely needs to be fresh to the minute.

Remove what you no longer use. An app nobody opens can be deleted from the bottom of its About tab, and what it uses goes with it, though a database leaves a final backup that Harebell keeps for a while. Your private copy stops by itself after 30 minutes without use, and the databases and other resources made for it are deleted after 7 days unused.

AI limits that protect you#

Because model calls can grow without anyone noticing, Harebell caps them. Every released app, job or agent has a daily limit for AI models, which starts at $20 a day, and your company's admins can change it. The private copy you build with has a separate daily limit, for each builder and each app. When an app reaches its limit, calls are refused until the next day starts in UTC, so a mistake in a loop costs a bounded amount rather than an open-ended one.

If your app really does need more, your AI tool writes the request into the app's settings, and the release plan tells you when it is above your company's usual limit. An admin then decides, as Approvals describes. Until they do, your app runs at the usual limit, so waiting never leaves it without AI altogether.

An example#

Sally Chen at Initech releases desk-reports, a small app for logging broken desks. A week later she opens its Cost card. It shows a few dollars, nearly all of it for running the app and a small database. The AI models line is empty, because the app does not use them. She decides it is fine.

Ben Okafor's expense assistant is a different story. It asks a model to read every receipt each time someone opens the page, and its Cost card shows AI models as most of the bill. He asks his AI tool to read each receipt once and remember the answer. The next week's number is a fraction of the last.