Project secrets the model never sees
Tarsk stores API keys and tokens per project and passes them to commands by name. The agent runs the setup, and the values stay out of the chat.

You ask the agent to deploy a Worker. It finds that the Worker has no secrets, and then it hands you a list: generate two keys, create a database token, copy it, paste it into five prompts, type two old values into an environment file. The agent could run every one of those commands itself. It does not, because until now the only safe way for a secret to move was through your clipboard.
Project secrets fix that. Tarsk keeps each secret in the project, and the agent works with the name only. It can create a secret, put it into a command, and capture a new one from a command’s output. It never reads the value.
A secret is a name and a hidden value
Each secret has a name in capitals, such as CLOUDFLARE_API_TOKEN or SESSION_KEY, and a value that Tarsk stores encrypted for that project. One project can hold many secrets, and two projects can use the same name for different values.
Open Project Settings > Secrets to see the list. Each row shows the name, where the value came from, and its length. You can add a secret or delete one there. Settings does not show the value, not even to you.
Three ways a secret gets in
You type it. When the agent needs a key that only you have, it asks for it by name. Tarsk shows a single password field with a short note on where to find the value. You paste the key and submit. The agent gets a message that the secret was saved, or that you declined.
The agent generates it. For a new signing key or encryption key, the agent can make a random value of the length it needs. If a secret with that name already exists, Tarsk keeps the old one unless the agent asks to replace it, because stored data can depend on a key.
A command prints it. Some tools print a token when you create it. The agent can run that command and tell Tarsk to save what it prints as a named secret. The token goes to the store, not into the chat. If the command fails, nothing is saved.
Two ways a secret gets used
The agent can pass secrets to one command as environment variables, by name. Only that command gets them. Other commands, and the rest of the session, do not.
The agent can also send one secret to a command’s input, for tools that read a value from a prompt. This is how it fills a “paste your secret here” prompt without you at the keyboard.
In both cases, the agent sees the command’s output with every secret value replaced. The redaction also catches values that are encoded in common ways or split across lines of output. When a project has secrets, every command in that project goes through this filter, not only the commands that ask for a secret.
You approve each command that uses a secret
Redaction alone is not enough. The agent writes the command, so it could send a key somewhere it should not go. For that reason, each command that uses or captures a secret stops for your approval. The approval shows the full command and lists the secrets it uses, and which ones go in as variables, which one goes to input, and which one it captures.
“Allow all commands” does not cover these. A command you approved earlier in the session, or a pattern you approved for this kind of command, does. So a repeated deploy step asks once, and a new command that touches a key asks again.
Three more rules apply:
- If a command names a secret that does not exist, it fails before you see an approval, and the error lists the ways to create it.
- A command that uses a secret cannot run in the background, because a background job has no point where you can approve its later output.
- The agent can only ask you for a secret in a chat that belongs to a project, so you never type a value that Tarsk has nowhere to store.
What the Worker setup looks like now
Back to the deploy. The agent generates the two keys. It creates the database token and captures it as a secret. It asks you once, in a password field, for the two old values only you know. Then it runs the five secret upload commands, and you approve each one after you read it. You copy nothing.
Approval is still the part that matters. An approved command can misuse a secret, so read the command before you allow it. The names in the approval tell you which keys are about to leave the store and where they go.
- Secrets live in the project, and the agent works with names only.
- You type a value once, or the agent generates or captures it.
- Each command that uses a secret waits for your approval, and its output is redacted.
Open a project, go to Project Settings > Secrets, and look at what you have. Next time the agent gives you a list of tokens to copy, ask it to store them as project secrets and run the steps itself.