This project provides a Telegram bot that acts as a user-friendly interface for an Outline VPN server. It automates the process of creating, deleting, and managing access keys, making it incredibly simple for an administrator to share VPN access without needing to manually use the Outline Manager desktop application for every user.
Before you begin, make sure you have the following:
- An Outline Server: You need a running Outline server.
- Outline API URL: You can get this from your Outline Manager desktop app. Go to
Server Settingsand copy theManagement API URL. - A Telegram Bot Token: Create a new bot by talking to @BotFather on Telegram and get your
Bot Token.
-
Clone the repository:
git clone https://github.com/MahbodHastam/outline-manager-bot.git cd outline-manager-bot -
Create and configure your environment file:
cp .env.example .env vim .env
-
Install the dependencies and build the bot:
pnpm install pnpm build
-
Run the bot using tmux:
tmux pnpm start
-
Press
CTRL+A CTRL+Dto detach the screen
| Variable | Description | Example |
|---|---|---|
BOT_TOKEN |
Required. The token for your Telegram bot, obtained from @BotFather. | 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 |
DATABASE_URL |
Required. Your database path (relative to prisma directory). | file:./database.db |