Secrets an agent asks for
Secret cards are in development and have not been released. Track the application change.
An agent sometimes needs an API key, a token or an account password to finish its work. In a Work or Code thread it can ask for one in a private card. You enter it there, not in the chat, and you choose how long it lasts.
The value is never part of the conversation, the thread's history, an export or a notification, and the agent cannot read it from the card or the tool's answer. Commands you let it run can use it.
Do not paste a secret in the chat. If you already did, the agent should still ask with a card, and you should change the one you pasted.
Answer a card
The card appears at the end of the conversation and shows what the agent wants and why.
- Read the title and the reason. If the agent named a page where you get the secret, the card shows the whole address and an Open button.
- Enter the value, or choose another source:
- 1Password, once you have linked it: type an
op://vault/item/fieldaddress, or choose the list button to pick a vault, an item and a field by name. Choose Read it again at each use and keep no copy if you do not want Octant to hold the value between uses. - Remembered, when Octant remembers a secret of the same name.
- 1Password, once you have linked it: type an
- Choose how long to keep it under Keep for.
- Choose Save securely, or Decline.
A card waits until you answer it, the turn stops or the thread is archived. It never times out. If you decline, the agent should not ask again.
A card can have several fields, such as an email address and a password. Each is kept on its own.
If you paste several lines, such as a private key, the card keeps them exactly and shows how many there are. A value can be up to 4,096 characters.
How long it lasts
| Choice | It ends |
|---|---|
| This command | After one command |
| This turn | When the turn ends |
| 1 hour | After an hour |
| 24 hours | After 24 hours |
| Until archived | When the thread is archived |
| Remember | When the thread is archived, and Octant offers it on a later card that asks for the same name |
The first card for a name starts on 24 hours, or on This turn under Strict. Later cards start on what you chose last, where it is offered. Strict offers neither 24 hours nor Remember. Remember is never offered for an account password. Stopping Octant ends every secret except what it remembers.
Remember keeps a typed value in your computer's credential store. For a 1Password item it keeps only the item's address.
How commands get it
When a command needs the secret, the agent asks Octant to run it. The command follows the thread's usual approvals and sandbox, gets the secret as a variable named OCTANT_SECRET_ and the secret's name, and its output is shown to the agent with the value hidden. Plan refuses this.
Where the thread's commands run outside Octant's sandbox, the agent can also be given a file. Only your own user account can read it, and Octant deletes it when the secret ends.
Account passwords
A card for an account password carries a warning, because an account password unlocks the whole computer. It is meant for commands such as sudo. A sandbox lets nothing raise its privileges, so sudo works only in a thread whose commands run without one. Octant cannot type into a system dialog for you.
See and end active secrets
- In the thread, open Thread info and then Active secrets.
- For every thread, open Settings › Secret stores › Active secrets.
Each shows its source and the time left. Choose Revoke to end one at once. A command that already read it keeps what it read.
Settings › Secret stores › Remembered secrets lists what Octant remembers. Choose Forget to delete one. A thread that has it keeps it until you revoke it there.
Answer from another device
A device that acts as you on the computer can answer a card: a phone or a browser you paired with the computer yourself at Full access, the Octant app on another of your computers showing this one's threads, or an owner device the computer lists. A device paired below Full, another device a hub introduced, and an outside agent's access do not get the card. The answer is recorded as coming from that device.
- On a phone, the card shows in its thread and under Needs you. Enter the value or choose a remembered one, choose how long it lasts, and confirm with Face ID, a fingerprint or your passcode. The phone takes a value of one line; use the computer or a browser for a longer one, such as a private key.
- In a paired browser, or in the Octant app showing another computer's thread, the card shows at the end of the conversation, as on that computer. Type or paste the value, or choose a remembered one. Not in a release yet: until it is, a browser and another computer's window show no card.
Picking a 1Password item, and a secret remembered as one, stay at the computer where 1Password is linked.
Give a 1Password value from another device
Open 1Password on the device you hold, copy the value, and paste it into the card. 1Password asks for its approval on that device, not on the computer that runs the thread. Octant reads nothing from that device's 1Password and keeps the value as one you typed.
Agents are told to ask for a password manager's value with a card in this way, rather than run op read or op run on the computer, because 1Password asks to approve its command line only on the computer's own screen. This is guidance to the agent: Octant does not block such a command.
What to know
- At Full access, and in most threads outside Strict, a command can read a secret's file, print it, or send it somewhere. Give a secret only to a thread you would trust with it, and prefer a token that can do little.
- Octant hides an active value, and its common encodings, wherever it would show or store what a command printed. It cannot hide every form, and it does not hide a very short one.
- Anything the agent's own program shows its model directly is outside Octant's control.
- Secrets work in Work and Code threads on this computer. Chat, and Projects whose folder is on a server, do not run commands with them. On Windows, 1Password cannot be linked, so enter the value.