Plans and help

Data and privacy

Exactly what Duscode keeps on your computer, what it sends to AI providers and when, what Duscode Cloud receives, and how to control and delete it.

This page says, in plain words, where your data goes when you use Duscode. Each statement describes how the app works today. Where something isn't built yet, the page says so.

What runs on your computer

Duscode is an app on your computer. The engine that plans, edits files and runs commands, the local server behind the workspace, and every file it keeps all live on your machine.

  • The local server listens on 127.0.0.1 only. It refuses requests from other websites and from host names other than localhost.
  • Your project files are read and changed on your machine. Dus can only read and write inside the project, or inside the task's own worktree.
  • Model calls go straight from your computer to the provider, with your own key. They never pass through a Duscode server.
  • No telemetry. Duscode has no analytics and no crash reporting. Errors are only written to the app's own console.

What is sent to AI providers, and when

Each model call goes to the provider of the model that answers it: Anthropic, OpenAI, Google and so on, or a local model server. Privacy mode decides which providers are allowed.

Call What it contains When
The main agent Dus's instructions; your messages; your attachments (images and PDFs as files, other files as text); the results of the tools Dus used, which include the parts of your files it read, command output and browser-check screenshots Every step of a task
Helpers and workers A task Dus wrote for them, plus their own tool results When Dus hands off research or starts a background worker
Requirements checklist Your request Once per task, for requests that state something to check (not for quick questions)
Completion review Your request, the checklist, the checks that ran, the commands run, the changes made, and Dus's answer When a task with a checklist finishes
Summary of older turns A text transcript of the older part of the task When a task uses more than 60% of the model's context window
Task title Your first message, up to 2,000 characters Once, when you start a task
Commit message The changes to commit, up to 16,000 characters When you open the commit step in Changes
Image generation The image description Dus wrote When Dus generates an image (it asks first unless your permission mode allows it)
Web search Search queries When Dus searches, on models whose provider has its own search tool (Anthropic, OpenAI)

Before anything is sent, values from your secrets vault are masked in all of it.

  • OpenAI is called with store: false, so OpenAI does not keep the conversation for later use.
  • Your provider's own policy applies to whatever Dus sends it. Check that policy before you send sensitive code. In particular, some free tiers may use your content for training.
  • A per-user id for abuse monitoring is built into the engine (OpenAI safety_identifier, Anthropic metadata.user_id). The app does not set one today, so none is sent.

Not model calls: when you add a key in Settings, Duscode checks it by asking that provider for its list of models. Only the key is sent, and nothing is billed.

Privacy mode

Settings → Models & keys → Allowed providers sets which providers Duscode may send anything to:

  • Any provider with a key (the default). Dus can use every provider you have added a key for.
  • Only the providers I choose. Model calls go only to the providers you tick.
  • Local models only. Model calls stay on your computer or your local network: Ollama, LM Studio, or any OpenAI-compatible server at a localhost, private-network or .local address. Nothing goes to a cloud provider.

The mode is enforced inside the engine, at the one place every model call leaves. That covers everything in the table above: the main agent, helpers and workers, routing, summaries, titles, commit messages, the checklist and review, image generation, and moving to another model when one is busy. A call to a provider the mode doesn't allow is refused, with a message saying why. It is never quietly sent to another provider outside the allowed set instead.

Two more switches sit next to it:

  • Web search: the provider's own web search, and Dus fetching web pages. When it is off, Dus doesn't get these tools, and they refuse to run.
  • Browser checks of internet pages: when it is off, browser checks only open pages on your computer. When it is on, opening any other site still asks you first.

Project details shows the active mode and any providers it leaves out. Your setting is saved in ~/.duscode/config.json. A project's own .duscode/config.json can only make it stricter, never looser.

Keep in mind:

  • "Local" is decided by the server's address. A local proxy that forwards requests to a cloud API counts as local.
  • A local page that a browser check opens may load resources from the internet itself.

How routing chooses a provider

In Auto, Dus starts each task on the cheapest tier (fast). It moves up a tier (standard, then frontier) when the project's checks fail or the completion review finds something missing. Inside a tier, it uses your preferred models first, then the catalogue's order.

Only models from providers that have a key, or a local server you enabled, and that privacy mode allows, are candidates. When a provider is busy or down, Dus moves to the same tier on another allowed provider, then one tier up. If you pinned a model, it is never swapped.

What Duscode Cloud receives

Duscode Cloud handles accounts, licences and billing. It is used only when you sign in. With your own keys it never receives your code, prompts, files, keys or model traffic.

On Duscode credits (Pro, Max, Team, or the trial), model requests go through the cloud:

  • The app sends each request (the conversation, the code and files Dus is working on, and its tools) to the cloud's credits gateway, signed in as you.
  • The cloud forwards it to the provider that answers that tier, on Duscode's own account. The app always names that provider and model.
  • The answer streams back to you.
  • Requests and answers pass through in memory and aren't stored.
  • For each call the cloud keeps the model, the provider, the token counts, the cost and the time. That is what bills you, enforces limits and is reconciled with the provider.
  • The provider receives a one-way hash of your account id, not your email.
  • Privacy mode applies: Local models only or Only the providers I choose without "duscode" means nothing goes to the gateway.
  • Provider web search is off on credits.

When you sign in, the app sends:

  • a sign-in request named "Duscode on your computer's name";
  • requests for your account details and a signed licence. The licence is refreshed when it is within a day of expiring (checked every 6 hours) and verified offline;
  • a sign-out request;
  • email notifications you turned on, and only those: the app asks the cloud which types are on before it sends anything, so a type you left off never leaves your computer. A job that needs you or failed carries the project name, the job's name and its status; a failed or rolled-back deploy carries the project name and the deploy target; the weekly summary carries the number of tasks, the share verified, the spend and the savings. Names are masked for vault values first. No code, prompts, output or keys.
  • problem reports you chose to send (off by default; each shown to you before it goes the first time, see Feedback for Duscode): the problem, its error lines, the Duscode version, your system, an anonymous error signature and a count. The longer output and the project's name only when you tick them for that report. Secrets are masked. Signed in, the report carries your account; signed out, a random install id the cloud keeps only as a hash. The app then asks now and then whether a release fixed your reports. Never sent when privacy mode is Local models only.

The cloud stores:

  • your email and an optional name;
  • your plan, team and seats;
  • when you accepted the Terms and confirmed you're 18 or over;
  • your Stripe customer and subscription ids;
  • when you were last active;
  • sign-in sessions and codes, stored hashed;
  • the name of each device you signed in from;
  • an audit log of account events (sign-up, sign-in, device approvals, team and billing changes), with the IP address;
  • your email preferences, and a log of the emails sent to you;
  • on credits: your balance and its history, and the per-call records above (no request or answer content);
  • problem reports you sent, grouped with everyone's by problem (no IP address is kept with them);
  • for the one-off trial: one-way hashes of your email address and of a random id the app made for your computer.

You sign in with an email link, or a password you choose (stored only as a scrypt hash), optionally with two-step sign-in. Stripe handles card details, and they never reach Duscode.

Slack, Teams and desktop notifications (Settings → Apps & connectors) don't use the cloud:

  • Slack and Teams messages go straight from your computer to the webhook you saved.
  • Desktop notifications come from your browser.
  • Each one carries only the project name, the task title, a fixed status ("Finished, checks passed") and a link to your local workspace. It never carries code, output or secrets.

How keys and secrets are handled

Where keys are kept

  • Keys you add in Settings are stored in Duscode's vault, ~/.duscode/vault/vault.json (readable only by you). Each value is encrypted with AES-256-GCM.
  • The vault's own key is kept in your operating system's keychain: Keychain on macOS, Secret Service on Linux, DPAPI on Windows. Without one, it is kept in a file readable only by you.
  • Keys can also come from your environment or ~/.duscode/.env. A key saved in Settings takes precedence.
  • The workspace only ever shows the last four characters of a key.
  • A key is sent only to its own provider. A project's config can't change where a provider's requests go.

How keys are kept from Dus and from commands

  • Commands never see provider keys: key variables are removed from their environment, and key values are masked in their output.
  • Dus can't list provider keys, use them in a command or overwrite them.
  • Other secrets (tokens, database URLs) reach a command only by name, through its environment. They are masked in everything Dus sees, says or saves, including what is sent to providers.
  • The vault keeps a log of when each secret was used, saved or revealed, without the values.

Apps and connectors

When you connect an app (your email, an issue tracker, an MCP server), Duscode talks to it from your computer, with credentials kept in your vault; nothing goes through Duscode Cloud. What an app returns that Dus reads (an email, an issue) becomes part of the conversation, so it is sent to your AI provider like a file Dus reads. To keep an app away from providers entirely, turn it off with Let Dus use … in Settings → Apps & connectors: it is then hidden from Dus and refused in every project. Sending, deleting and sharing are always shown to you first. See Apps and connectors.

Sandbox permissions

On Linux, WSL and macOS, commands run in an operating-system sandbox: bubblewrap on Linux, sandbox-exec on macOS. Windows has no sandbox yet. Run Duscode inside WSL to get one; otherwise commands run with approvals only.

Inside the sandbox:

  • Writing is allowed only in the task's folder, a private /tmp and package-manager caches. Git hooks and git config stay read-only.
  • Reading: the rest of the system is read-only. Your home folder is hidden apart from toolchains. Credentials are always hidden: .ssh, .aws, .config/gh, .docker, .npmrc, .git-credentials, Duscode's own folder and similar.
  • Network: only package registries (npm, Yarn, PyPI, crates.io, Go, RubyGems, Maven), on ports 80 and 443, plus hosts you add under network.allow in your config. A command that needs another host asks you first, and the audit log records it.
  • Environment: variables that look like credentials (keys, tokens, passwords, cloud-provider variables) are removed.

The permission mode decides what runs without asking. Irreversible actions always ask.

How costs are calculated

Each model call is priced from the tokens the provider reports, using the per-million-token prices in Duscode's model catalogue:

  • input and output tokens;
  • cache reads and writes;
  • images and provider-run web searches, at their per-use prices.

Some catalogue prices are still marked to be verified against the provider's page. Your provider's bill is the authority.

"Saved" is what the same tokens would have cost on the baseline model (your baselineModel, otherwise the best frontier model available), minus what you paid.

Each call is logged to ~/.duscode/usage.jsonl: time, model, purpose, cost, baseline cost and project folder. No prompts or code are logged.

Budgets default to $2 per task and $20 per day. You get a warning at 80%. At the limit, Dus asks you to raise the budget or stop.

The audit log

Every operation in a task is logged to <project>/.duscode/audit/<session>.jsonl (readable only by you, and kept out of git). Each entry records:

  • the time, the task and which agent acted;
  • the tool and its input (one line, secrets masked);
  • the permission mode and what allowed the operation (no approval needed, policy, your allow rule, your approval, declined, refused, or the checks);
  • the risk, any network hosts it needed, and the outcome.

Open it from Project details → What Dus ran, and why it was allowed.

Deleting your data

On your computer. Everything Duscode keeps is in two places, and deleting them removes it:

  • ~/.duscode/: settings, the vault, sign-in and licence, usage history, notifications, project list, permissions, memory, skills, scheduled jobs and deploy targets.
  • Each project's .duscode/ folder: saved tasks, the audit log, the journal, project memory and skills.

Undo snapshots for a git project are private refs in its own repository, under refs/duscode/checkpoints/. Remove them with git for-each-ref --format='%(refname)' refs/duscode/ | xargs -n1 git update-ref -d. For folders that aren't git repositories, they live in ~/.duscode/checkpoints/.

Signing out (profile menu) removes your sign-in and licence from this computer and ends the task in Duscode Cloud.

Your Duscode Cloud account. There is no self-service delete button yet. Email support@duscode.com from your account's address to have your account deleted. See the draft Privacy Policy.

At your AI provider. What a provider keeps is set by that provider's policy and your account settings there.

Something missing or wrong? Email support@duscode.com.