broker
Skill5 starsChanged 10 days agoMITView on GitHub
Credentials through the `broker` CLI. Use whenever a task needs an API key, token, password, or other credential, or a command fails for missing auth.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Kucoin/kucoin-skills-hubtheir own version, first seen Mar 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Kucoin/kucoin-skills-hub★ 28same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
If a credential the task needs is missing from ls, ask the human to store it (broker set NAME --desc "what it is for") rather than paste it …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
broker
broker holds the human's secrets. You run commands with a secret; you never read it. Secret names are environment variable names, and broker exec puts them in the child's environment. ls, exec, and request are yours; every other subcommand is the human's.
Use a secret
- Discover:
broker ls --jsonprints an array of{"name","tier","description","granted","expires",...}. Pick by name and description.public: always usable.private: usable while"granted": true; otherwise ask for a grant with--request(step 2)."changed": truemeans the human changed the value since it was granted, so the grant holds the old value and does not count: request it again.
Run:
broker exec --request --reason "WHY" NAME... -- CMD [ARGS...]. With grants live it just runs. With any missing, it shows the names, CMD, and your reason in a window on the human's desktop and on their phone if one is enrolled, waits up to 2 minutes for them to approve, then runs. Give the shell command a timeout of at least 150 seconds. Write the reason for the human: one plain sentence on what the task needs the secret for. It also stays beside the grant and its runs in the human's Signal Box panel, so name the task, not just the tool. A tool that reads the variable itself runs directly:broker exec --request --reason "list your repos for the audit" GH_TOKEN -- gh repo listTo reference the variable in arguments, expand it inside the child with
sh -cand single quotes:broker exec --request --reason "check which account the token is for" GITHUB_TOKEN -- sh -c 'curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/user'Written straight into the arguments (
-- curl -H "Authorization: Bearer $GITHUB_TOKEN" ...), the variable expands in your own shell first, where it is empty.- Read the result by exit status and stderr (next section).
To extend a live grant (the human is stepping away and the task will outlast it), ask with an explicit duration: broker request --reason "WHY" --for 8h NAME... (24h at most). If the grant ends sooner than that, the human gets a window to approve the longer grant, as above; if it already lasts about that long, nothing opens and nothing prints. Without --for, a live grant is left alone.
Private values in the child's stdout and stderr come back as [REDACTED:NAME]. That is expected: the command saw the real value and worked. Leave the value unrecovered. Public values are not redacted, and broker get NAME prints a public one.
Keep each value inside the exec'd process: run broker exec per command (not export into your shell), and keep values out of files, commits, logs, and chat. Redaction covers only the child's output streams, not files it writes. A private broker get needs a hardware touch and would print the value into your transcript; use exec.
If a credential the task needs is missing from ls, ask the human to store it (broker set NAME --desc "what it is for") rather than paste it to you.
Results
exec exits with the child's own status. Broker's own failures happen before the child runs and always print exactly one JSON line on stderr with an error field; that line, not the number, tells them apart from the child's.
{"error":"no_grant","names":["GITHUB_TOKEN","DB_PASS"],"ask_human":"broker grant GITHUB_TOKEN DB_PASS --for 1h"}| exit | error | meaning | do |
| child's | (none) | the command ran | treat it as the command's result |
| 77 | no_grant | private secret not granted, the grant expired, or its value changed since it was granted (those are listed in changed) | without --request: rerun with it. With it, the message says there is no request window (no desktop or broker-dialog missing, and no phone enrolled): ask the human to run ask_human verbatim; retry after they confirm |
| 77 | denied | the human turned the request down | stop; tell the human what is blocked and why; request again only if they say so |
| 75 | request_timeout | nobody answered the window | tell the human the request is waiting, with ask_human as the terminal alternative; retry once they reply (they may grant it from Signal Box's Asks tab, so check broker ls --json first) |
| 78 | unknown_secret | names are not in the vault | recheck broker ls --json; if absent, ask the human to broker set it |
| 75 | needs_human | you ran a human command (get private, grant, set, rm, ...) | ask the human to run ask_human |
| 66 | no_vault | broker is not set up | ask the human to run ask_human |
| 127, 126 | command_not_found, cannot_exec | CMD after -- is missing or not executable | fix CMD |
| 64 | usage | bad arguments (often a missing --) | fix the call |
Sandboxes
On Linux, grants live in the kernel user keyring, which is per user namespace, and in broker's grant agent, which a sandbox reaches through a unix socket in $XDG_RUNTIME_DIR/broker. Inside a sandbox (bubblewrap and sandboxes built on it) grants usually still work through the agent. If the human says they granted a name but broker ls --json still shows "granted": false (or exec keeps failing with no_grant, or ls prints grants not shown: ... on stderr), your sandbox probably hides that directory or blocks unix sockets. Granting again will not help: tell the human, and either ask them to share $XDG_RUNTIME_DIR/broker with the sandbox or run the broker exec command outside it, requesting unsandboxed execution or asking permission to.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

