- 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.
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.
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.
What it can reach
A container can’t reach the internet on its own. It can call only the outside services 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).
-
Ask for one in
superintern.backend.json:The sizes arelite,basic,standard-1,standard-2,standard-3andstandard-4;{}meansbasic. 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. -
Add
container/Dockerfileto the repository. Thecontainer/folder is what the image is built from, and the server in it listens on port 8080, plain HTTP. -
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.
- 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 underservicesthat the owner approved, with{{secret:NAME}}where a key goes in a header. The owner sets the key (website Settings, orsites secret set NAME). Plainhttpis 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_pausedat the owner’s monthly limit or out of credits, 503container_startingwhen it hasn’t started within 30 seconds, 502container_errorwhen it failed or crashed, and 404no_containerwhen 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.
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.
