Teldrive Free Unlimited Cloud Storage
Teldrive is a free and open-source alternative to Google Drive, Dropbox, OneDrive, etc. It is a self-hosted file storage system that allows us to store our files in the cloud and share them with others. Teldrive uses the Telegram API for the free unlimited cloud storage.
Prerequisites
Before starting, make sure you have active Telegram and Supabase accounts.
Creating a Telegram application
Follow the official guide to create a new Telegram application. After creating the application, you will get an APP api_id and APP api_hash. Copy these values and save them somewhere safe.
Creating a Telegram bot
Create a new Telegram bot by following the official guide. After creating the bot, you will get a BOT token. Copy this value and save it somewhere safe.
Tip
Create at least a couple of bots for better teldrive performance.
Creating a Supabase project
- Go to Supabase Dashboard and create a new project.
- After creating the project, we need to reveal the
connections string URI, click on theconnectbutton on the top right corner of the window.
- Copy the
connection string URIand save it somewhere safe. Thepasswordis the previouspasswordwe used when creating the project.
Setting up Teldrive
The setup process a quite simple. Just follow the steps below:
-
Download the
teldrivebinary for your system from the release page. -
Create a
config.tomlfile in the same directory as theteldrivebinary.
[db]
data-source = "postgresql://postgres.[PROJECT-ID]:[YOUR-PASSWORD]@aws-.../postgres" # (1)!
prepare-stmt = false
[db.pool]
enable = false
[jwt]
allowed-users = ["YOUR-TELEGRAM-USERNAME"]
secret = "YOUR-SECRET" # (2)!
[tg]
app-id = 123456789 # (3)!
app-hash = "abcdefghijklmnopqrstuvwxyz" # (4)!
session-file = "session.db"
-
Replace
[PROJECT-ID]and[YOUR-PASSWORD]with the values you got previously. -
Generate a random string for
[YOUR-SECRET]from here. -
Replace with your Telegram
app_idfrom the previous step. -
Replace with your Telegram
app_hashfrom the previous step.
Note
For more information about the configuration file, check the official documentation
Running Teldrive
Once you have completed the configuration and the installation, you can start teldrive by running the following command:
- Windows users should use
.\teldrive.exe run -c config.tomlinstead.
Linux and macOS
If you are using Linux or MacOS, you need to make the binary executable first. You can do this by running the following command:
Now, you can access your Teldrive instance by visiting http://localhost:8080 in your browser.
Account setup
After starting teldrive, login using your Telegram credentials.
Go to the Settings, and click on the Account tab.
- Add the
Telegram botsthat previously created. You can add as many bots as you want. - Select the
Telegram channelthatTeldrivewill use to save your files.
That's it! Now you have a working Teldrive instance.




