A secret is a value. A name, a {{placeholder}}, and a vault reference are not. The app stores the value in the OS keychain and keeps the name in the file you might commit.

flowchart LR
  field["A secret field"]:::step
  ref{"akv:// or op://?"}:::gate
  vault[("Vault")]:::secret
  chain[("OS keychain")]:::store
  sent["The call"]:::out

  field --> ref
  ref --> vault --> sent
  ref --> chain --> sent

  classDef store fill:#134e4a,stroke:#5eead4,stroke-width:2px,color:#f4fbfa
  classDef secret fill:#FFC131,stroke:#b45309,stroke-width:2px,color:#1a1404
  classDef gate fill:#FFC131,stroke:#b45309,stroke-width:2px,color:#1a1404
  classDef step fill:#0f766e,stroke:#99f6e4,stroke-width:2px,color:#f4fbfa
  classDef out fill:#155e75,stroke:#67e8f9,stroke-width:2px,color:#f4fbfa
  linkStyle 0 stroke:#5eead4,stroke-width:2.5px
  linkStyle 1,2 stroke:#FFC131,stroke-width:2.5px
  linkStyle 3,4 stroke:#67e8f9,stroke-width:2.5px

The keychain

API keys, bearer tokens, basic passwords, client secrets, the OpenAI key, the MCP Azure client secret, and stdio env values whose names look like secrets use the OS keychain. The service name is termorq.

On macOS, new saves require the Keychain. Refusing or cancelling approval does not create a file containing the credential. Older encrypted fallback entries remain readable. Other platforms retain the AES-256-GCM app-data fallback for API and MCP secrets when the keychain is unavailable. A blank secret field on edit keeps the stored value.

macOS startup and approval

Opening Termorq does not require approval for saved credentials. Background polling, MCP auto-connect, automatic workflow triggers and headless runs do not open Keychain password dialogs. A connection that needs approval waits while you use the terminal.

For example, if startup says Docs (Keychain approval needed), enter:

@connect Docs

This deliberate connection can open the macOS approval dialog. Cancelling it stops the attempt. It does not queue another dialog. Retry when you are ready.

Affected connectionApprove access
MCP server@connect and choose the saved server.
Forge pollingSettings → Forges → Edit the connection → Test connection. A successful test restarts polling.
API, model or SSHRepeat the call, model request, or SSH connection.
HTTP workflow triggerOpen the saved workflow → Triggers → HTTP request → Approve key access. A genuinely missing key is created only by this action.
Telegram workflow triggerOpen Triggers → Telegram bot → Approve token access when its Keychain status needs attention.
Manual workflowRun workflow. Cancel run remains available during credential preflight.

Incoming HTTP requests only check the active listener’s in-memory key. They cannot open a password dialog, create a key or replace one. An inaccessible saved key is preserved.

HTTP trigger waiting for explicit Keychain approval
Browser component fixture showing the HTTP approval control with simulated IPC errors. This is not the installed app; native Keychain dialog suppression is tested separately.

Approved credential reads can be reused in memory for five minutes. Disconnecting, signing out, replacing or deleting a credential invalidates cached access. Active connections and HTTP listeners retain their current credentials until closed or restarted. After changing a credential outside Termorq, reconnect or restart the affected listener.

macOS tracks Always Allow against the executable’s signing identity and each Keychain item. Ad-hoc development builds can be treated as different executables after rebuilding. A persistent code-signing identity is needed for approval to survive rebuilds and upgrades. Moving from an ad-hoc build to a signed one may require approval for each existing credential. Desktop, development and CLI identities may need separate approvals.

Cancelling a run prevents further credential reads and network work. A macOS dialog already open may still need to be dismissed. Termorq never asks you to grant all applications access to your credentials.

Vault references

Anywhere a secret goes, you can type a reference instead:

akv://my-vault/users-api
akv://my-vault/users-api/abcd1234version
op://Private/Users API/credential
@vault test akv://my-vault/users-api
@vault clear

The field shows a vault badge and a Test reference button. The result is resolved, N chars. The value is not shown.

ReferenceHow it is fetched
akv://<vault>/<secret>[/<version>]az keyvault secret show --vault-name V --name N [--version X] --query value -o tsv, using your existing az login
op://<vault>/<item>[/<section>]/<field>op read --no-newline <ref>, or OP_SERVICE_ACCOUNT_TOKEN when you use a service account

The CLI is started directly. Each argument is separate. There is no shell. Vault, secret, and item names are checked first (Key Vault: letters, digits, and hyphens. 1Password: letters, digits, spaces, -, _, .). A reference cannot inject a command. Each run has a 15-second timeout. Errors are short (az not found, not logged in: run az login, op not signed in, secret not found, access denied).

A saved endpoint call whose target is a WSL distribution does not resolve akv:// or op:// on this computer. The call stops before those commands run.

Resolved values stay in memory for 5 minutes and are added to that call’s scrub list. They are never written to disk, logs, history, or the MCP JSON-RPC log. @vault clear forgets the cache at once.

A reference is saved in the connection file and in a team workspace. The secret guard allows a valid reference and refuses a raw token.

Masking

The mask is ••••••••.

It is applied in the scrollback, in @history, in Markdown export, in the last 10 responses kept for @diff, in @logs (which also drops URLs, headers, and bodies), and in the inspector’s JSON-RPC log. A history line that already contains the mask is inserted into the prompt. It is not run again.

Export to OpenAPI or Postman replaces sensitive fields with {{name}} and writes no secret. .aitapi, .aitmcp, .aitcol bundles that include secrets, and .aitbak are encrypted. The password is not stored.

What does not run unless you ask

ActionYou ask by
A shell lineTyping it, or Run on a collection line
An interactive programThe program itself, or @shell
An MCP tool from @agentRun, Run all, Skip, or Stop on each call
A destructive tool from Pro termorq-cli--yes
Shell lines from Pro termorq-cli--allow-shell (sh -c, or cmd /C on Windows)
A git commitYou, in your own git client. The app has no commit and no push

OAuth tokens for APIs and for MCP stay in memory. A restart means signing in again. Ctrl+C cancels a sign-in.

The app is a desktop tool. Do not expose it as a network service.

Pro termorq-cli

Headless runs use a different order: AIT_SECRET_<NAME>, then the vault reference, then the app secret store. A missing secret exits 2 before any step. The naming rules, the scrub, and the pipeline variables are on Secrets and termorq-cli.

Pro termorq-cli check reports a missing secret as blocking
Pro termorq-cli check names AIT_SECRET_USERS_API and does not call. The shell and tool steps are warnings.

Report a vulnerability

Do not report a suspected vulnerability in a public issue, discussion, or pull request. Use private vulnerability reporting.

If that form is unavailable, contact the maintainer through the contact options on github.com/garrardkitchen. Include a description, the version or commit, how to reproduce it, and the impact. Redact real credentials. Use test values.

You can expect an acknowledgement within seven days. The policy is SECURITY.md in the repository. It covers this source tree and the published artifacts. Reports about a third-party service should also go to that service.