> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superintern.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Containers (Beta)

> Let your SuperIntern website's backend run work its usual code can't: a Python program, a headless browser, a library that needs a full computer, or a long task. Beta, switched on for each business.

> [!WARNING]
>
> **Beta.** Containers are switched on for each business by SuperIntern. If you'd like one, contact us at [support@superintern.ai](mailto:support@superintern.ai). Until they are on for your business, a website version that asks for one can't be published.

Your [website's backend](https://docs.superintern.ai/websites/backend.md) handles most things a website must work out while a visitor waits. A **container** is for work that it can't do on its own:

* a program written in Python or another language;
* a headless browser, for example to make a PDF or a screenshot of a page;
* a library that needs a full computer to run;
* a task that takes longer than a visitor would wait for a page.

A container runs next to your website, as part of it. Your website's own code calls it; visitors never reach it directly.

## What you approve

A container goes online only once you approve it, like everything else your website's backend uses. Before you approve, your website's page shows its size and what it costs an hour.

* **The size** is how much computer it gets, from Lite to Standard 4. Your website's code asks for the size it needs, and that is the smallest you can pick: you can choose a bigger one on the **Container** card on your website's **Settings**, which counts as approving it. A later version that asks for a bigger size than yours waits for you again.
* **You pay only while it's awake**, in credits, charged by the second. While it sleeps it costs nothing.

| Size | Processor | Memory | Disk | Credits an hour awake |
| - | - | - | - | - |
| Lite | 1/16 of a CPU | 256 MiB | 2 GB | 2.0 |
| Basic | 1/4 of a CPU | 1 GiB | 4 GB | 5.1 |
| Standard 1 | 1/2 of a CPU | 4 GiB | 8 GB | 12.0 |
| Standard 2 | 1 CPU | 6 GiB | 12 GB | 20.3 |
| Standard 3 | 2 CPUs | 8 GiB | 16 GB | 33.9 |
| Standard 4 | 4 CPUs | 12 GiB | 20 GB | 61.1 |

For example, a Basic container awake for 2 hours a day uses about 306 credits in a 30-day month (60 hours × 5.1). Prices may change while containers are in beta.

## Awake only when it's used

A container sleeps when nothing needs it:

* It starts on the first call, which takes 1 to 3 seconds.
* It goes back to sleep 5 minutes after the last call.

## Keeping the cost in check

You decide how many hours a month the container may be awake. A new container may be awake for **100 hours** a month. Change it on the **Container** card on your website's **Settings**: anything from 1 to 744 hours, or **No cap**. No cap is only ever your choice: your website's code, Claude and the builder can't pick it.

* **At 80% of your limit**, SuperIntern tells you, once a month.
* **At the limit**, the container pauses until the next month, or until you raise the limit or choose No cap.
* **If your credits run out**, the container pauses too, whether or not it has a limit. It starts again once you have credits.

Either way, the **Website health** card on your website's **Overview** says why it is paused.

While it is paused, the parts of your website that use it can't, and your website's code is told it is paused so it can say so to visitors. SuperIntern lets you know when it pauses (it is part of **Website down or broken** on your Notifications page).

## What it can reach

A container can't reach the internet on its own. It can call only the [outside services](https://docs.superintern.ai/websites/backend.md) you approved for your website, and their keys are added the same way: you enter them on your website's **Settings**, and SuperIntern adds them to the calls. The container's code never holds them.

## For Claude Code and developers

**Add a container only when the owner asks for work the backend can't do, and only once containers are on for the business** (they're a beta, switched on per business). Otherwise SuperIntern refuses a version that asks for one (`container_not_available`).

1. **Ask for one** in `superintern.backend.json`:

   ```json theme={null}
   "container": { "size": "basic" }
   ```

   The sizes are `lite`, `basic`, `standard-1`, `standard-2`, `standard-3` and `standard-4`; `{}` means `basic`. Ask for the smallest size the work needs: it is the smallest the owner may pick, and the owner may pick a bigger one. The container runs, and is charged, at the owner's size. A version asking for a bigger size than that waits for approval again.
2. **Add `container/Dockerfile`** to the repository. The `container/` folder is what the image is built from, and the server in it listens on **port 8080**, plain HTTP.
3. **Call it from a server route** with `fetch("https://container.internal/<path>")`. Only the website's own code reaches it: never visitors, never another website.

What the container's code should expect:

* **One container per website.** It starts on the first call (1 to 3 seconds) and sleeps 5 minutes after the last. Keep nothing in it that must last: use the website's database or the CRM.
* **Internet off.** It can call out only over `https`, to the hosts listed under `services` that the owner approved, with `{{secret:NAME}}` where a key goes in a header. The owner sets the key (website Settings, or `sites secret set NAME`). Plain `http` is refused, anything other than HTTP and HTTPS has no route, and the calls count towards the same limits as the website's own calls to outside services.
* **When it can't answer**, the call gets an error code: 503 `container_paused` at the owner's monthly limit or out of credits, 503 `container_starting` when it hasn't started within 30 seconds, 502 `container_error` when it failed or crashed, and 404 `no_container` when the website has no container it can use (none approved, or containers aren't on for the business). Decide by the code, and have the route tell the visitor something sensible.

From the website's folder, `sites container status` shows its size, whether it is asleep, awake or paused, and its hours and credits this month. The size and the monthly limit change what the owner pays, so only the owner changes them, on the **Container** card on the website's **Settings** in SuperIntern.

The full guide is the "Container" part of section 5 of the site kit's `GUIDE.md`, in every website at `node_modules/@superintern/site-kit/GUIDE.md`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.