Back up a Slack workspace to a GitHub repository as an AI-readable vault.
pip install threadvault==0.1.0 Copy PIP instructions
ThreadVault backs up a Slack workspace to a private GitHub repository, called the vault. The vault keeps the workspace in the JSON format of Slack's export, and as Markdown transcripts that people and AI services can read.
ThreadVault runs on your own computer as an internal Slack app. It connects to Slack with Socket Mode, so it needs no public address, and it talks only to Slack and GitHub.
Direct messages and Slack Connect channels are not backed up.
uv tool install threadvault Set up threadvault setup Setup walks you through four steps and writes your answers to the settings file:
To change an answer, run setup again. A question that already has an answer shows it in brackets, or shows [keep current] for a token; press Enter to keep it. Creating the Slack app and Registering the GitHub App explain how to do the first two steps by hand.
With the Slack app running, open ThreadVault in Slack and go to its Home tab:
Selecting Whole history again in Back up now fetches every channel again from the start. It deletes nothing from the vault.
Setup does not ask for admins. To add them, write their member IDs to THREADVAULT_ADMIN_IDS in the settings file, separated by commas, then restart the Slack app:
THREADVAULT_ADMIN_IDS=U0123ABCDE,U0456FGHIJ The owner and the admins allowed by the owner get a direct message when GitHub is connected or disconnected, when the destination changes and when a backup fails.
ThreadVault reads threadvault.env in your configuration folder. Environment variables take precedence over the file.
Restart the Slack app after you change the settings file.
App Home and the daily backups work only while the Slack app runs. If setup registered it to start at login, it is already running, and it starts again whenever it stops with an error; its output goes to start.log in the data folder. Otherwise, run threadvault start and keep it running.
Run only one Slack app for a workspace. ThreadVault refuses to start twice with the same data folder, but if it ran on two computers, Slack would split the events and the button presses between them.
The daily backup needs the computer to be on. If it was asleep or off at that time, the backup runs soon after the Slack app runs again.
To restart the Slack app, for example after changing the settings file:
To stop the Slack app and stop it from starting at login, run threadvault stop.
To update ThreadVault, run uv tool upgrade threadvault, then restart the Slack app. When a new version changes the manifest, also update the Slack app as Update the app describes.
To uninstall ThreadVault, stop the Slack app and its start at login as above, or stop threadvault start with Ctrl+C, then run uv tool uninstall threadvault. The settings file and the data folder stay, so delete them if you no longer need them. The Slack app, the GitHub App and the vault stay too, until you delete them in Slack and GitHub.
README.md Introduction, written once; edit it freely .gitattributes .threadvault/state.json State of the backups raw/ The workspace in the JSON format of Slack's export users.json channels.json groups.json / .json Messages of one day in UTC transcripts/ The messages as Markdown index.md Layout of the vault and list of the channels / .md Messages of one month, with thread replies under their parent attachments/ / / Attached files, linked from the Markdown The first backup of a channel fetches all of its history that Slack provides, and commits and pushes channel by channel. Later backups fetch the recent days again. They also catch replies to older threads and edits and deletions of older messages, which the Slack app records as they happen.
When a message disappears from Slack, the next backup removes it from the files of the vault, while the git history keeps it. Messages older than 83 days stay in the vault, so that messages that Slack no longer shows are not taken for deleted ones.
ThreadVault is released under the MIT License. See LICENSE.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.




