Security model

Secrets in your keyring. Execution in the cloud. Receipts for your work.

This page describes what Daypack actually does — verified against the shipped implementation and its test suites. Where a guarantee depends on a sandbox provider or on you, it says so.

What stays on your machine

  • Your provider API keys, stored in the OS credential store — Windows Credential Manager, macOS Keychain, or Linux Secret Service. Keys are entered via a hidden prompt and validated before they are stored; there is no plaintext fallback.
  • Your daypack.yml policy file — the local, version-controllable declaration of what may run and where.
  • Your session memory under .daypack/memory/ — project-scoped, on your disk, deleted only on confirmed request.
  • Your IDE configuration edits: daypack ide install backs up, writes atomically, validates, and can roll back.

What Daypack controls

  • MCP request handling: the local daypack-mcp server exposes 14 governed tools to your IDE or agent over stdio.
  • Command authorization: every execution request is checked against daypack.yml before it reaches any provider.
  • Secret redaction: logs, receipts, session-memory records and CLI output pass a shared redaction layer; a security test scans every generated artifact for secret material.
  • Project-context packaging and the session-memory tooling, including confirmed-only deletion.

What runs in the cloud

  • Supported project commands execute inside the configured provider's sandbox — Daytona (live-verified) or E2B (beta) — under the execution policy you declared.
  • Execution is argv-only, with timeout and cancellation. Daypack does not hand your agent a raw shell.
  • File transfers pass a content-signature deny-list: env files, private keys and credential stores are refused before upload.
  • A request bound to a provider runs there or nowhere. If the sandbox cannot be reached, Daypack fails loudly with a typed error — it never quietly runs the command on your machine.

What gets recorded

  • A structured JSONL receipt for every execution: provider, sandbox id, duration, exit code, and error classification.
  • Session-memory records you (or your agents) explicitly create — decisions, progress, pending work, checkpoints.
  • All recorded output passes the redaction layer first. Secrets never appear in receipts, memory, logs or CLI output.

Security boundaries and limitations

Authorization is not isolation

Command policy (daypack.yml) is an authorization layer, not a substitute for the isolation the sandbox provides. Daypack decides what may run; the provider decides how separated the run is. Treat both as required controls.

What depends on the provider

Sandbox strength, network policy, snapshot behavior and region support vary by provider — Daytona is live-verified, E2B is beta, and the honest capability matrix is published in the README. Unsupported provider features raise typed capability_not_supported errors rather than fake success.

What remains your responsibility

The policy you write (fallback.mode: disabled is the default and Daypack never weakens it silently), the security of your provider account, and what your agent asks to run. Daypack governs the gate — you decide what the gate allows.

What Daypack never does

  • Silently fall back to local execution.
  • Write keys to plaintext files, configs or logs.
  • Fake success for unsupported capabilities.
  • Copy your secrets into a sandbox.

Security FAQ

Are credentials transmitted to any service?
To execute, the provider SDKs authenticate against the provider you chose: your stored Daytona or E2B API key is transmitted to that provider's control plane — and to no other service. Daypack never writes secrets into sandbox files, configuration, logs, receipts or session memory, and the transfer filter refuses credential-bearing files before upload. No key is ever sent between IDE, agent and Daypack: your agent talks to the local MCP server, which reads the key from the local OS keyring.
Is the policy engine the same thing as sandbox isolation?
No — and the difference matters. daypack.yml is an authorization layer: it decides what is allowed to run and where. Isolation is provided by the sandbox itself (Daytona or E2B infrastructure). Daypack governs the gate; the provider provides the walls. Both are needed, and neither substitutes for the other.
What does Daypack guarantee — and what not?
Daypack guarantees fail-closed execution (no silent local fallback), keyring-backed secret storage with no plaintext fallback, redaction of generated artifacts, and honest typed errors for unsupported capabilities. What it does not guarantee: the isolation strength, network posture or uptime of the provider sandbox, which depend on Daytona or E2B; and the correctness of the policy you write — a permissive policy permits, by design.

← Back to daypack.ashrafulislam.dev