/agentbox:abx-sandbox-secretsfrom agentbox
Injects credentials into sandboxed code via a vault and egress sidecar, so the sandbox can use a secret without ever reading it. Use when sandbox code must call a third-party API with a token or when an injected credential is not arriving.
Ships in agentbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The mechanism, and the reason it is shaped this way:
vault (write-only) → operator memory → sidecar tmpfs → outbound header
The value never enters the sandbox. The sandbox holds a decoy — a placeholder that looks like a token — and the egress sidecar substitutes the real one as the request leaves, for the hosts and headers the rule names.
So an agent that can run arbitrary shell in there still cannot print the credential, because it is not in there. That is the property worth protecting, and it is why "just put it in envVars" is the wrong answer even when it works.
The vault is the E2B /secrets surface, so the SDK you already have speaks it.
Values are write-only: you can list names and overwrite, never read back.
Both surfaces are reached through the same E2B API, whose address and data-plane
domain are the env's: abx envs <env> docs prints them for the cluster the env
lives on. Use the public entry it gives unless the caller is inside the cluster.
sbx_secrets.set("OPENAI_KEY", "sk-…") # stored; not readable afterwards
In the console it is the Vault page.
Reference it by name on the create call. A plaintext value in network.rules
is refused with 400 — deliberately, because accepting it would put the
credential in the request body, the access log, and the caller's source, which
is the exposure the whole feature exists to remove.
The create call carries the sandbox's environment and the injection rules.
Look its shape up rather than recalling it: it belongs to the E2B surface,
so it is in /opt/agentbox/source/pkg/openapi/e2b/openapi.yaml, and the
installed SDK will print its own signature. abx-common has the general recipe
for finding any shape this way.
Two things about it are not about the field names, and are the part to get right: the value the sandbox's code reads is a decoy, and the real one is referenced by name — the sidecar substitutes it on the way out. A literal credential in the request is a 400, because it would put the secret in the request body, the access log and the caller's source.
The code inside runs unmodified: it reads OPENAI_API_KEY, sends it, and the
sidecar replaces it. Library code that has never heard of AgentBox works.
The sandbox runs, the request goes out, and the credential is simply not substituted. Check in this order:
overrides.gateway.enabled). Without it, a
create carrying rules is refused — so if you have a running sandbox, this
one is satisfied.abx whoami tells you which identity the vault is being read as; a secret
stored by one user is not visible to another.
Writing vault secrets is allowed for an agent credential, under the normal
approval gate. This is deliberate and worth knowing: the credential lands in
the acting person's own vault and widens nobody's authority, and finishing an
integration end to end is exactly what people want an agent for. Minting an
AgentBox API key is the thing that is refused outright — different act,
different answer. See abx-common.
abx-sandbox-network — deny everything, then allow the one host this rule
targetsabx-managed-agent — the same mechanism is how the platform's own assistant
holds no real credentialabx-common — endpoint, key, cluster, approvalWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/abx-commonHow to reach an AgentBox platform with `abx` — endpoint and key, choosing a cluster, machine-readable output, and what happens to a write that needs someone's approval. Use when any abx command fails on authentication, addresses the wrong cluster, or comes back asking for approval. Every other abx skill defers here for those four things./abx-harbor-frameworkRun Harbor benchmarks (Terminal-Bench, SWE-bench, custom datasets) on AgentBox pre-warmed pools via the agent-sandbox-harbor environment plugin. Use when asked to evaluate an agent, run a benchmark suite, reproduce a leaderboard number, or work out why benchmark tasks are being rejected or timing out. Pool sizing lives in abx-resource-capacity; endpoint and key in abx-common./abx-managed-agentGive your own agent a sandbox for its file and shell tools — the AgentBox hands bindings for Claude Agent SDK, OpenCode and generic MCP, plus the platform side that has to exist first. Use when asked to connect sandboxes to an existing agent or harness, to make an agent's work durable across restarts, or to integrate AgentBox into a product. Pool sizing lives in abx-resource-capacity./abx-observeWork out why an AgentBox sandbox, pool or environment is failing or slow — events, pool status, sandbox logs, and the E2B-native metrics endpoints. Use when a sandbox will not start, a pool sits below target, commands inside a sandbox fail, or someone asks how much CPU and memory sandboxes are using. Authentication and cluster selection live in abx-common./abx-reinforcement-learningSet up and run RL rollouts on AgentBox — choosing a template, sizing a warm pool for the concurrency a trainer needs, and driving the sandboxes with the E2B SDK. Use when asked to run rollouts, collect trajectories, scale an environment for RL training, or work out why a rollout loop is stalling on sandbox creation. Pool mechanics live in abx-resource-capacity; benchmarks in abx-harbor-framework./abx-resource-capacitySize AgentBox warm pools, configure autoscaling groups, read quota, and recover when a pool will not grow. Use when sandboxes queue or fail to start, when a pool sits below its target, when scaling is too slow or runs away, or when you need N concurrent sandboxes and must work out whether the capacity exists. Authentication and cluster selection live in abx-common.npx claudepluginhub scitix/agent-sandbox --plugin agentboxOther plugins' skills for the same job