Skip to content

Setup Command Line

finthetechguy edited this page Nov 23, 2026 · 3 revisions

First exchange from the command line

These examples use wlan1 as the adapter and aes_keys.txt as the key file. Replace both with your own.

Where data is kept

What Option Variable Default
Key file --keys CTRPASS_KEYS none for most commands; ~/.config/ctrpass/keys for ctrpass keys
Message store --store CTRPASS_STORE $XDG_DATA_HOME/ctrpass, usually ~/.local/share/ctrpass

Radio commands run with sudo, and under sudo the default store would be root's. Pass --store to keep one store for every command. The examples use /var/lib/ctrpass.

1. Find nearby consoles

sudo ctrpass scan -i wlan1

Each console heard is printed as one JSON line with its MAC address, channel, signal and the CEC title IDs of the games it has StreetPass set up for. If nothing appears, see Troubleshooting.

2. Set up a game to receive

ctrpass only exchanges for games in its store. Turn on receiving for each game you want. This example uses StreetPass Mii Plaza, title 00020800.

sudo ctrpass --store /var/lib/ctrpass store receive 00020800 on

store list shows every game in the store and its messages:

sudo ctrpass --store /var/lib/ctrpass store list

3. Exchange

sudo ctrpass --store /var/lib/ctrpass --keys aes_keys.txt exchange -i wlan1

This runs until you press Ctrl+C, then prints how many passes and exchanges it made. Received messages go into the store's inbox.

Exchange options

Option Default Meaning
--role lead|wait|alternate lead Search for consoles, wait to be found, or switch every pass.
--channels 1,6,11 Channels to look for consoles on, in order.
--window 60 Seconds each pass waits for a console.
--passes until stopped Stop after this many passes.
--radio-mode auto|active|mixed auto See [[radio modes
--rotate-every 8 Hours between changing the MAC and clearing passed consoles. 0 for never.
--force off Take the interface even if it is connected or managed by another program.

To let a console you already passed pass again straight away:

sudo ctrpass --store /var/lib/ctrpass store rotate

Other commands

Command What it does
ctrpass info FILE Print a message, envelope or exchange object as JSON. Checks signatures when keys are given.
ctrpass decode CAPTURE.pcap Print the StreetPass frames in a packet capture as JSON, decrypting links when keys are given.
ctrpass plaza build / plaza show Build or read Mii Plaza messages.
ctrpass title list / show / build Read and build messages for any game ctrpass knows the fields of.
ctrpass store add / remove / identity Manage messages and the identity the store presents.
ctrpass import FROM Copy messages and signing keys in from a CEC save image, CEC folder or message file.
ctrpass export [DEST] Copy the inbox to an emulator's StreetPass folder.
ctrpass keys Fill the key file from your console's dumps.
ctrpass serve -i IFACE Radio helper for the desktop app. Not meant to be run by hand.

ctrpass --help lists every command. ctrpass <command> --help shows its options.

Next: Messages, games and emulators

Clone this wiki locally