Safe storage
Keep sensitive values such as a card number where the AI chat can use them by name without ever seeing them.
Safe storage keeps values you never want the AI to see, such as a card number or a token. The AI chat sees only each entry's name. When it needs a value, it writes the name into a statement, and Tamery puts the value in when you run it.
Add an entry
- Pick Settings in the avatar menu, or press Cmd+, (Ctrl+,).
- Pick Safe storage.
- Click Add (the + once you have an entry).
- Type a Name no other entry uses: up to 64 letters, digits,
_or-, with no spaces, such asCardorwork_token. - Type the Value, at least 8 characters, and click Add.
You type the value in Settings, never in the chat, so it never reaches the AI. The Tamery cloud stores it encrypted with the server's secret, so every chat on every device you sign in on can use it. Settings lists only each entry's name and the date you added it, never the value. The server decrypts the value and hands it to your window only when you press Run on a statement that uses it. Replace value in an entry's ⋯ menu sets a new value under the same name, and Remove deletes the entry.
Use an entry in the chat
Ask for what you need by the entry's name, for example "add a payment with my Card". The agent writes {{safe:Card}} where the value goes in the statement, as a whole value: to put it into text, it joins the pieces, such as 'Bearer ' || {{safe:Token}}. A statement with {{safe:Card}} inside a quoted string or a comment is refused.
- A statement that uses an entry always waits for your Run, also in Auto mode and also when it only reads. Its card says which entries it uses.
- On Run, Tamery fetches the value and puts it into the statement as a quoted value just before the statement goes to the database. The statement on the card, in the chat and in the query log keeps
{{safe:Card}}. - The agent gets back only the result's column names, row count and affected rows, never its rows, so it cannot read the value even in a changed form, such as base64. When the statement fails, the agent learns only that it failed: the error, which could quote a changed value, shows on the card for you. You see the rows on the card in the window where you ran it; elsewhere, and after a reload, the card shows the row count.
- Wherever the value comes back to you, in the result, an error or the query log, it reads
[safe:Card]instead. - A statement you run yourself with
!in the chat shows its rows to the agent, but each value reads[safe:Card]there, also in its error and on its card after a reload. The agent reads every earlier message, result and summary of the chat the same way, including those from before you added or replaced the entry. - On a connection that runs in the Cloud, the statement with the value passes through Tamery's query proxy on its way to the database. The proxy never logs a statement or its error.
Only the Tamery chat uses safe storage. Agents connected through MCP cannot.