Local Environments — What You Are Agreeing To

A local environment lets a PageSpace agent read and write files and run commands on your own computer, under your own user account. This page says what that guarantees and exactly where the guarantees stop. It is written for the person deciding whether to enrol a machine, and it does not soften anything: a command that runs on your computer runs as you.

Local environments are off unless the deployment has enabled them, and enabling them is a deliberate operator choice.

The right way to think about it

Enrolling a computer is like installing an SSH key on it. The questions that matter are the ones you would ask about a key: who can connect with it, what it may do, how quickly you can revoke it, and what the log shows. A prompt before each command is helpful. It is not a security boundary, and this page does not treat it as one.

What PageSpace guarantees

Each guarantee is followed by its exact limit.

  • Your computer connects out; nothing connects in. The bridge daemon on your machine dials PageSpace and never listens on a port. Limit: the daemon is a long-running process; if it is running, it is reachable through that outbound connection for as long as it stays connected.

  • Your machine holds its own identity. At enrolment the daemon generates a key on your computer, stores the private half in your operating system's credential store (or a file only your account can read), and sends PageSpace only the public half. The private key is never printed and never leaves the machine. Limit: anyone with your user account on that computer can use that key, because it is that account's credential.

  • Every request is signed, single-use, and bound to exactly what it asks for. PageSpace signs each request for one operation and one set of arguments; it expires within a minute, cannot be replayed, and cannot be edited in flight. Your machine checks the signature before it does anything. Limit: "bound to what it asks for" means the command line as sent. It does not describe what that program then does.

  • PageSpace can only ask what you enabled. When you create the environment you choose whether PageSpace may read files, write files, and run commands. PageSpace refuses to sign a request for anything you did not enable, so your machine never sees it. Only you, the person who enrolled the machine, can change that choice. Limit: this is a list of operation kinds, not of programs. "Run commands" means any command.

  • Your policy file has the final say. The daemon reads a policy file that only you own and PageSpace never sees. No file, an unreadable file, or a file someone else could edit means every request is refused. A request PageSpace considers allowed is still refused if your file does not allow it. Limit: the policy gates what may be asked for. It does not confine a command once it is running.

  • Only you can drive your machine. Only the person who enrolled it can start a session on it, approve a command, change what it may do, or Stop it — from Drive settings → Environments, or from Settings → Local environments, which lists every machine you own across every drive. Drive admins can delete the environment and revoke the machine; they can never bind to it. This is built into the data model, not a setting. Limit: this controls who may ask. It does not control what your own agent read before it asked — see prompt injection below.

  • Your assistant on the dashboard can work in any cloud environment you can already use. The assistant you talk to from the dashboard can list and work in the shared cloud environments of any drive where you can run code — there is nothing to switch on, because the permission you already have in that drive is the permission it uses. If you are a viewer in a drive, it is refused there exactly as you are. Limit: this gives it exactly what you could already do in those drives yourself, and nothing beyond it — but it gives it to one conversation, and that conversation reads content from every drive you are in. If something you read steers it, the reach is every cloud environment you can edit rather than just the one you were looking at. The controls are the same ones your own in-drive agents have.

  • Your assistant on the dashboard cannot see your machine until you say so. The assistant you talk to from the dashboard works across every drive you belong to, so what it may reach is a choice you make one machine at a time, not something that follows from owning the machine. Every machine starts off, under Settings → Local environments; switching one on lets that assistant see it and name it when it runs something, and nothing else. When it does run something, the result says which machine it ran on, by the name you gave it. Limit, and read it carefully: switching this on does not widen who may drive the machine — that is still only you — and it does not remove a single approval. A command or a sensitive write still waits for your click on that computer. What it does is give the agent most exposed to other people's writing a way to reach your machine at all; the reason it is off by default is that this assistant reads content from every drive you are in, and that content can steer it (see prompt injection below).

  • By default, every command needs your click. The starter policy the enroller writes never pre-approves commands, so the first time an agent wants to run a program the daemon freezes the exact command, working directory, environment and limits; a card in the chat shows you precisely that; your machine compares your click against what it froze before anything runs. A click can never run something other than what you saw. Limit: this is the default your enroller establishes, not a rule the daemon enforces against you. The enroller never writes exec into your machine allowlist; if you edit it in yourself — exec in ops, or allowlist mode with exec — commands run with no click at all. pagespace env connect and pagespace env policy now warn you loudly when your policy is in allowlist mode with exec in it; they do not yet warn about exec in ops under ask mode, which removes the click just the same. And you are judging a command line, and approving it is remembered — see the next section.

  • Approving in the chat needs your passkey, and your machine checks it itself. When you answer an approval card, your browser asks your authenticator — Touch ID, Windows Hello, a security key — to sign, and your machine verifies that signature before it runs anything. The signature covers the exact request your machine froze and how long you chose to remember it, so it cannot be moved to a different command, a different question, a different computer, or turned into a longer-lasting approval than the one you gave — and PageSpace cannot produce one. That is the point: without it, anyone who could sign requests and stand where our servers stand could answer your card for you, and your machine would have no way to tell. The passkeys your machine trusts are pinned when you enrol it, from your account, while you are at the keyboard — pagespace env owner-keys prints them. Two consequences, both deliberate: nothing can add a key to a machine afterwards (not us, not the CLI, not any message on the bridge) — register a new passkey and re-enrol the machine to use it; and if you had no passkey when you enrolled, chat approvals are refused and requests prompt in the terminal running pagespace env connect instead. The terminal prompt was never exposed to this, which is why it is the fallback. Limit: the signature proves that you pressed a key for this request — it cannot prove you read it.

  • File access is confined to the folders you declared. Every file an agent reads or writes, and every working directory, must resolve inside a folder in your policy file; symlinks are resolved and .. is refused. Limit: this confines the paths an agent can name. It does not confine what a program does once it has started. And a folder is only as narrow as you make it: if you enrol from your home directory, that one root covers ~/.ssh, your shell startup files and every project at once. pagespace env enroll, env connect and env policy all say so out loud, and honour it anyway — it is your machine.

  • A write that could become a command asks you first. Writing files inside your folders normally runs without a prompt. But a file's contents can be a command something else runs later: a .git/hooks/pre-commit file, made executable, runs at your next git commit, as you, with no approval anywhere. So a write your machine can recognise as one of those — inside .git/, .hg/ or .svn/; a shell startup file; a Makefile, justfile or .vscode/tasks.json; a package manifest such as package.json or Cargo.toml; a CI config; .pre-commit-config.yaml, .gitattributes or conftest.py; or any file that will be executable once the write lands — stops and asks you, on the same card, naming the file and why. That last one counts files that are executable already: a write that names no permissions leaves the existing ones alone, so overwriting bin/tool or scripts/deploy.sh asks too, because the replacement would run as you the next time anything invokes it. Approving one covers that file, not the whole folder. Limit, and it is a real one: this list can never be complete. A write to ordinary source code that you later build or run is still a command, and no list of filenames catches that. It raises the cost of the obvious attack and puts you in front of it; it is not a boundary. Only sandboxing the command itself would be, and PageSpace does not do that — see below.

  • Results are signed by your machine. PageSpace verifies every result under the key it pinned at enrolment; a result that does not verify is never delivered to the agent.

  • Revocation on the server is immediate; on the machine it is best-effort. Revoking the environment in PageSpace stamps the row revoked, revokes every connection token, closes the live socket, and refuses to sign any further request — all at once, whether or not the machine is reachable. If the daemon is connected to that server at that moment it also receives a signed revoke, verifies it, deletes its key and stops. Limit: if the daemon is offline, or connected to a different server replica, that frame is never delivered. The machine then keeps its key, and a running daemon keeps trying to reconnect and is refused every time, forever, because the server treats the enrollment as revoked. The key on the machine is inert — it can no longer obtain a connection — but it is still on the machine until you run pagespace env disconnect and remove the credential yourself. Ctrl-C or pagespace env disconnect stops the daemon locally and kills anything it started.

  • Stop halts an environment without destroying it. Stop on the environment makes PageSpace sign nothing further for it, fails anything already waiting with a plain reason instead of a timeout, and tells the machine to kill every command it is currently running. The machine signs for what it killed, and PageSpace reports it as stopped only on that signature — never on the send. Resume picks up where you left off, and commands that were issued before the Stop stay refused even then. Limit: if the server that holds your machine's connection is not the one you clicked Stop on, the machine is told on its next heartbeat, so worst case is about thirty seconds; and if no signed confirmation comes back you are told it was not acknowledged rather than that it stopped.

  • Every decision is logged on your machine. One line per request, allowed or refused, keyed by the request id — and naming the files a read or write touched — in ~/.pagespace/env-audit.jsonl. Limit: if that write fails, the daemon reports it once to its own terminal and keeps running — commands keep running with no local record.

  • PageSpace keeps the other half of that record, and will not act without it. Every request PageSpace signs, and every one it refuses, is recorded on the server under the same request id your machine writes, so the two logs join. If that record cannot be written, the request is not sent — no silent gap. You see it live: Running now and Recent appear under the environment in the sidebar, on its settings page, and on your account page, and only you, the person who enrolled the machine, can see them. Limit: the record is updated again when the machine answers, and if only that second write fails a finished command can still read as running.

Where the guarantees stop

These are not small print. They are the reason to read this page.

There is no sandbox around a command. A command you approve runs with your privileges, exactly as if you had typed it into a terminal yourself. It can read any file you can read, change any file you can change, reach anything on your network that you can reach, and use any credential sitting in your home directory. Declared folders do not contain it. Operating-system confinement (seatbelt on macOS, Landlock on Linux) is planned and is not in this release.

Approving a command is remembered per program, not per command line. Your approval is keyed on you, this environment, the operation, and the program that ran — for a shell command line, every program it names — for the time you choose: once, until the daemon stops, 30 days (the default), or until you revoke it. Approving git status lets git push run from a new chat tomorrow with no prompt, and does not let rm run. Approving a shell or an interpreter as a program approves everything that shell or interpreter can do. A command line whose programs cannot be pinned down ($(…), eval, a nested sh -c, find -exec, sudo) is never remembered and asks every time. Approvals live on your machine, in ~/.pagespace/env-approvals.json, and PageSpace can never add one. To withdraw one today: delete its entry from that file (the daemon re-reads the file at every decision, so the change takes effect on the next request; keep the file owned by you and readable by you alone, or the daemon ignores it entirely), or restart the daemon to drop the ones scoped "until the daemon stops". Settings → Local environments now lists every approval in force across your machines and revokes any of them; a revoke your machine could not receive is delivered the next time it connects, before it runs anything, and until the machine confirms, PageSpace signs nothing at all for that environment. There is still no pagespace env subcommand for approvals.

A file write can be a command, and the list of writes we recognise can never be complete. Your machine now stops and asks about a write to the places a file most obviously becomes a command — version-control hooks, shell startup files, build files, package manifests, CI configs, and anything that will be executable afterwards — including a file that already is. That closes the plainest version of this: before it, an instruction on a shared page could have your own agent write a git hook inside a declared folder with no click at all, and your next commit would run it. It does not close the general case. A write to ordinary source code in a project you later build or run is still a command, and no list of filenames catches it. Treat the escalation as raising the cost of the obvious attack, not as a boundary.

Content other people wrote can steer your agent onto your machine. On a shared drive, every page, comment and message is written by other people, and your agent reads them. Text aimed at the agent rather than at you — on a shared page, in a README, in a dependency's source — can lead your agent to ask for a command on your computer. Owner-only control does not close this: it fixes who may ask, not what your own agent read before asking. The click is the control. Its limit is the previous paragraph: if the steered command runs only programs you have already approved, it runs with no prompt, with whatever arguments the steered agent chose. This is inherent to agents reading content nobody vetted; it is not a defect in the daemon, and it is the strongest reason to approve programs, not shells, and to keep approvals short.

The dashboard assistant names where it works; it can still name the wrong one. Every code tool it uses requires an environment id, and it can only get one from the list it is shown — it cannot invent one, and a made-up id simply does not exist and is refused. What that does not prevent is it copying a real id for somewhere you did not mean. Two things limit that and neither removes it: every result and every refusal says where it happened, by name, so a wrong one is visible immediately rather than only in a log; and where it matters most — a command on your own computer, or a write that could become one — your click is still required there. On a cloud environment there is no click: it runs in the isolated virtual machine that environment already uses, with whatever your drive has allowed, exactly as it would if you had run it yourself from that drive.

Nothing treats a conversation as tainted by what it has read. A conversation that has read a colleague's page is more dangerous than one that has not, and PageSpace does not currently restrict what an agent may do on that basis — not for your machine, and not for anything else. Visibility decides what the assistant can see; the approval decides what runs. Neither is a control on what the assistant was persuaded to want. This is the honest remaining gap, and it is an answer PageSpace owes across the whole product rather than one this feature could give on its own.

There is no network control on your machine. PageSpace's cloud sandbox runs inside an isolated virtual machine. Your computer does not. A command on it can reach anything you can reach, with whatever credentials are on the machine. Nothing in this release bounds that except your click and what you keep on that computer.

Your machine's own log can still go missing. PageSpace's half of the record is now mandatory — nothing is sent that cannot be recorded — but the log on your machine is not. If that file cannot be written the daemon says so once, to its own terminal, and keeps running. On an unattended machine nobody sees that, and commands go on running with the server's record only.

How this compares, honestly

File work confined to declared folders is comparable to a folder grant in tools like Cowork, without that tool's isolation. Running commands without a sandbox and without a person at the keyboard is materially less safe than Codex, and roughly Claude Code with its sandbox off, minus the person watching the terminal. And this bridge is exposed on one path none of those tools have: a prompt injection on a shared page becoming a command on a teammate's computer, with an open network and that teammate's credentials in their home directory. The controls above are what stand in for the sandbox until one exists. They are real. They are not a sandbox.

What to do about it

  • Run the daemon as an ordinary user, never as root, and prefer a machine — or a separate account — that does not hold secrets you would not hand to whoever is driving the agent.
  • Leave "Run commands" off unless you need it. File work runs without it.
  • Leave your machine switched off for the dashboard assistant unless you want it there, and switch it off again when you are done — it takes effect on the very next thing that assistant tries.
  • Keep your policy's principals to yourself, and keep ops and roots narrow.
  • Approve programs, not shells or interpreters, and pick the shortest scope that does the job.
  • Stop the daemon when you are not using it, remove approvals you no longer need from ~/.pagespace/env-approvals.json, and read ~/.pagespace/env-audit.jsonl when you want to know what actually ran.
  • If anything looks wrong, revoke the environment: the machine's key is deleted and the daemon stops.

Read next

Search

Search docs, blog posts, and more.