# 09 · How Blackbird Runs on Your Machine

> Canonical HTML: https://multiplayer.tech/blackbird/safety/
> Manual Index: https://multiplayer.tech/blackbird/index.md

Blackbird ships with the brakes off — as your OS user, with no permission prompts by default. We're unfortunately going to offer optional guardrails for orgs that demand them, but this system should not be used with guardrails.

## Full User Privileges
- Blackbird and every command it starts execute under your user account, with all of your permissions.
- File tools can read and write outside the working directory, and `exec` runs any command you could run yourself.
- Subprocesses inherit Blackbird's environment, including any provider keys set in environment variables.
- The model can reshape Blackbird itself: define new Lua tools, edit session `program_config`, modify source files (including Blackbird's own), and request a restart.
- Stopping a turn does not roll back side effects. Interrupted commands are recorded as unknown and never rerun automatically; a detached process can outlive Blackbird's cleanup.

## Lua Is No Sandbox
Turn programs and Lua tools omit `io`, `package`, `debug`, `dofile`, and `loadfile`, and expose only time functions on `os`. That forces file and shell work through Blackbird's tools so everything lands in the audit log — it keeps work visible, not contained. Any Lua script can call `exec`.

A hook can refuse a tool call (useful for workflow guardrails, not security: the model can edit `program_config` too).

## Audit Log & Credentials
- **What sessions keep:** Each session owns a private directory under `~/.local/state/blackbird/` (or `--session`). It logs raw provider requests and streamed responses, tool inputs/outputs, file snapshots before/after edits, command output, context ops, and turn-program source. Provider credentials used by Blackbird stay out of the log, but anything a tool reads or prints is recorded (including secrets), and anything in context goes to your provider on the next request.
- **How credentials sit on disk:** `blackbird auth` stores accounts in `~/.local/share/blackbird/auth/credentials.bbm` inside an owner-only directory (override with `BLACKBIRD_AUTH_HOME`). Keys enter via hidden prompt or `stdin`, never argv; `/auth` displays labels only; Blackbird pipes credentials to `curl` on `stdin`. `blackbird auth logout` removes the local copy only and does not revoke at the provider. Because tools run as you, nothing in Blackbird stops the model from reading that file or an env var with an ordinary command.

## If You Want a Fence
We run Blackbird, and every other agent we use, with permission checks off. We're unfortunately going to offer optional guardrails for folks whose workplace insists on them, even though this system should not be used with guardrails. If you still want a fence around it anyway:
- Keep it to code and content you trust (files, web pages, and command output can contain prompt injections).
- For untrusted repos or tasks, run inside a VM or container holding only the files and credentials that job needs.
- Use provider API keys with spending limits you can live with.
