set_pin
Protect your Signal account from SIM-swap attacks by setting a 4-20 digit registration lock PIN. Anyone attempting to re-register your number must provide this PIN, preventing unauthorized access.
Instructions
Set a Signal Registration Lock PIN to protect your account against SIM-swap and unauthorized re-registration. Only works when signal-mcp is the account's primary device — fails with 'This command doesn't work on linked devices' if signal-mcp was set up via signal-cli link. Once set, anyone attempting to re-register your phone number on Signal must provide this PIN. The PIN must be 4–20 digits. Signal also uses the PIN to derive your storage encryption key. If you forget the PIN, you must wait 7 days for the lock to expire before re-registering. Use when you want to harden your account against SIM-swap attacks. Use remove_pin to disable the lock. Do NOT set a PIN you might forget — losing it locks you out of your account for 7 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | 4–20 digit numeric PIN (e.g. '123456') |