Concepts
Covers: what instances, suspend, fork, the closed network, models, organizations and plans are.
For: anyone new to poema cloud, before or after the Quickstart.
Everything you run on poema cloud is an instance, inside an organization. This page explains the few ideas the other pages build on, each in a short section.
At a glance
- Instance: an isolated environment that runs your agent, from an image and a command.
- Suspend and resume: stop an instance with its memory and files kept, and carry on later.
- Fork: make new instances from a copy of a suspended one.
- Gateway: the list of hosts an instance may reach. Without one it has no network.
- Model: a provider and model your agent calls through poema's broker, with a key it never sees.
- Organization: who owns all of the above, its members, its keys and its plan.
Instances
An instance runs your agents: its command and whatever you start in it, with the Workspaces, Gateway and Model it
uses, on poema's base image (Ubuntu 24.04 with git, curl, jq, python3 and Claude Code) or the Python and Node runtimes
(Deploy from git). Each instance is isolated: its own environment, its own network
rules, nothing shared with other instances. Its phase is Pending until it runs, then Running, Suspended, or
Failed when it could not start. Its command exiting does not end it: the instance stays up for its files and commands
until it is suspended or deleted, or its session ends.
An instance that asks for no size gets 1 vCPU and 256 MiB of memory. p.sandbox() and New instance's shape S give it
1 GiB. It asks for more in its spec, with
resources: {requests: {cpu: "2", memory: 2Gi}}, or resources={"requests": {"cpu": "2", "memory": "2Gi"}} in the SDK,
and what it asks counts toward the free tier's vCPUs and memory below.
Its files are in /workspace, which is kept when the instance is suspended and copied when it is forked: keep your work
there. A Workspace resource declares git repositories to clone into it before the command starts.
The phases of an instance: it starts Pending, runs, is suspended and resumed, and is deleted when you delete it or, suspended, after 14 days. A fork leaves its source suspended and makes new instances, each starting Pending.
Suspend and resume
A suspended instance stops: it uses no compute and does not count as running. Its memory is kept with its files, and a resume restores both in milliseconds, so its processes carry on where they stopped. Its session's clock starts again at every resume.
Fork
A suspended instance forks into new ones, up to 100 in one call, each on a copy of its /workspace: to try several
approaches from one point. A fork's processes are new, its command starting again on the copied files, and its label
poema.dev/forked-from names its source. With memory=True in the SDK each fork gets a copy of its memory too, and its
processes go on where they were, as after a resume: what they drew at random, requests in flight and timers are then
the same in every fork. The source stays suspended until it is resumed.
Egress and Gateways
An instance's network is closed: it reaches only the hosts its Gateway allows, and everything else is refused. The
hosts it is refused go in its activity (poema describe task NAME) and under Blocked requests on Network. Your organization has a Gateway
default, which allows the free tier's hosts below; an instance without a gateway has no network at all. A Gateway of
your own lists exact DNS names on port 443, within your organization's allowed hosts. Wildcard subdomains, IP addresses
and other ports are refused (Network rules):
kind: Gateway
metadata: {name: pypi-only}
spec:
egress:
allowlist:
hosts:
- {host: pypi.org, port: 443}
- {host: files.pythonhosted.org, port: 443}
Models through the broker
A Model names a provider (anthropic, openai or google: only the providers' own APIs are supported, and a Model that
points at another base URL is refused), a model, and the secret that holds your key for it. An
instance bound to a Model calls the provider through poema's broker, which adds the key on the way out, so the key
never enters the instance: there ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY, or OpenAI's or Gemini's, point the stock
SDKs at the broker with the instance's own token. Each call's model and token counts go in the instance's activity.
Model calls need no Gateway. Secrets are write-only: nothing reads a value back.
poema secret set anthropic api-key=@anthropic-key.txt
poema apply -f - <<'EOF'
kind: Model
metadata: {name: anthropic-claude-sonnet-5-5}
spec:
provider: anthropic
model: claude-sonnet-5-5
secretKey: {name: anthropic, key: api-key}
EOF
An instance names it with model: {name: anthropic-claude-sonnet-5-5}, or model="anthropic-claude-sonnet-5-5" in the SDK.
The agent is told the Model's name as its model, so name it after one: Claude Code knows no model claude.
Organizations and plans
Everything is your organization's: its instances, its keys, its network rules and its members. It has one namespace, the word inside your API keys, and one plan, Free or Pro. An Admin changes the organization's settings, keys and members and a User works with its instances (Team and access). Keys for the services and models your agents call are saved once on the Keys page and added by poema's gateway on the way out (Secrets and keys). Pro allows 30 instances at once and 40 vCPUs, for $150 a month for one user (Plans, limits and billing has the rest).
The free tier
- 3 instances running at once, with 4 vCPUs and 8 GiB of memory
between them. An instance that would go past these waits,
Pendingwith the reasonQuotaExceeded, until another stops. - Sessions of up to 60 minutes. At its end an instance is suspended, not deleted: resume it for another. One left suspended for 14 days is deleted.
- 100 vCPU-hours of compute a month, renewed on the first (UTC). Past them, instances wait for the next month, and running ones are suspended.
- 12 objects kept: instances, suspended ones too, and Workspaces. Gateways, Models and secrets are not counted.
- poema's images (the base image, Debian 13 slim and the agents' images) and the Python 3.12 and Node 22 runtimes (Deploy from git): an instance that names any other image is refused.
- Egress on port 443 to package registries and git hosts: github.com, codeload.github.com, objects.githubusercontent.com, raw.githubusercontent.com, gitlab.com, registry.npmjs.org, pypi.org, files.pythonhosted.org, proxy.golang.org, sum.golang.org, index.crates.io, static.crates.io, deb.debian.org.
apt-getworks on the Debian-based runtimes, not on the Ubuntu base image. And up to 3 hosts of your own, which you allow on Network. - Models on your own provider key, through the broker. There is no model credit.
The dashboard's Settings, on its Plan tab, shows how much of each you have used.
Last checked: unreleased checkout.