Network Egress

Which hosts an agent's own HTTP requests may reach. Set per agent, enforced in the agent's process at two layers, and reported by mur agent perm.

mur agent perm show coach network              # the whole outbound block
mur agent perm list-hosts coach                # allow list + what else is reachable
mur agent perm set-mode coach network.outbound restricted
mur agent perm allow-host coach api.example.com
mur agent perm allow-host coach '*.api.example.com'
mur agent perm deny-host coach api.example.com # removes that glob from the allow list

Changes made with mur agent perm land on the agent's next start, and it warns when the agent is running. A host granted from the chat (below) applies immediately.

See the whole picture

The agent's own rule is only half of it. mur agent network prints one table with the agent's outbound rule and every MCP server's, because the agent's allow_hosts does not govern its MCP servers:

mur agent network coach        # agent + every MCP server, one table

In mur agent cli, /browser status prints the same table.

A server with no network policy of its own shows as any host (port-limited only) and is flagged: the OS sandbox filters by port, not host, so nothing narrows it to a host list.

mur doctor checks every agent's stored host entries and reports the ones that are not hostnames — a sentence pasted where a host belonged, say. mur doctor --fix previews the removals, then makes them. If that leaves an allow-list-only server with no hosts at all, it says so rather than quietly changing the server's mode. An agent that starts with an invalid entry logs a warning and keeps running.

Granting a host when it is blocked

When the browser is refused a host during a chat, mur agent cli asks after the turn:

ChoiceWhat it does
This time/browser allow --session <host> — lets it through on the running agent; nothing is written, gone on restart
Always/browser allow <host> — shows the change, saves it to the profile, and applies it to the running agent with no restart
Nostops asking about that host for the rest of the session

If two or more hosts under one domain were blocked, it offers *.<domain> instead of each host.

Outside the interactive chat, the same notice is printed as text with a line you can paste:

/browser allow img.shop.example.com             # always (previewed, then saved)
/browser allow --session img.shop.example.com   # this run only

A few things to know:

  • The blocked request is not replayed. It fails right away; after granting, reload the page or retry the step.
  • A deny-listed host is never offered. Hosts on a research-mode deny list stay blocked, and the notice says so.
  • The agent cannot grant itself a host. A live grant needs the same approval token as a tool approval, which only you hold.

Allowed is not logged in

A host on the allow list is reachable; it is not signed in. The browser carries cookies only when its entry was set up with a profile — the one mur browser auth saved for that site:

/browser live chat.example.com --profile example   # previews the change; confirm to save

Rerunning /browser live adds the hosts you name and keeps the ones already allowed — including hosts granted with /browser allow — so attaching a profile never drops a grant. The result lists what was kept. To scope the browser to exactly the hosts you name, add --replace:

/browser live --replace chat.example.com           # allow list becomes exactly this host

Naming only hosts that are already allowed changes nothing. --replace cannot be combined with --research.

/browser allow opens the network and nothing else. When the browser's entry has no profile but mur browser auth saved one covering the host you just allowed, /browser allow adds a note naming that profile and the exact /browser live … --profile <site> command — with a one-click chip when exactly one profile fits. The note also appears when the host was already allowed, or allowed for this session only.

  • The suggested command lists every host already allowed. Following it keeps every grant even if you add --replace.
  • It previews first. The chip runs /browser live without --yes: you see the change before it is saved.
  • A profile matches its own domain and subdomains only. A profile for example.com covers chat.example.com, not badexample.com. Its domains come from the allow_domains saved with it, or from the host of its login URL.

/browser status prints browser profile: <site> under the network table — or none (launches with no cookies), followed by the same note when a saved profile would fit.

Binding right after you sign in

mur browser auth asks where the new profile should go as soon as it is saved. It lists every agent with a live browser entry and what each one launches with now:

current bindings:
  [1] coach     → none
  [2] reviewer  → shop  ⚠ allow_hosts lacks chat.example.com
bind "example" to which agent? [1-2, Enter = skip]

Enter skips, and nothing is ever picked for you. For scripts, name the agent up front; the flag is the consent, so nothing is asked:

mur browser auth example --url https://chat.example.com --bind coach
  • Binding never widens egress. It only changes which profile the entry launches with. When the entry's allow_hosts lack the profile's host, nothing is written and the exact /browser live … --profile <site> command is printed instead. Entries that deny the host, or are not host-scoped, are refused the same way. With --bind any refusal exits non-zero; the profile itself is still saved.
  • A mistyped agent fails before the login. --bind resolves the name first, case-insensitively, so a typo never costs you a sign-in.
  • No terminal, no question. Without a TTY, mur browser auth prints the bindings and the hint, and writes nothing unless --bind was given.
  • Each bind prints its undo. Every write is traced and followed by the /browser live command that puts the previous binding back.
  • One agent, several profiles. A profile for other hosts is added alongside the ones already bound, and their sessions are merged when the browser launches, so one live browser is signed in to every site at once. Two profiles that share a host are refused, because the merge would silently pick one login. --bind <agent> --replace drops only the bound profiles that share a host with the new one, plus any whose saved login cannot be read, and keeps the rest.

mur browser status lists the same bindings: table for every agent with a live browser entry, with the same warnings:

bindings:
  coach     → none
  reviewer  → shop  ⚠ allow_hosts lacks chat.example.com
  • none — the entry launches with no cookies. ? — the agent's profile.yaml could not be read; the warning says why, and the other rows still print.
  • A âš  on a bound profile means it would not work as configured: the profile is missing, incomplete, or names no host; allow_hosts lacks its host; deny_hosts blocks it; or the network mode is not host-scoped.
  • It shows the saved configuration, not the running browser. A row does not prove an already-running browser has reloaded it — the /browser live reply says when a change needs an agent restart.

To unbind everything, rerun /browser live with --no-profile; to keep some, name only those (--profile a --profile b). The hosts are handled like any rerun, and the saved profile stays on disk, so --profile <site> binds it again later. Leaving both flags off keeps the current binding as it is; passing both is refused.

/browser live chat.example.com --no-profile

When the agent asks for a site

An agent that hits a login wall, or a host it cannot reach, can ask with the browser_request tool instead of guessing. The request waits for you, and mur browser requests shows it as a card:

mur browser requests                 # every open request
mur browser requests --agent coach   # one agent's

The card lists every saved login that covers the site (the host, or a subdomain of one of its domains). Each row says what picking it would do to the agent's live browser entry: bind it alongside the current profiles, also allow the hosts that are missing, bind it only as a replacement (naming every profile it would drop), or not available, and why. A "log in again" line follows the rows, and each choice comes with the exact command to answer it:

mur browser answer coach chat.example.com --profile example   # bind a row from the card
mur browser answer coach chat.example.com --login             # log in fresh, save, bind
mur browser answer coach chat.example.com --allow             # no login needed: just reach the host
mur browser answer coach chat.example.com --dismiss           # clear it, grant nothing
  • One choice per answer. Pass exactly one of --profile, --login, --allow or --dismiss; a bare answer is refused. --profile must name a row on the card, and --replace is accepted only for a row the card marks "only as a replacement".
  • --login needs a terminal. It opens a headed browser and saves the login when you press Enter, then binds it. The profile is named after the host, plus the port when that is not the default, or --name <profile>. It never replaces a saved login of that name unless you pass --reauth, and --reauth keeps the old login's hosts. The binding is checked before the browser opens.
  • The card bounds every write. If the agent's browser entry changed since the card was read, nothing is written and the request stays open.
  • A non-default port is a separate, explicit step. --open-port also opens the site's port, using the same writer as mur agent perm allow-port. It opens that port to any host (the OS sandbox filters by port, not host), and the agent needs a restart. While the card's port is closed, the only answers are one that carries --open-port, or --dismiss; anything else is refused and nothing is written.
  • The agent's first visit is the test. A successful answer clears the request and prints the text to send the agent. What the agent then reports is its own report, not a check by MUR.

The same card opens by itself in murmur when the agent files the request, and in MUR Hub as a "needs you" item. Each row has one button. While a login browser is open, the card offers "logged in" to finish the login. Afterwards it reads "saved, not yet tried" until the agent reports back. Neither UI opens a non-default port: while it is closed they offer only dismiss, and the card prints the --open-port command for you to run.

Before the run starts

/browser testing and /browser automation check the request before the turn begins:

  • A URL whose host is not allowed gets the same this time / always / no choices, asked up front instead of after the first page load fails. Pick one, then send the command again (↑). After no, or a this time grant, the same host is not asked about again this session. The check only runs while the browser's entry is restricted to an allow list.
  • A saved login — --profile <site> uses a profile saved with mur browser auth; an unknown name is refused and the saved ones are listed. Leave it off and, if exactly one saved profile covers the URL's host, that one is used and the chat says so. If several cover it, none is picked and the chat lists them.
/browser automation --profile shop export last month's orders from https://shop.example.com

The four modes

ModeExternal hostsNotes
unrestrictedallthe default; the metadata screen below still applies
restrictedonly allow_hostsplus the agent's own model host and loopback
proxy_onlyonly allow_hostssame host rules, and the OS sandbox also denies general outbound TCP — egress goes through loopback proxies
offnonenothing at all, loopback included; remote MCP servers are refused at connect

What the allow list matches

PatternMatches
api.example.comthat host exactly
*.api.example.comapi.example.com and any subdomain of it
.api.example.comthe same — a legacy spelling, still accepted

Matching is case-insensitive. An IP literal is matched as a host string, so allow_hosts: ["203.0.113.5"] permits http://203.0.113.5/ and nothing else on that subnet.

What is reachable without being listed

The agent's own model host. Choosing a provider is permission to reach it, so you never have to allow-list your own model endpoint. mur agent perm list-hosts says so explicitly in restricted and proxy_only.

Loopback — 127.0.0.1, localhost, ::1. A local model, and MUR's own loopback model gateway, live here. Loopback is deliberately not an entry on the allow list: the sandbox grants the agent's local LLM port instead, so the decision about what on this machine an agent may reach is made at the OS layer, where it can be enforced. proxy_only depends on this — its whole definition is egress through loopback proxies.

off is the exception: it means no network, and that includes loopback.

What is never reachable, in any mode

Link-local and unspecified addresses — 169.254.169.254 and friends, the cloud metadata endpoints, including their IPv6-mapped spellings. This screen runs before the allow list and applies even under unrestricted, because an agent with no host policy still must not be steered at instance credentials. A hostname that resolves to one of those addresses is dropped too, which is what stops DNS rebinding.

Remote MCP servers keep their credential

A remote (HTTP) MCP server's client may reach only two hosts: the host in its url and its OAuth token endpoint. The set is fixed when the server connects, and its bearer token is never sent anywhere else:

  • Redirects — a redirect to any other host fails the connection. This holds even under unrestricted.
  • Session close — the DELETE that ends a session goes through the same check.
  • Token refresh — a refresh can only reach the server's own token endpoint, never another server's.
  • Loopback is admitted only when the server's own url is on loopback.

Under off, an agent refuses to connect its remote MCP servers and says why. mur agent doctor lists every enabled remote server on an off agent with the fix: set the mode to restricted (each server's own host is still admitted for its client), or disable the server.

Where the check happens

Two layers, because neither alone sees everything:

  • DNS resolution screens hostnames as they are resolved.
  • The request URL is checked before the request goes out, which is the only place the real destination is visible. reqwest never consults a custom resolver for an IP-literal URL, so without this layer allow_hosts simply did not apply to http://203.0.113.5/.

Both consult one rule, so a host cannot be permitted by one and refused by the other. On top of that:

  • Every redirect hop is re-checked. An allowed host answering 302 Location: http://elsewhere/ does not get to move the request somewhere the list forbids. A redirect the list does permit is still followed.
  • HTTP_PROXY in the agent's environment is ignored for these requests. A proxied request would have its proxy's hostname resolved rather than its target's, which would leave the allow list unapplied — and it would let a debug proxy capture model traffic.

What this does and does not cover

It covers the agent process's own HTTP: model calls and anything else the runtime issues itself.

It is not the boundary for stdio MCP servers (remote ones are covered above). Those are child processes with their own per-server policy, routed through a loopback egress proxy, and that layer is advisory — a child that ignores HTTP_PROXY can still reach the network. See MCP Pinning for what is and is not enforced there.

And it is an in-process defence, not a kernel one. The OS sandbox can restrict ports, not hostnames, so host policy has to live in the process that makes the request. proxy_only is the mode that narrows this: with general outbound TCP denied at the OS layer, egress has to go through a proxy that can see the destination.