# second-key

Team approvals for shared Ulpi bots.

- Type: Plugin
- Version: 0.2.0
- Updated: 22 Nov 2026
- Publisher: kamalbuilds
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Team approvals for shared Ulpi bots. Dangerous commands need N votes from your roster by Telegram DM, sized to the risk.

The requester never counts, and an agent that edits its own approval settings is stopped on its next tool call. No answer, an error or too few approvers always means deny.

Redirects are refused; What approvers see: the command after Ulpi's own redaction, Ulpi's reason for asking, and the requester's display name, platform and platform user id. While a ballot is open the DMs are edited in place about every 15 seconds with the current votes and time left.

## How to set it up

Disclosure — Disclosure: Network: only, with the bot token from.

```
api.telegram.org
```

```
SECONDKEY_TELEGRAM_BOT_TOKEN
```

The same ballot text, plus a note that their own vote does not count, is also posted to the Telegram chat the request came from (which may be a group) or to the requester's DM; Re-arming after a change that weakens the settings opens its own critical ballot to the previously armed roster; Background thread: one long-poll thread reads the bot's updates while a request is waiting for votes, and for five minutes after.

```
/secondkey enroll
```

It stops on its own once neither holds, and when the plugin unloads; Files: writes its ledger, the armed settings () and a pane state file (: open and last eight closed ballots with the redacted command, requester name and approver names) under.

```
armed.json
```

```
state.json
```

```
plugin-data/second-key/
```

Reads Ulpi's (read-only) before tool calls and in its Desktop Approvals pane, whose dashboard route is read-only; Credentials: reads the bot token through.

```
config.yaml
```

```
agent.secret_scope.get_secret
```

It never reads, or any other credential store; No telemetry, no self-updater, no shell commands, no dependencies beyond the standard library.

```
.env
```

```
auth.json
```

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Tools

- [secret-gate](https://www.ulpi.io/en/marketplace/plugins/secret-gate): Stop agent-drafted secrets from leaving the machine — deterministic scan, fail-closed gate, receipts.
- [secret-handoff](https://www.ulpi.io/en/marketplace/plugins/secret-handoff): Ephemeral credential paste: request_secret asks through clarify and injects the reply over CDP, never storing it.
- [secret-remediation](https://www.ulpi.io/en/marketplace/plugins/secret-remediation): Fingerprint leaked credentials in the Ulpi workspace, logs, and session history.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
