Going public soon.Companies on the waitlist are onboarded first.Join the waitlist

Engineering noteOctober 8, 20265 min read

Keys by private link: why nobody pastes a secret into a chat

When a build needs an API key, Aisha asks one named person on a private link that works once. The key goes to a file on the server and nowhere else.

The decision

Nobody posts or messages a key. She asks one named person for it on a private link that works once, and the value goes to a file on the server and nowhere else.

The failure it prevents

Secrets sitting in chat history, in logs, in the database and in front of the model, where they can be searched, copied, repeated or leaked.

The mechanism in three steps

  1. A private link

    One named person is asked, on a link that works once.

  2. A file on the server

    The value is written with owner-only access, then forgotten.

  3. Never shown again

    Not in chat, not in a log, not in front of the model.

The decision

When a build needs an API key, a token or an app secret, nobody types it into a chat. Aisha asks one named person for it on a private link that works once. The page says what is being asked, by whom and for which request, and it has one field to paste into. What is pasted goes straight to the server and is written to a file there. It is never shown again, and neither the chat app nor the model ever sees the value.

The failure it prevents

A key pasted into a chat does not go away. It sits in the history of that channel, where anyone who joins later can search for it. It is in exports, in backups and in notifications on people's phones. If an AI model reads the thread, and she does, it is in the model's context as well, where it can be repeated in an answer, written into a log or a file, or picked up by a message that tells the model to share what it has seen.

None of these needs an attacker. Each is what happens when a secret travels through places built for conversation. The only reliable fix is to stop the secret travelling through them.

The link lives on the requests board, behind the team's sign-in. Opening it shows what is asked, who asked and which request it belongs to. There is one paste field.

What happens to the value is the important part. It goes over a local connection to the process that holds the key, which writes it into an environment file on the server as a name and a value. The file is created with owner-only permissions, written to a temporary file and renamed into place so it is never half-written. The value is not stored in the database, not logged, not posted, not returned to the page and not shown again. The bytes the process held are overwritten afterwards.

The thread hears only that a key arrived: which one, who handed it in and the name it was saved under. The board keeps who handed it in and when. A link works once, and an unused one expires.

Who is asked

The question is who should be asked, and the answer follows the key. For an important company account, it is the person who looks after those accounts. If that person has no access, the request's approver is asked, under the request's card. For a tool everyone uses, the requester can hand over the key.

Asking someone else for a key that is still open moves the request to them. Asking the same person again changes nothing. A key she already has, or one the server already holds, is not asked for twice, and the thread is told that instead.

Keys are chased like any other open question, with one difference: a reply in the thread does not close it. Only handing the key in does, or the link expiring. A request that is waiting on a key wakes up the moment the key arrives.

Guards on what a key can be

A pasted value is not trusted just because it came through the right page. A name that the shell or the runtime reads, such as the search path or a loader setting, is refused, and so is a name that belongs to the bot's own core configuration. A name the file already holds is refused too, unless a named approver asks for it to be replaced. A value has to fit on one line, with no quotes, line breaks or control characters.

These rules sound fussy. Each one closes a way for a key to do something other than be a key.

Asking twice needs a reason

One of our own recaps flagged a small thing. A person was asked for a key they had handed over the day before, and the reason for asking again only came after they complained. Now a key someone has given before opens with the reason, such as a sign-in that came before a permission was ticked. Without a stated reason, she says that the saved one no longer works. A person who is asked twice should know why.

What the build agent can and cannot do

The agent that builds can ask for a key. It can check that the name exists in the file by counting matching lines, and it never prints the value. The key is never given to the builder session. A new key is picked up when the service next restarts, so the agent knows to wait.

On our own machines the rule is the same: secrets never touch a laptop or a transcript. They are set on the server through a script that reads the value with the input hidden.

Your keys

This is also how your own model account is connected. Aisha is BYOK: Claude, Codex or GLM, on your own account. We do not resell model access or add a margin. Your provider bills you directly, at their prices, and it is connected by this same route. See bring your own keys for what that means for your model bill and your control.

What it does not do

It is not a vault. The key ends up in a file with tight permissions on the server, which means anyone with administrator access to that server can read it. That puts the weight on who has that access, and we treat that decision as seriously as the key itself.

It does not protect a key that is already loose. If a key has been pasted into a chat before, rotate it. The link stops new leaks. It cannot recall old ones.

And it adds a step. Handing over a key takes a person a minute instead of ten seconds. We accept that, because the ten-second version is the one that leaves a key in a chat history for good. For the wider picture of what she can touch, and how read-only access comes first, see the security page and the note on corrections and rules.