This is a Python script that provides a simple GUI interface for managing Tailscale devices using the Tailscale API. It allows you to log in with your API key, fetch the list of devices associated with a specific tailnet, search for devices, select multiple devices, and apply tags to the selected devices.
Before running this script, make sure you have the following:
- Python 3.x installed on your system.
- The
requests
library installed. You can install it by runningpip install requests
. - The
tkinter
library installed. It is usually included with Python by default.
-
Clone the repository or download the script.
-
Open the script in a Python editor or IDE.
-
Replace the placeholder text in the following lines with your info.
-
Save the script.
-
Run the script using Python.
-
The Tailscale Manager window will open.
-
Enter your Tailscale API key and the tailnet name in the provided entry fields.
-
Click the "Login" button to log in and fetch the list of devices associated with the specified tailnet.
-
Enter a search term in the search entry field to filter the device list. The list will update dynamically as you type.
-
Select one or more devices from the device list by clicking on them.
-
Click the "Select All Visible Devices" button to select all devices in the visible list.
-
Enter the tags you want to apply to the selected devices in the tag entry field. Separate multiple tags with commas.
-
Click the "Apply Tags" button to apply the selected tags to the selected devices.
-
If there is an error during the tag application process, an error message box will be displayed.
Note: You can resize the window according to your preference.
This script is released under the GNU General Public License v3.0.