/jadlis-secrets:secretsfrom jadlis-secrets — доступы агента в одном хранилище 1Password
Access contract for agent work — every login, token and API key the agent uses lives in ONE 1Password vault (OP_VAULT in ~/.config/jadlis/agent.conf), read through the service-account wrapper op-agent.sh without Touch ID; passwords never enter the model context (secret-relay.py URL for browser-operator, blind clipboard for desktop-operator); Proton Pass aliases for sign-ups via proton-alias.sh. Triggers: where is the password, save the token, store this API key, create a login with a generated password, list the agent's accesses, rotate a password, new alias, set up agent secrets. RU triggers: пароль от, где пароль, сохрани токен, сохрани ключ, заведи доступ, создай логин, сгенерируй пароль, какие доступы есть, смени пароль, алиас для сервиса, настрой секреты агента. Do NOT use for: the sign-up flow itself → jadlis-signup; reading, waiting for or sending mail → jadlis-mail; paying or binding a card → the human.
Ships in jadlis-secrets — доступы агента в одном хранилище 1Password. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Settings: ~/.config/jadlis/agent.conf (plain KEY="value" lines; template agent.conf.example in this plugin). Keys used here: OP_VAULT, OP_ACCOUNT, OP_SA_KEYCHAIN_SERVICE, PASS_LOGIN_ITEM, PASS_VAULT, ALIAS_PREFIX, ALIAS_DOMAIN. The scripts read the file themselves; in a Bash block get a value with ~/.claude/scripts/op-agent.sh --get OP_VAULT.
Scripts live in ~/.claude/scripts/ after the install step (below). If op-agent.sh --check fails, run the install step first.
OP_VAULT. Nothing goes into files, .env, notes, memory or chat. Other vaults of the human are read only when the human names the exact item.op-agent.sh <op args> injects the service-account token from the macOS Keychain (service OP_SA_KEYCHAIN_SERVICE, account $USER) into one op call. The service account sees only OP_VAULT. No token in the Keychain → the wrapper falls back to plain op and prints a note on stderr: then every Bash call asks the human for Touch ID — tell the human and point to the install step.item list; use op://<vault-id>/<item-id>/<field> references. Names with dashes, slashes or non-Latin letters break op read references.op read, --reveal or pbpaste where the output lands in the transcript. Send a secret straight into a pipe, a 0600 file you delete, or a child process, and report only its length.
secret-relay.py serve --op 'op://…' prints a one-shot 127.0.0.1 URL; browser-operator fetches it inside browser_run_code_unsafe and fills the field. Full snippet: secret-relay.py --help.secret-relay.py receive --stdin -- <command that reads the value on stdin>; browser-operator POSTs the value, the command stores it. --stdin keeps the value off every command line (ps and shell history show arguments); the older {} form puts it into argv — use it only for commands that cannot read stdin.Store each secret as the item category that matches it and fill that category's own fields; ~/.claude/scripts/op-item.py fields "<category>" lists them. Add a custom field only when no built-in field fits — inside a named section and with a matching type (Details.scopes[text], Security.one-time password[otp], Details.dashboard[url]). op-item.py writes values through a 0600 template file, never through argv, and refuses a custom field without a section.
| What | Category | Built-in fields |
|---|---|---|
| Site or app account | Login | username, password, --url |
| API key, token, OAuth client | API Credential | credential (secret), username (key id), hostname, expires |
| Password with no account (passphrase, PIN) | Password | password |
| Bank card | Credit Card | cardholder, type, ccnum, cvv, expiry (YYYYMM) |
| Server, VPS, panel | Server | url, username, password, admin console, hosting provider |
| Database | Database | database_type, hostname, port, database, username, password |
| Mailbox for IMAP/SMTP | Email Account | pop_username, pop_server, pop_password, smtp_* |
| SSH key | SSH Key | generated: op-item.py create --category "SSH Key" --ssh-generate-key=ed25519; an existing key is imported in the 1Password app (the CLI stores it as plain text) |
| A file | Document | op document create <file> --title … --vault "$V" |
| Text with no secret | Secure Note | notesPlain — never a secret in notes |
Two keys of one service are two items, not two concealed fields on the Login.
A=~/.claude/scripts/op-agent.sh
V=$($A --get OP_VAULT)
$A --check # config, vault, token found? (never the token)
$A item list --vault "$V" # inventory: ids and titles
$A item get <item-id> --vault "$V" --format json | jq '[.fields[] | {label, type}]' # field labels, no values
$A item get <item-id> --vault "$V" --otp | ~/.claude/scripts/secret-relay.py serve # TOTP for a form, ~30 s valid
The password is generated inside 1Password and never leaves it at creation:
$A item create --vault "$V" --category login --title "<Service>" \
--url "https://<service>" "username=<address>" \
--generate-password=20,letters,digits,symbols \
"notesPlain=Created by the agent on $(date +%F)." --format json | jq '{id, title}'
Then pass the password to the form with secret-relay.py serve --op "op://$V/<item-id>/password". Item naming: <Service> for logins, <Service> API key for API credentials.
Never type a token into a command line: assignment arguments show up in the process list. Feed it through stdin as a JSON template.
pbpaste | wc -c # length only; Spokenly-style tools can overwrite the clipboard
~/.claude/scripts/op-item.py create --op $A --vault "$V" --category "API Credential" \
--title "<Service> · API key" --url "https://<service>" --secret credential=clipboard \
--set hostname=api.<service> --set "Details.scopes[text]=<scopes>" # prints field labels and types, never values
printf '' | pbcopy # clear the clipboard
~/.claude/scripts/secret-relay.py receive --stdin -- ~/.claude/scripts/op-item.py create --op ~/.claude/scripts/op-agent.sh --vault "$V" --category "API Credential" --title "<Service> · API key" --secret credential=stdin and hand the URL to browser-operator. Into an existing item: … receive --stdin -- ~/.claude/scripts/op-item.py edit <item-id> --op … --vault "$V" --secret credential=stdin.secret-relay.py receive -- security add-generic-password -s <service> -a "$USER" -w {} -U, or let the human run security add-generic-password -s <service> -a "$USER" -w in a terminal (it prompts for the value).A password: generate the new value in 1Password, then change it on the site at once (relay the old value with serve --op before the edit if the site asks for it, the new one after). 1Password keeps the previous value in the item's password history.
$A item edit <item-id> --vault "$V" --generate-password=20,letters,digits,symbols --format json | jq '{id, title}'
A token: create the new one on the service, store it (above), then revoke the old one.
Service-account token (the human does this): my.1password.com → Developer → Service Accounts → create a new account for OP_VAULT only (the token is shown once), then in a terminal:
security add-generic-password -s "<OP_SA_KEYCHAIN_SERVICE>" -a "$USER" -U -w # prompts for the token; never put it on the command line
~/.claude/scripts/op-agent.sh --check
Revoke the old service account afterwards.
P=~/.claude/scripts/proton-alias.sh
$P create <service-slug> --dry-run # shows the prefix and whether pass-cli is signed in; creates nothing
$P create <service-slug> # {"id": …, "alias": "<ALIAS_PREFIX>-<slug>.<suffix>@<domain>"}
$P list # active aliases with ALIAS_PREFIX; --all for every alias
$P trash <item-id> # disable an alias
notion, shop-example). One alias per service.PASS_LOGIN_ITEM from OP_VAULT (username, password, one-time code). A one-time code works once per 30 s; a second sign-in inside the same window fails. Some pass-cli builds lack the headless login --interactive; the script then asks the human to run pass-cli login once.ALIAS_DOMAIN only checks the result and adds a warning.+ address.brew install --cask 1password-cli and brew install proton-pass-cli (the latter only for aliases).mkdir -p ~/.claude/scripts && cp "${CLAUDE_PLUGIN_ROOT}/scripts/"* ~/.claude/scripts/ && chmod +x ~/.claude/scripts/op-agent.sh ~/.claude/scripts/secret-relay.py ~/.claude/scripts/proton-alias.shmkdir -p ~/.config/jadlis && cp -n "${CLAUDE_PLUGIN_ROOT}/agent.conf.example" ~/.config/jadlis/agent.conf, then fill OP_VAULT, OP_ACCOUNT (if several 1Password accounts are signed in), OP_SA_KEYCHAIN_SERVICE, and for aliases PASS_LOGIN_ITEM, ALIAS_PREFIX. cp -n never overwrites an existing file.security add-generic-password -s "<OP_SA_KEYCHAIN_SERVICE>" -a "$USER" -w — it prompts for the token. Never pass the token as an argument.OP_VAULT and name it in PASS_LOGIN_ITEM; run pass-cli login once.~/.claude/scripts/op-agent.sh --check → token=found; ~/.claude/scripts/proton-alias.sh create test --dry-run.When helping with the install, run steps 2, 3 and 7 yourself; steps 4–6 are the human's (the token and the Proton password must not pass through you).
OP_SERVICE_ACCOUNT_TOKEN globally — the wrapper scopes it to one command.--generate-password recipe: <length>,letters,digits,symbols (any order, length 1–64). Default without a recipe is 32 characters.secret-relay.py serve --literal <text> is for tests only: the value is visible in the process list and the transcript.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
jadlis-secrets@jadlis is listed by becyborg/jadlis-hub — review the source before installing
npx claudepluginhub becyborg/jadlis-hub --plugin jadlis-secrets