Commands
Everything Passforth does, by where you type it. In a session you can also just ask for what you want.
Slash commands
Type them in any Claude Code session on a connected machine. Arguments are single words, such as a handle or a message id.
- /passforth:inbox
- What's waiting for your yes, listed, then opened or declined one by one as you say. Claude Code shows you each message before Claude reads it.
- /passforth:handoff <to>
- This session's work packed into one sealed task for
@handle,@handle#idor#id: the goal, the branch and commit, what's done and what's left, and a patch of uncommitted changes. /passforth:handoff @ali- /passforth:tasks
- Your tasks with other developers, both ways, with their state, and what needs you now.
- /passforth:report <message>
- A task that reached this session, answered as finished: the result, the branch and commit, a patch, and the files the sender needs. Its message id is in /passforth:tasks.
- /passforth:search <query>
- Searches the messages this machine sent and opened, here on the machine. Passforth's servers can't search what they can't read.
/passforth:search migration- /passforth:login
- Links this machine to your account with a code you approve on the site: no secret to paste.
- /passforth:status
- Who this machine is linked as, whether your key is on it, the client's version and where it's installed.
- /passforth:logout
- Revokes this machine's secret and removes your key from it, once you've said yes.
Ask in plain words
In Claude Code or Codex, say what you want and the session uses Passforth's tools. Anything that would open another person's message, or send them files, waits for your yes first.
- send
- Sends a task, question or note, sealed end to end, now or at a time you set. To another person it waits for their yes, and files you attach go only after yours.
send @ali a task to fix the flaky login test, with ci.log- reply
- Answers a message that reached this session, and marks a task done once it's finished.
- open
- Opens a held message from another person into the session, after Claude Code has shown it to you and you've said yes.
open @ali's task- decline
- Declines a held message from another person. Its sender is told.
- files
- Saves the files a message carries into this project, under
.passforth/files/<message id>/, which git ignores. - who
- Who you can reach, who's online, and the messages waiting for your yes.
who's on Passforth?- tasks
- Your tasks with other developers, both ways: waiting, in progress, scheduled, and those done, declined or expired this past week.
- log
- Recent messages you sent and received: who, kind, state and when, never their text.
- search
- Searches the messages this machine sent and opened. Every word must match.
- cancel
- Calls off a message you scheduled, before it goes.
- login · status · logout
- Link this machine, check it, or log it out, as the slash commands of the same names do.
In a terminal
The client is one file, in JavaScript or in Python, with the same commands either way. With Node.js, run any of them through npm (bunx, pnpm dlx and yarn dlx work too):
npx @builtbynauroz/passforth statusOr run the copy that connect installed, node ~/.passforth/passforth.mjs status or python3 ~/.passforth/passforth.py status. On Windows, in PowerShell, it's node "$env:USERPROFILE\.passforth\passforth.mjs" status. With the plugin, /passforth:status says where its copy is.
- connect
- Sets this machine up in three numbered steps: links it (its secret, or Enter for a code you approve), your passphrase, then every Claude Code account and Codex home on it. Run it again any time: a machine already linked keeps its link and key. The connect command and npx @builtbynauroz/passforth connect run it for you.
- login
- Connect, with a code you approve at passforth.dev/device instead of a secret.
- status
- The client's version, its relay and who you're linked as, your key's fingerprint, and the connected accounts.
- send <to> [text]
- Sends from a shell or a script, so a build can hand its log to a session. The text can be piped in. Options:
--kind task|question|note(task by default),--file <path>(repeat for more),--patch,--ref <path, URL or commit>(repeat for more),--at <time>, and--yesto send files to another person without asking at the terminal. npx @builtbynauroz/passforth send @bo --file build.log the build fails on main- unlock
- Unlocks your key on this machine with your passphrase: after the plugin links it, or after you reset your key on another machine.
- reset-key
- Forgot your passphrase? Makes a new key. Messages sealed to the old one can't be opened again, and your contacts are told your key changed.
- trust @handle
- Accepts a contact's new key, once you've checked its fingerprint with them over a channel you trust.
- archive on|off
- The local archive that search reads: what this machine sends and opens, kept on it. On by default; off deletes it.
- share-branch on|off
- Shows your sessions' git branch to your friends and teammates in who. Off by default.
- logout
- Revokes this machine's secret and removes your key from it. login links it again.
- disconnect
- Revokes this machine and takes Passforth out of its Claude Code and Codex settings.
When Claude Code or Codex runs them
An agent's shell has no terminal, so the commands never wait on a prompt there:
connectlinks by a code: it opens the approval page and stops withNot finished, exit status 75. The same command, run again, carries on where it stopped.- A passphrase is asked in a window on your screen, never through the agent: macOS's and Windows' own, or zenity or kdialog on Linux. With no screen, as over SSH, it names the command to run in a terminal.
PASSFORTH_ASKPASS=programasks with another program instead, asSSH_ASKPASSdoes for ssh: it gets the window's words and prints the answer.PASSFORTH_NO_BROWSER=1doesn't open the approval page;NO_COLOR=1prints without color.
Install and update
The Claude Code plugin
On macOS and Linux, with python3 3.9 or newer.
claude plugin marketplace add builtbynauroz/passforthclaude plugin install passforth@passforth
To update it:
claude plugin update passforth@passforthTo remove it, run /passforth:logout first, then:
claude plugin uninstall passforth@passforthFrom npm
npx @builtbynauroz/passforth connectWith Node.js 18 or newer on macOS, Linux or Windows; bunx, pnpm dlx and yarn dlx work too. It copies the client to ~/.passforth and runs its connect, which also sets up Codex on macOS and Linux. Run it again to update the client; disconnect removes it.
The connect command, on macOS and Linux
curl -fsSL https://passforth.dev/connect.sh | shIt installs the client that fits the machine, the Python one on python3 3.9 or newer, else the JavaScript one on Node.js 18 or newer, and runs its connect the same way.
Addresses and kinds
Who a message is for, and what it is.
- #id
- One of your own sessions, by the short id who shows. It arrives at once.
- @handle
- A friend or teammate. It waits for their yes.
- @handle#id
- One of a friend's or teammate's sessions.
- @team
- Every member of your team, each sealed to them alone and approved by each. Text only.
- task · question · note
- A message's kind: work to do, a question to answer, or a note to read.
Limits
- A message's text: up to 16 KB, with up to 20 refs, the paths, URLs or commits it's about.
- Files: up to 10 on a message, 10 MB each and 25 MB in all. A folder goes as one zip: in a git repository, the files git tracks or would add.
- A patch: the project's uncommitted changes (
git diff HEAD) as uncommitted.patch. Untracked files aren't in it, so send those as files. - Scheduling: from a minute to 30 days ahead.
- A message from another person waits 24 hours for its receiver's yes, then expires.
New to Passforth? Start with the quick start.