Secrets
Keep API keys and passwords your app needs out of its code, in the app's .env file.
Keep API keys and passwords your app needs out of its code, in the app's .env file.
Tools → Secrets holds the API keys, passwords and tokens your app uses, like STRIPE_SECRET_KEY or OPENAI_API_KEY. Secrets are the variables in the app’s .env file inside its sandbox, and the app reads them as environment variables. Laravel, Vite, Next.js and Node’s dotenv all read this file.
The panel lists every secret by name, with its value hidden. Type in Filter secrets by name to narrow the list.
To add several secrets at once, copy lines like NAME=value, for example from an .env file or another host’s environment settings, and paste them into a Name field. Each line becomes its own row, ready to check before you save.
STRIPE_SECRET_KEY=sk_live_51H8x
export RESEND_API_KEY="re_123" # email
Comments, blank lines and export are skipped, and quotes are removed. Multi-line values in double quotes stay whole. If a name already exists, its row says that saving replaces the current value. Only the names marked that way are overwritten, and everything is saved at once with a single restart.
Values can be any text, including spaces, quotes and multi-line keys such as PEM certificates. The app restarts after each change so it picks up the new values.
The agent reads secrets from the environment by name. It doesn’t put their values in code, commits or the chat. When the app needs a key that isn’t there yet, the agent asks you to add it in Tools → Secrets by its exact name. Add it there rather than pasting it in the chat.
If you paste a secret into a chat message anyway, OneDrop notices before the message goes to the agent (when OpenRouter is set up; see Before a message is sent) and asks This looks like a secret. Save it in Secrets instead? It suggests a name from the kind of key (sk_live_… is STRIPE_SECRET_KEY, a postgres:// URL is DATABASE_URL) or the words before it (“the admin password is …” is ADMIN_PASSWORD); change it if you like. Save in Secrets saves the value here and sends the message with (saved as NAME in Secrets) in its place, so the value never reaches the agent or the chat history. If OneDrop can’t tell which part is the secret, paste just that part into the second field. Send anyway sends the message as you typed it. In a task’s chat, the secret goes into the task’s own copy of the app while it has one.
OneDrop doesn’t store a project’s own secrets. They stay in the app’s .env in its sandbox,
and the panel only fetches a value when you reveal or copy it. Anyone who
can open the project can see them. .env is added to the app’s .gitignore
so it stays out of the app’s git history.
Credentials everyone in your organization uses, like an AWS profile, can be shared with every project instead of added to each one. Organization owners and admins add them in Settings → Organization → Secrets:
Click New secret, enter a name like AWS_ACCESS_KEY_ID and its value. Names use letters, digits and underscores, can’t start with a digit, and can’t start with ONEDROP_.
Pick All projects, including new ones, or Selected projects and tick the ones that should get it. People’s own computers never get organization secrets.
Running sandboxes get it within moments, and their apps restart to pick it up. Sleeping sandboxes get it when they wake.
For an AWS profile, add AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION. The aws CLI and the AWS SDKs read them, so aws s3 ls works in every project’s Shell.
Each project’s sandbox gets its organization secrets as environment variables in the Shell, the running app and the agent. A few rules apply:
.env before starting it (set -a; . ./.env; set +a); the agent writes start scripts that way, and an app run with Docker Compose reads .env itself. In the Shell, run an app command that needs the project’s value with the organization’s unset (env -u AWS_ACCESS_KEY_ID php artisan test). Settings OneDrop itself puts in the sandbox, such as the AI key, win everywhere.env in its Shell..env, so they don’t end up in commits, hosted apps, snapshots or remixes. A hosted app gets its settings from its own environment.Tools → Secrets lists the names of the organization secrets a project gets under From your organization, with any its own secrets replace crossed out.
The agent may use organization secrets for what you ask, like reading a bucket or a table with your AWS profile. It doesn’t print their values, never signs in to an account itself, and asks you before it creates, changes, deletes or deploys anything real in your cloud account.
Sign-in provider keys saved in Users & Auth are secrets too, so they appear here as well.