---
title: "Introducing Pods: keep your agent's code private, right beside a sandbox"
description: "A pod keeps your agent's code private and reaches only the ports you list on one of your sandboxes, at one of two levels of isolation: Machine or Standard."
url: "https://www.promigence.ai/blog/introducing-promigence-pods"
site: "Promigence"
---

# Introducing Pods: keep your agent's code private, right beside a sandbox

_Harshraj Dhanke, 28 November 2026_

## How do I keep my AI agent's code and API keys out of the sandbox it works in?

Pods are here. A pod is a private place for your own code, next to one of your sandboxes. It reaches the sandbox it works with through the ports you list, one way: only your pod opens a connection, and every connection your code makes goes into the pod's record. You choose one of two levels of isolation: Machine, the default, runs your pod in a sandbox of its own, with the internet and your secrets, and Standard runs it inside the sandbox, offline, at no extra cost. Create one from the Pods page in the console, or from the CLI, TypeScript or Python.

## Your agent and its work share one sandbox

An agent that drives a browser or an app usually runs right next to it, in the same sandbox. That is the easy way to start. It also puts your agent's code, your prompts and your API keys on the same computer as everything the agent touches: the pages it opens, the app it tests and any code it runs on someone else's behalf.

Code in a sandbox can read whatever else is in it. If your product runs work for customers, the app under test, a script the agent starts, or a command a hostile page talks the agent into running can all read the harness you built and the keys it uses.

Pods move your side of the work out of that sandbox and leave everything else where it was.

## What a pod is

A pod is the private side of your agent. It starts from a snapshot of your own code and works with one of your running sandboxes, at the level of isolation your workload needs.

![A Machine pod in one picture. On the left, your pod holds your agent's code, its prompts and your secrets. The sandbox on the right holds the browser, the pages it opens and code you did not write. Arrows go one way, from your pod into the ports you list.](https://www.promigence.ai/blog/introducing-promigence-pods/pod-at-a-glance.svg)

The two are joined by one kind of path: the ports you list on the sandbox. Your code reaches each of them, and nothing in the sandbox can open a connection to your pod. Inside your pod, every listed port answers on localhost at the same number, so a tool like Playwright connects to the browser the way it always has, as long as the program behind each port listens on all addresses (0.0.0.0), not only on 127.0.0.1.

Each release of your code becomes a snapshot of its own, so you always know which version ran. A sandbox has one pod at a time.

## Two levels of isolation

The same code runs at either level, and reaches the sandbox's ports the same way. The difference is what your pod is, and what else it can reach.

Machine is the default in the CLI and the API. Your pod runs in a sandbox of its own, with machine-level isolation from the sandbox it works with. It is online, with its own internet rules: the whole internet, none of it, or only the services you name. It takes your secrets, has its own size, billed per second like any sandbox, and its own spend cap, and it works with any running sandbox you started yourself in the same project.

Standard runs your pod inside the sandbox it works with, in that sandbox's own environment, kept apart from the sandbox's code. It is offline: it reaches the ports you list on its sandbox, and nothing else, so it takes no secrets. It uses its sandbox's size and spend cap, so there is nothing extra to pay. A snapshot made for Standard pods is what its sandbox starts from: build it with `--pods standard` and a `--user` that is not root, and that sandbox runs without root, as that user.

![Side by side: a Machine pod is a sandbox of its own that reaches the ports you list and the internet you allow; a Standard pod runs inside the sandbox, kept apart from its code, and reaches only the ports you list.](https://www.promigence.ai/blog/introducing-promigence-pods/pod-levels.svg)

### Choosing a level

| If your pod needs | Use |
|---|---|
| The internet, such as your model provider or your own services | Machine |
| Secrets, given to the pod only | Machine |
| A size or a spend cap of its own | Machine |
| To work with any sandbox you started yourself | Machine |
| Only the ports you list on its sandbox, and nothing else | Standard |
| To cost nothing beyond its sandbox | Standard |

Most agents call a model, so most pods are Machine pods. Code that only talks to its sandbox, like a scripted test that drives the browser or a checker that reads the app's answers, fits Standard, as long as that sandbox comes from a snapshot made for Standard pods.

## What you can do with a pod

Take an AI QA product. Each test session gets a sandbox with a fresh browser, and that browser opens the customer's app. The agent that runs the test works from a Machine pod, with the model key and the test plan, and drives the browser through its DevTools port. The customer's pages and your harness no longer share a sandbox.

The same shape fits any agent that does its work through a port: a web app it tests, a database it queries, an API it calls. At either level, a pod takes a start command that runs once the ports are reachable, plus an idle timeout and a lifetime, so a pod nobody uses ends on its own. A Machine pod also gives you:

- secrets for the pod only, picked from the ones you stored, which stay out of the sandbox
- its own internet rules: the whole internet, none of it, or only the services you name, such as your model provider
- its own size, billed per second like any sandbox, and a spend cap that ends it at the amount you set
- a way to look inside while it runs: run a command, read a file or open a terminal in it

Then there is the record. It lists which version of your code ran and when, every connection your code opened to the sandbox with what went each way and for how long, every refused connection, and how the pod ended. It is written for auditors as much as for you.

## A pod belongs to you

A pod is yours however you made it. Signed in to the console or the CLI, you can open any pod you created, from either one. The key that created a pod can open it too, which is how an agent you run looks after the pods it makes. Any other key reaches only the pods it created, and a read-only key never gets in.

![The person who made a pod opens it from the console or the CLI, and so does the key that created it. One project holds two sandboxes that each have a pod and one sandbox with none. Other keys stop at the pods they did not create.](https://www.promigence.ai/blog/introducing-promigence-pods/pods-and-sandboxes.svg)

## How a pod keeps your side private

What stays in your pod: your agent's code, its prompts and, in a Machine pod, the secrets you gave it. The sandbox answers only the connections your code opens. A pod is never saved, paused or published, and ending it leaves its sandbox running.

What you control: which ports your code reaches and how long the pod lives, and for a Machine pod, what it may reach on the internet, which secrets it gets, its size and its spend cap. End it whenever you like, from the console or the CLI.

![Two panels: what stays in your pod, and what lives in the sandbox. Between them, connections go one way, from your pod to the ports you list. Below, what you control and what you see.](https://www.promigence.ai/blog/introducing-promigence-pods/pod-safety.svg)

Four habits keep that line where you drew it:

1. Keep your own keys out of the sandbox. Never sign in to anything of yours there, and give the secret to the pod instead; with no key of yours in it, the sandbox has no way into your pod.
2. Give each pod only the secrets and the internet its job needs.
3. Treat what comes back from the sandbox, a page's text or a browser's replies, as untrusted input to your agent.
4. Remember that what your code sends into the sandbox, like text it types into a form, becomes part of that sandbox.

## How to start

The console walks you through it.

1. Save your agent's code as a snapshot of its own. Every release of your code becomes a new snapshot.
2. Start the sandbox it works with: a browser, an app, anything your agent drives. For a Standard pod, start it from a snapshot made for Standard pods.
3. Open Pods in the console, under Run, and choose New pod.
4. Pick that sandbox, choose Machine or Standard, name your snapshot, then add a start command and, for a Machine pod, the secrets your code needs.
5. List the ports of the sandbox your code reaches, read the review, and press Create pod.

![The console's New pod steps in order: sandbox, isolation, your code, the ports, the review, then Create pod. Before them, a snapshot of your agent and a running sandbox. After them, a live pod you can follow and end.](https://www.promigence.ai/blog/introducing-promigence-pods/start-a-pod.svg)

Nothing starts until that last button. From there the pod's page follows it from Starting to Live. It draws your pod and its sandbox with the listed ports between them, lights a port while a connection is open on it, and adds every connection to the record as it happens. When you are done, end the pod from the same page, and its sandbox runs on.

Prefer a terminal or code? The same pod comes from the CLI, TypeScript or Python, and the Pods tab under Docs in the console has a quick start for each. New to Promigence? [Request access](https://www.promigence.ai/?ref=blog#request-access) and we will email you an invite.

## FAQ

### Which level is right for my pod?

Machine, when your pod needs the internet, secrets or a size of its own, or works with a sandbox that was not made for Standard pods. Standard, when it only needs the ports of its sandbox and should cost nothing extra.

### What does a pod cost?

A Machine pod is billed like a sandbox of its size, per second, and a Standard pod uses its sandbox's size, with nothing extra to pay. By default a Machine pod's size is the one its snapshot was built for, and you can pick another when you create it. A spend cap ends a Machine pod when it reaches the amount you set. While a pod works with a sandbox, that sandbox waits for the pod to end before it pauses on its own.

### When does a pod end?

When you end it, after it sits idle for its idle timeout, at the end of its lifetime, at its spend cap, or when its sandbox ends or pauses. Unless you give it a lifetime of its own, it lives as long as its sandbox, and extending the sandbox extends the pod. A pod is never saved, so you create a new one when you need it again.

### Can a pod reach the internet?

A Machine pod can, with its own internet rules: the whole internet, none of it, or only the services you name, such as your model provider and your own APIs. A Standard pod is offline: it reaches only the ports you list on its sandbox.

### Who can get into my pod?

You, signed in to the console or the CLI, and the key that created it. Other keys reach only the pods they created, and a read-only key never gets in.

### Which sandboxes can have a pod?

A Machine pod works with any running sandbox you started yourself, in the same project, and a Standard pod with one started from a snapshot made for Standard pods. Either way, a sandbox has one pod at a time.

