TRUST / THE STANDARD
Approval is the product.
Sandboxes are the depth.
Veasel runs on loopback and stores history in SQLite. Model prompts go to the provider you configure — local storage is not local inference. The standard path is inspect-then-approve; graduated policies and fail-closed three-OS sandboxes deepen containment. Explicit compatibility modes remain your choice.
YOUTerminal clientloopback HTTP
→LOCAL MACHINEV server + SQLitesession history
→YOUR CONFIGURED PROVIDERModel APIprompt and recent context
Current protections
- Backend binds to loopback; remote server binding is not implemented. Non-loopback
Host/ browserOriginvalues are rejected. - Provider credentials never leave the API responses. TUI-entered keys live in
model-settings.jsonwith owner-only POSIX permissions (plaintext at rest). Prefer env/keychain policy if required. - Remote model endpoints require HTTPS; local development may use loopback HTTP. Provider redirects are rejected; sizes and message counts are bounded.
- Workspace list/read/search stay inside the session root, skip symlinks during traversal, and enforce limits.
- Default
execution_policyisask: file edits, shell, and MCP require inspect-then-approve. Application verifies the reviewed file snapshot before atomic write. - Graduated policies (server-gated):
auto-editapplies in-root edits immediately whenVEASEL_ALLOW_AUTO_EDIT=1(shell/MCP still ask, or deny when non-interactive);sandbox-auto(aliasautonomous: true) auto-applies edits and sandboxed shell only whenVEASEL_ALLOW_AUTONOMOUS_EXECUTION=1and a platform sandbox can wrap — MCP stays denied. Capabilities:agent.execution_policy,.auto_edit,.sandbox_auto. - Approved shell can wrap with platform sandboxes (see below). Under
ask, approval remains the authorization gate; sandboxes are defense-in-depth. Undersandbox-auto, the OS sandbox is the fail-closed containment for auto shell. - MCP requires per-session trust plus per-call approval. Configured servers persist via
veasel mcp add//v1/mcp-servers(user or project scope; portable.mcp.jsonimport is read-only — see the MCP guide). Named credentials and OAuth tokens live under$VEASEL_DATA_DIR; API/CLI responses never return secret values. Streamable HTTP refuses redirects and validates TLS. - MCP stdio containment. The default is
VEASEL_MCP_STDIO_SANDBOX=require: trusted stdio must wrap in Linux Bubblewrap (mcp.stdio.sandbox.bubblewrap), macOS Seatbelt (mcp.stdio.sandbox.seatbelt), or Windows AppContainer + Job (mcp.stdio.sandbox.windows); a missing backend refuses to start. Explicitautopermits unsandboxed fallback andoffdisables wrapping with a warning. Network is shared inside those wraps; PLUGIN_ROOT/PLUGIN_DATA stay writable. Do not treat a shell-sandbox review as covering MCP. OAuth PKCE is for Streamable HTTP only — it does not contain stdio.
Shell sandboxes by platform
Configure with VEASEL_SHELL_SANDBOX (auto default, off, require) and optional VEASEL_SHELL_SANDBOX_NETWORK=allow.
- Linux — Bubblewrap when
bwrapis onPATH(shell.sandbox.bubblewrap). Read-only host bind, writable workspace, tempfs over sensitive homes, network denied by default. - macOS — Seatbelt via
/usr/bin/sandbox-exec(shell.sandbox.seatbelt). Best-effort; may be constrained by future macOS releases. - Windows — AppContainer + Job Object (
shell.sandbox.windows). Workspace ACL for the AppContainer SID; job memory/process caps; network denied by default. Not Codex-level WFP/LPAC.
Under auto, missing backends fall through unsandboxed and do not advertise a sandbox capability. Under require, missing backends fail closed. Full policy: docs/SHELL_COMMANDS.md.
What to keep in mind
- Your provider receives prompts, conversation context, enabled skill instructions, and approved tool/shell output needed to answer.
- The loopback API has no application token; same-user processes can reach health, workspace, and approval routes. TUI review is a workflow, not caller-identity enforcement.
- Sandboxes are not VMs. Inherited environment may still carry credentials. Inspect effects before approval.