Network rules

An instance's network is closed (Concepts): it reaches the hosts your plan allows, on port 443, and nothing reaches it from the internet. Its network card's All public hosts, read only, off at first, lets it send GET and HEAD to any public host over HTTPS, with no key, and gives it a network of its own: any other request still goes only to the hosts it lists, each as its rule allows. The Network page has two tabs. Approvals lists the requests poema refused your instances, for their host or for a method its rule does not allow, and opens first while one waits. Allow lets one through for an instance it refused, whose network is then its own, or for every instance on your organization's network: the least that would have let it through (GET and HEAD for a read, else its method, beside what the host has), or Full. Rules shows each host your instances reach in one table, with what instances may send it, who set that and which instances and MCP servers reach it, and adds your own where your plan takes them. Add host access, Edit and Limit open one sheet, which says what saving does before you save. Type a host or a URL in its search: when no row matches, Check answers whether your instances may reach it and why; given a URL, it checks the host alone, as rules are per host. Export YAML downloads your organization's network as poema holds it: its Gateway, and those of its instances with a network of their own, one YAML document each. An instance's Network tab shows what it can reach now, host by host, with where each host's access is set and the way there.

Call rules

A rule is for one host of your plan or your own hosts: an exact DNS name of two labels or more, on port 443. poema's hosts refuse a wildcard such as *.example.com, an IP address, a single label such as localhost and any other port, and the sheet says so under the host as you type it. A rule holds the HTTP methods the instance may send that host, among GET, HEAD, POST, PUT, PATCH and DELETE, on any path: poema checks each request on its way out. An instance with a network of its own takes the same rule, from the same editor, for a host it adds on its network card.

Not on poema's hosts yet: allow lines by path (METHODS PATH, such as GET,HEAD /repos/acme/**) and an MCP server's tools. A rule that holds one stops the instances it applies to from starting.

A host with a rule is reached through poema's call route alone: an instance calls $POEMA_HOSTS_URL/HOST/PATH instead of the host. A client that calls a fixed host itself, such as gh or most SDKs, cannot use it; an MCP server can. For that reason the hosts that git and the package managers install from (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) take no rule, and neither does a host poema's gateways keep for themselves, such as a model provider's API. An MCP server you add to the library gets a rule that only routes its calls, so that how it is addressed never changes; you can add limits to it later. A rule is your organization's, for every instance, and it holds 20 rules.

A change applies at once, to running instances too: poema binds the organization's network again to the instances running on it. An instance with a network of its own keeps the organization's rules as they were when its network was saved, until it is saved again: a rule changed on Network reaches it when you next save its network card. The MCP servers of instances made before a rule keep the address they had: clearing a rule that routes one breaks those until the instances are updated (The library). Clear asks first for that reason. A rule whose host is no longer on your list is marked inactive and ignored.

Keys for a host

A key of your organization's for an API, saved under Custom keys on Keys with its host, is added by poema's gateway to each request your instances send that host: as Authorization: Bearer, as the password of Authorization: Basic with a username you give, or in a header you name. The instance never holds it, and whatever it sends in that header is replaced. A key goes to every instance, whatever methods a rule there allows, and Network shows it on the host's row. The host must be one your instances may reach: saving adds it as one of your own where your plan takes them. A key is 1 to 4096 characters of printable ASCII on one line, a header is not Host, Content-Length or one of the connection's own (Connection, Keep-Alive, Transfer-Encoding, TE, Trailer, Upgrade, Proxy-Authorization, Proxy-Connection), and a username has no colon: Save refuses any other and says why, before anything is kept. Keys are write-only: Replace or Remove one there. Setting Any request for its host on Network keeps it.

Listeners

A listener opens a port of your organization's instances, by name, port and protocol (http, grpc or tcp), to the instances of your namespace that link to it. poema's hosts link no instance to another yet, so Network shows listeners only where you have some. A listener opens nothing to the internet either: to reach an instance yourself, use poema forward NAME 3000 with an API key, which reaches any port of an instance made with Access from your machine. A scope holds 8 listeners.