784 B

This is a command which prints the Tox ID for the current user, or for a specified user, to the console. It may be useful for scripting interactions with Tox communication systems, or making IDs visible on a network via Avahi services so that they are discoverable.

To compile this you will first need to install toxcore (

sudo make install

To print your own ID:


or for a given user:

toxid -u [username]

To advertise your Tox ID via an Avahi service

sudo toxavahi [username]

Then on another system on the same network to discover Tox IDs:


To create a new tox user named "bar" which will exist in /home/foo/.config.tox

toxid -u foo -n bar

To set the tox username:

toxid --setuser bar