Training
Your code and prompts are not used to train a model. Midas is an orchestration layer around models, not a model of its own. No model in the product is trained on your code.
What the service stores
- Account, workspace, wallet, card, invoice, and usage records.
- For a session, the metadata the dashboard needs: timestamps, model, token counts, cost, the files the session read, and a short prompt excerpt.
- For a review, the pull request, commit, confidence, findings, and the customer and upstream cost.
- For a cloud sandbox, the repository, base branch, pull request number and URL, status, timing, and a bounded failure reason.
Cloud sandboxes
- The repository is cloned with a short-lived, repository-scoped GitHub App token.
- Model access uses a short-lived token bound to that one sandbox.
- The workspace is an emptyDir volume with no persistent disk, and it is destroyed with the pod.
- There is no inbound network route and no service account token mounted into the pod.
- The sandbox token and the GitHub token are revoked or deleted at teardown.
The sandbox keeps identifiers, not code. The dashboard links to the draft pull request; it does not store the changed files.
Access tokens
- A CLI login mints a durable token stored on your machine and shown once in the dashboard.
- A sandbox token is scoped to one sandbox and cannot act as a human account.
- A GitHub installation token is scoped to the repositories the app may read.
- Remote control connects outbound to the Midas API. Nothing listens for inbound connections.
Local session storage
Sessions, messages, and tool output live in a local SQLite database. Images and documents are stored once, by content hash, in a local blob directory and referenced from the session. The same screenshot pasted or read twice is stored once.
- Tool-read media is removed after 30 days and resolves to a placeholder.
- Pasted media is kept until you set a user-media retention window.
- Local event history is folded up after 90 days; messages and parts remain.
- Unreferenced user blobs are removed after 90 days.
- Workspace-synced sessions keep their event history, but media is still stored once.
Maintenance runs once a day. Inspect the database and reclaim space with:
midas db stats
midas db compact --rewrite-media --prune-history --older-than 0 --yes --keep-backupThe compact command keeps a pre-change database when you pass --keep-backup. The zero-day example removes event history for all local sessions on purpose; messages and parts are preserved. Use a larger --older-than value to keep more.
MIDAS_STORAGE_HISTORY_DAYS, MIDAS_STORAGE_TOOL_MEDIA_DAYS, MIDAS_STORAGE_USER_MEDIA_DAYS, and MIDAS_STORAGE_BLOB_DAYS. Set MIDAS_DISABLE_PRUNE=1 to stop maintenance, or MIDAS_DISABLE_BLOB_STORE=1 to keep new media inline.Your control
- Revoke a CLI token from the dashboard at any time.
- Turn remote control off with midas relay stop.
- Turn cloud sandboxes off for a workspace in Settings.
- Unlink a GitHub installation from the workspace.
- Delete a session with midas session delete.
Questions
Ask at hello@trymidas.io. The FAQ covers the short answers, and Cloud sandboxes has the full run lifecycle.