Skip to content

Telegram bot to manage Outline VPN servers.

License

Notifications You must be signed in to change notification settings

MahbodHastam/outline-manager-bot

Repository files navigation


Outline Manager Bot

A Telegram bot to manage keys on your Outline VPN server.


Table of Contents


About The Project

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.

Getting Started

Before you begin, make sure you have the following:

  1. An Outline Server: You need a running Outline server.
  2. Outline API URL: You can get this from your Outline Manager desktop app. Go to Server Settings and copy the Management API URL.
  3. A Telegram Bot Token: Create a new bot by talking to @BotFather on Telegram and get your Bot Token.

Installation

  1. Clone the repository:

    git clone https://github.com/MahbodHastam/outline-manager-bot.git
    cd outline-manager-bot
  2. Create and configure your environment file:

    cp .env.example .env
    vim .env
  3. Install the dependencies and build the bot:

    pnpm install
    pnpm build
  4. Run the bot using tmux:

    tmux
    pnpm start
  5. Press CTRL+A CTRL+D to detach the screen

Configuration

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

About

Telegram bot to manage Outline VPN servers.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project