Repository navigation
v0.1.0
Added
- A grok browser login is borrowable, refresh token included (ADR 0011).
grok loginstores an OIDC session in~/.grok/auth.json;e2b-box authnow
records it as a pointer and a box receives the file verbatim. Unlike codex's,
grok's refresh token is measured multi-use — re-using an old token after a new
one was issued still answers 200 — so shipping it cannot log the laptop out,
and the box re-mints its own six-hour bearers with no expiry wall. A real
XAI_API_KEYin the environment still outranks the session at discovery, and
prefer = "env"still opts a template out. e2b-box authcloses with a summary table. One row per provider naming
the credential a box will actually get and where it comes from: a signed-in
session, a value hand-set in[templates.<t>.env](yourconfig.tomlis now
read for display — still never written), a key-file pointer, or a variable
forwarded from the shell. A credential the report can see but a box cannot
receive is marked as a warning instead of a tick.e2b-box authfinds the credentials already on your machine. It reads all
seven harnesses behind a shipped template (claude,codex,grok,
opencode,amp,droid,prime), each with a rule written against that
binary's real output, and leaves anything it does not recognise alone rather
than guessing. It asks once for the whole batch, then writesauth.tomlbeside
yourconfig.tomlat mode0600, regenerated whole on every run.--yes
skips the question for a scripted install. With no terminal and no flag it
reports and writes nothing. It never edits yourconfig.toml.auth.tomlstores no credentials. Each discovered credential is a pointer,
naming the variable to set and the file to read, resolved when a box is
created. Nothing goes stale, a key you rotate in the harness is picked up
without re-running discovery, and the file needs no guarding.- Boxes boot with what it found. The config loader reads
auth.tomland a
box gets its template's credential with nothing configured. A recorded variable
name resolves frome2b-box's own environment at create time, and the box
receives the variable it needs, which is not always the one the credential was
found under. Anything you wrote by hand still wins. The order is shipped
defaults, then discovered, then[sandbox.env], then[templates.<name>.env].
An absent or malformedauth.tomlmeans no discovery, not a broken CLI. ampandprimeread the key in their own config file
(~/.local/share/amp/secrets.json,~/.prime/config.json), taking the report
from three harnesses to five. This is the existing rule about a value already
sitting in a plaintext file you own. Both simply lacked a reader. amp names its
key after the server it belongs to, so the reader takes the default server's
entry and refuses when several are present rather than picking one.droidandclaudestay out, and ADR 0010 records why. droid's store is
encrypted. claude's is the macOS Keychain, which this plugin opens on no path.
Claude's route is stillclaude setup-token.- A box can boot into a signed-in session instead of a pasted key.
e2b-box authrecords a Codex subscription login from its ownauth.json, and
the codex row changes from "signed in, but not a key this plugin can use" to
"signed-in session (expires in 8 days)". Per ADR 0010 the single-use refresh
token is never copied, and a visible placeholder goes in its place, so a
borrowed copy cannot revoke the login it came from. Unlike everything else
discovered, a session outranks your own[templates.<name>.env]. Set
prefer = "env"on a template to take that back. Expiry is recorded, and the
report, the picker mark and the fleet warning all render an expired session as
expired. An expired session is never injected, so a box falls back to whatever
credential still works instead of to a sign-in screen. - When a session authenticates a box, the API key it replaces is not sent,
whichever rung supplied it, including your own[templates.<name>.env]. A box
signed in by the session cannot use that key, and an unusable credential in a
box costs exposure for nothing. An expired or opted-out session suppresses
nothing, because that is when the key is the fallback. - The template picker marks what each template has.
key (file)for a
credential stored in a harness's own config,key (env)for one forwarded by
name from your shell. You learn a box will open on a sign-in screen before
spending a minute creating it. It annotates and never filters, so a template
with no credential keeps its place on the menu. It reads the generated file
only and spawns no probe, and a template it found nothing for is drawn with no
mark rather than a misleading one. e2b-fleetwarns before launching a member that will hit a sign-in screen.
One warning for the whole roster, naming each affected member, its template and
the variable to set, followed by a block you can paste into yourconfig.toml.
Then it launches. This is a warning and not a gate, the same way a dirty
worktree is (ADR 0003). A member you configured by hand counts as
authenticated, and a member with nothing to authenticate is left out. Nothing
on that path spawns a harness binary.install.shruns discovery once on a fresh install, so a first box comes up
authenticated without reading the config reference. It shells out to
e2b-box auth --yes, one discovery implementation with a second entry point,
and passes the flag becauseherdr plugin installhas no terminal and a
scripted install must not stall on a question. It prompts for no harness
credential and cannot fail the install. No harness installed, every probe
timing out, or no Node 22 yet each produce a report and a successful install. A
machine that already has anauth.tomlis left alone, and every run says how to
refresh it after installing a new harness.e2b-box authchecks whether a variable recorded by name is visible to a
login shell, and says so when it is not. herdr runs plugin commands as
bash -lc, which reads~/.profileand never a zsh rc, so a key exported only
from~/.zshrcwas found at discovery and absent at box creation. The report
saidkey foundand the box still opened on a sign-in screen. The warning names
the variable, the template and both fixes. It is a real check, not a blanket
caveat, so it stays quiet on machines where the key does survive.- A forwarded name that cannot be resolved at create time is named in the
provisioning log at the moment it goes missing, instead of being dropped
silently. The box is still created, because an unauthenticated box is what was
asked for and is still useful. - Pick a region by name.
[sandbox] region = "us" | "eu"is the only way to
say where a box runs (ADR 0007).usis the default and needs no configuration,
resolving to the SDK's own default,https://api.e2b.app.euresolves to
https://api.e2b-juliett.dev. An unrecognised region errors naming the two,
never a silent fallthrough.uspins no host on purpose, because US also
answers ate2b.dev, an older name for the same environment that thee2bCLI
still defaults to, so naming either would put one tool at odds with its own
default for nothing. - One API key per region.
[secrets] e2b_api_key_usande2b_api_key_eumay
sit beside the singlee2b_api_key, so changing region moves the credential
with it. A key belongs to exactly one region, and the mismatch reports as
Invalid API key … Cannot get the team, which reads like a broken credential
when only the destination is wrong. Only the active region's key is ever read. - A template existence check before the sandbox is created, so a missing
template is reported in about 50ms rather than after a boot has to fail first.
It fails open. Anything short of a definite "no" falls through to the create,
because the check is stricter than creating is and must never cost a box that
would have booted.
Changed
- Boxes pause at the idle timeout by default (
auto_pause = true) instead of
being killed, with a full memory snapshot, so the running agent and everything
in memory are still there whene2b-box openwakes it. Set
auto_pause = falsefor the old kill-at-timeout behaviour. A new
[sandbox] keep_memorykey picks the snapshot kind.keep_memory = false
gives a filesystem-only snapshot that cold-boots on resume, must be paired with
auto_resume = false, and is otherwise rejected with an error naming both keys
before anything reaches the API. The closing messages after you leave a box now
describe what that box will do at its timeout, read from its record. - The plugin owns the terminal, and the in-box tmux is gone (ADR 0008).
Opening a box attaches through the plugin's own PTY client (src/attach.js)
instead ofe2b sandbox connect. Raw mode end to end, so shift, ctrl and
alt+Enter reach the agent byte for byte, and no multiplexer is installed into
or configured in any box. The terminal is stampedHERDR_E2B_TERMINAL=<box key>
and its pid recorded on the box record. The client reports outcomes by exit code
(clean, never attached, box gone, attached then lost), replacing the old
two-second timing heuristic. - Reopening a box puts you back on the screen you left. The client reattaches
to the box's own terminal, verified by its marker and never by a bare pid, then
nudges a repaint with a resize. One resize when the pane's geometry differs from
the terminal's, away and back when it does not. Your agent comes back mid-task
with its frame intact. The scrollback above the frame is not stored anywhere and
does not return, and the client says so once, only when reattaching. A terminal
that died, or whose pid was recycled, yields a fresh one and announces it. The
attach-or-create decision is a pure module (src/attach-plan.js) with offline
tests. - The record tells the truth about a paused box. A box that pauses underneath
an attached session haspausedwritten to its record by the terminal client on
the way out, from onegetInfoat the moment of loss, with no poll and no
reconciler, so the dashboard stops showing a frozen box as ready. The readiness
spinner treatspausedas a settled state, so a box that pauses mid-boot ends
the wait with "resumes it and continues" instead of spinning to the twenty-minute
cap. Listing boxes makes no network call it did not make before. - A configured region outranks an
E2B_DOMAINthat the herdr server inherited
at launch, while still losing to one exported in a command you typed. herdr is
long-lived and freezes its environment, so without this the setting would have
been a no-op in the situation it exists for. - A fleet member is named after its template's last path segment. A member
booted fromondrejs-project/herdr-agentslands on
e2b/<slug>-herdr-agents-<rand4>rather than
e2b/<slug>-ondrejs-project-herdr-agents-<rand4>. Every member of a fleet
shares the project half, so it added length without telling them apart. A roster
holding two templates that would name the same member is refused, naming both. - The
basefallback message names the region as well as the template.
template 'x' not foundis the signature symptom of asking the wrong region,
and reads as a missing template unless it says where it looked. - The README and config example document using your own project's templates:
the full<project>/<template>form, the quoting a/requires in a TOML table
key, that template names are per-region and so not portable between them, and
that the EU listing omits public templates, so absence there is not evidence a
template is missing. - The suggested keybindings are the full set of three,
prefix+shift+e
(open),prefix+shift+f(fleet) andprefix+shift+d(dashboard). The README,
the manifest andinstall.shall say thatprefix+shift+dtakes over herdr's
ownclose_workspace.
Removed
[sandbox] domainis gone. A region is what you choose, and the host it
resolves to is the plugin's business. An olddomainkey is an error naming the
region to replace it with, rather than an ignored line, because silently
dropping it would move an EU user's boxes to US without a word. Box records
still carry a domain, which is internal state pinning a box to where it was
born, andE2B_DOMAINplus the domain inferred frome2b auth loginboth still
work, since neither is part of this plugin's config surface.- The undocumented
[sandbox] tmuxopt-out key, along with the mechanism it
gated.
Fixed
-
A Claude subscription is no longer invisible to discovery.
claudewas
searched for underANTHROPIC_API_KEYand nothing else, so a machine signed in
with Pro, Max or Team — which is most of them — had nothing to find, and the
remedy printed beside that result named the variable aclaude setup-token
token is rejected under. BothANTHROPIC_API_KEYand
CLAUDE_CODE_OAUTH_TOKENare now searched, and whichever one holds a credential
is forwarded to the box under its own name. The advice, the paste block and the
fleet's warning all name the token, because that is what the advice produces. -
A box with no credential in it says so, on the way in.
e2b-box open
printed the sandbox, the preview URL and nothing about the fact that the agent
it just booted had been handed no credential — the first sign was the agent
itself answeringNot logged in, several minutes later, in a sandbox with no
browser to finish a sign-in flow in. The box details now carry the same note the
fleet prints before it launches, naming the variable and the remedy. Silent when
the box has a credential, and never a gate. -
A fleet member's worktree is trusted for mise before a shell opens in it.
mise keys config trust to the absolute path, so every fresh member checkout was
untrusted and every shell in it — the box's own pane first — opened on
mise ERROR … are not trustedfor amise.tomlthe base ref already carried.
The fleet chose that path, so the fleet trusts it. No mise, no config, or a mise
that refuses, and the member still boots. -
A broken plugin config no longer reports itself as a missing API key. The
credential pre-flight ran its resolver with stderr and the exit code both
discarded, so a fatal config error such as a mistyped region degraded into the
generic "No E2B API key" several calls later, sending you to check a credential
that was fine. -
An exported key and a configured region no longer point at different
clusters. The key and the domain were resolved separately, in two places, so
each could be answered by a different source. A key exported for US with
region = "eu"in config sent the US key to the EU cluster, which the API
rejects asInvalid API key … Cannot get the team, a message that blames the
credential when only the pairing is wrong. Nothing warned, because nothing
compared the two. A source naming both halves now settles it: the environment
whenE2B_DOMAINis exported beside the key, the config when a region is named
and the file holds a key. Thee2bCLI login is deliberately not promoted,
since adopting it would swap the account a config key pinned. A split that
survives is now stated out loud, naming each source. -
e2b-fleetno longer blames the task slug for every naming failure. That
was accurate while an unusable slug was the only way to fail, but the naming
helper prints its own reason on stderr directly above, and a second guessed
cause could contradict it. -
ampno longer flickers betweenkey found (file)andprobe did not answer. When its probe exceeds the timeout but its config file plainly holds
a key, the file settles it. A credential that is there does not become uncertain
because a binary was slow.