offprompt

v0.3.1
io.github.offprompt/offprompt Checked 11 hours ago Published 1 month ago

Ask the human for API keys in a browser page and write them to .env.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

collect_secret Collect a secret from the human

Get the values a task needs — API keys, tokens, connection strings, settings — written where the project reads them, typed by the human or generated by offprompt. Call this instead of asking the user to paste a secret into the conversation. Each entry in `secrets` is one key, and says how its value comes to be: - `generate: {}` — a random value, 32 bytes of base64url unless set, made on the user's page (or by offprompt when no page opens); the user may paste one they already use instead. You never see it. For AUTH_SECRET, JWT_SECRET, SESSION_SECRET and encryption keys. A key that is…

ParameterTypeDescription
reason *stringWhy the values are needed, written for the human and shown on the page as your claim. Markdown is rendered: bold, italics, code, lists, quotes. Links show their address as text and are not clickable.
secrets *arrayEvery key you need, in one request. The human fills them on one page and can paste them all at once.
sink *Where the values are written. Fixed now and not re-read from the page.
sandboxbooleantrue only when your environment tells you that you run in a cloud sandbox, a container or a remote VM, where a browser would open on a screen the user cannot see. Not a temporary folder or a run nobod…

await_secret Wait for a secret to be written

Wait for a collect_secret request that came back still "awaiting" — which happens when offprompt runs in a cloud sandbox, had no browser to open and handed you the page URL to pass on, or runs in a host that ends a tool call before the human is done. Long-polls for up to 60 seconds, 50 in Cline, and returns "written", "awaiting" or "expired". Call it again while the status is "awaiting", with no other work in between. When you were given a link to pass on, an "awaiting" result carries it again: keep it in whatever you write to the user, or ask them, until the values are written.

ParameterTypeDescription
request_id *stringThe request_id returned by collect_secret.

cancel_secret Cancel a secret request

Close a collect_secret request that is no longer needed. Anything already typed on the page is discarded.

ParameterTypeDescription
request_id *stringThe request_id returned by collect_secret.