phone_clipboard_file — Claude Code prompt: what it does
The phone_clipboard_file Claude Code prompt sends a text file containing a secret to a phone. It takes the file’s absolute path instead of secret text in the request.
MIT ★ 395 updated 2026-11-16
.claude/commands/phone_clipboard_file.mdWhat phone_clipboard_file does
The prompt reads the named file and sends its text straight to the phone through Persona. The secret stays out of the request, and phone_clipboard_get must not be used to read it back.
The result reports the file size and, once it reaches a configured threshold, its last four characters. The file must belong to the user, sit inside their home directory, and contain UTF-8 text; a size limit also applies.
What it helps with
- send an API key from a computer to a phone
- transfer a token without putting it in a prompt
- send a password or private key stored in a text file
Example prompts for the agent
- Send the contents of
/home/me/secret.txtto my phone. - Transfer the API key in
/home/me/api-key.txtto my phone without showing it to me. - Send the token from
/home/me/token.txtto my phone through Persona.
How to install phone_clipboard_file
Manually: put the files in place
.claude/commands/phone_clipboard_file.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about phone_clipboard_file
How do I install phone_clipboard_file in Claude Code?
Create .claude/commands/phone_clipboard_file.md and put the prompt contents in that file. Then ask Claude Code to send a secret from a text file to the phone.
What does phone_clipboard_file do?
It reads a text file by its absolute path and sends the contents to a phone through Persona. The result includes the file size and, once a configured threshold is reached, the final four characters.
What does phone_clipboard_file need to work?
It needs a user-owned UTF-8 text file inside the home directory and Persona to deliver the contents to the phone. The file is subject to a size limit.
Source text
phone_clipboard_file.md · MIT
{{.Description}}
For a secret (an API key, a token, a password, a private key), pass file instead of text: the absolute path of a text file on the computer you run on. Persona reads the file and sends its text straight to the phone, so the secret never passes through you. Do not read the file yourself, never put a secret in text, and do not read it back with phone_clipboard_get. The result gives only its size and, when it is at least {{.TailMin}} characters long, its last 4 characters. The file must be your own, inside your home directory, and UTF-8 text of at most {{.MaxKiB}} KiB.
© nwverse · MIT · nwverse/persona