AHMEDX

← Bot Catalog

Levanter

Coming Soon

WhatsApp MD bot · THE-AHMEXD/levanter-deploy

A well-known multi-device WhatsApp bot with a mature command system, group protection tools, sticker features and plugin support.

Levanter is not open for pairing on AHMED X yet — this page tracks what it does and what it will bring when it launches. AHMED XMD is live now and pairs in under a minute.

Levanter is an open-source WhatsApp bot created by lyfe00011, designed for messaging automation, group management, media tools, custom plugins and multi-session support. It also includes an optional API mode for developers who want to connect WhatsApp messaging with their own applications.

Two things set Levanter apart. It can run several WhatsApp accounts from a single instance, each with its own session, and its plugin system lets developers add new commands without changing the core bot. Its responses work in many languages, including English, Urdu, Hindi, Spanish, French, Bengali, Indonesian, Turkish, Russian, Arabic, Malayalam and Chinese, set with the BOT_LANG option.

With AHMED X, you deploy Levanter through a guided process instead of setting up the whole project on your own server. Generate a Session ID on Levanter’s official session page, enter it in the deployment form on AHMED X, configure the supported options, and follow the deployment status. AHMED X runs Levanter from its own maintained copy of the project, so the bot you deploy always comes from a source AHMED X controls.

Features

What Levanter does

  • Multi-Session Support: Run several WhatsApp accounts from one bot instance, each addressed by its own session
  • Plugin-Based Commands: Extend the bot with built-in and external plugins that add new commands and behavior
  • Group Moderation: Anti-link, anti-spam and anti-word protection, warning systems, and welcome or goodbye messages
  • Media Tools: Stickers, media conversions, downloads and sending supported media types through bot and plugin commands
  • Optional Messaging API: Send messages and receive incoming messages through webhooks, and connect the bot to your own apps
  • Language Configuration: Responses in many languages, including Urdu and Hindi, selected with the BOT_LANG option
  • Custom Configuration: Environment variables control the command prefix, online presence, warnings, upload limits and more
  • Open-Source Code: The full source is public on GitHub, so developers can review it and build their own plugins

Session ID

How to Get a Levanter Session ID

A Session ID is the credential that links the bot to your WhatsApp number, and Levanter’s official session page generates it. Make sure you are linking the intended WhatsApp account and that you understand which bot instance will use the resulting session.

  • Never publish it: do not post your Session ID in a public chat, a GitHub repository, a screenshot or a social media post
  • Share it with no one: a session credential can allow software to access your WhatsApp account, so treat it like a password
  • If it may be exposed: disconnect the affected linked device in WhatsApp settings and generate a fresh session

01

Open the official session page

Visit levanter.site/session, the official Levanter session generator.

02

Follow the pairing instructions

Use the options displayed on the official page to connect your WhatsApp account. The available authentication method and exact steps depend on the current interface.

03

Complete WhatsApp linking

If the page requests a pairing code or QR-based authentication, follow its on-screen instructions in WhatsApp’s linked-device settings.

04

Copy your Session ID

Once the session process is complete, copy the Session ID generated by the service and keep it private.

05

Open Levanter on AHMED X

Paste your Session ID into the designated field on the AHMED X deployment form, configure the available settings, and follow the deployment process.

Configuration

Levanter Environment Variables Explained

Environment variables control how Levanter behaves without rewriting the bot’s source code. The project documents these variables in its configuration and deployment information. Availability and accepted values can depend on the current version and deployment interface, and the complete reference lives on the official environment variables page.

You do not need to customize every variable. Start with the required session credential and any fields marked as required, then change optional settings for your use case: a particular command prefix with PREFIX, supported responses in Urdu through the language options, or the API settings if you are a developer using the optional API. Never paste API keys or session credentials into public documentation.

VariablePurpose
SESSION_IDSupplies the WhatsApp session credential
PREFIXSets the command prefix used by supported commands
STICKER_PACKNAMEConfigures the sticker pack name where supported
ALWAYS_ONLINEControls the configured online-presence behavior
BOT_LANGSelects a supported bot response language
WARN_LIMITSets the configured warning threshold
FORCE_LOGOUTControls the corresponding logout behavior
MAX_UPLOADConfigures the upload limit used by the project
REJECT_CALLControls the documented call-rejection option
SUDOConfigures privileged user access according to the implementation
TZSets the configured time zone
VPSIndicates the server environment setting used by the project
AUTO_STATUS_VIEWControls the automatic status-view option
SEND_READControls the configured read-status behavior
AJOINControls the project’s automatic group-join option where implemented
DISABLE_START_MESSAGEControls whether the startup message is disabled
PERSONAL_MESSAGEConfigures the supported personal-message value
API_MODESelects whether the optional API is disabled, enabled alongside the bot, or used in API-only mode
API_KEYDefines the secret key used to authenticate API requests
PORTConfigures the API server port
API_PUBLIC_URLDefines the public base URL used for API-related links when required
API_WEBHOOK_URLDefines the optional destination for incoming-message webhooks

Plugins

Levanter Plugins: Browse, Install, and Customize

One of Levanter’s most important features is its plugin-based architecture. Plugins introduce commands and additional behavior, so the bot adapts to different use cases without every feature being part of the core command set. The examples below are plugin use cases, not a guarantee that every plugin is present in the default installation.

You can also write your own. Levanter’s plugin-development guide documents a structure where a plugin defines a command pattern, a description, a category and an asynchronous handler. In the example, pattern defines the command pattern, desc the description shown for the command, type its category, and onlyGroup whether it is restricted to group chats. The handler receives the message, the text captured by the pattern, and the session context. Review any custom plugin before installing it: a plugin can access messages and act with the bot’s permissions, so only use code from trusted sources.

  • General utility commands
  • Message responses
  • Media handling
  • Group-management tools
  • Session-aware commands
  • Custom commands developed for a specific workflow

01

Open the plugin dashboard

Go to levanter.site/plugin and review the plugins and descriptions available there.

02

Pick what matches your need

Identify the plugin that matches your requirements instead of installing everything.

03

Follow the platform instructions

Install it by following the instructions provided by the plugin dashboard and your deployment platform.

04

Test it in a suitable chat

Try the installed functionality in a test chat before relying on it in your groups.

const { bot } = require('../lib/');

bot(
  {
    pattern: 'hello ?(.*)',
    desc: 'Send a simple greeting',
    type: 'misc',
    onlyGroup: false,
  },
  async (message, match, ctx) => {
    await message.send('Hello! Levanter is running.');
  }
);

For Developers

Levanter API Mode for Developers

Beyond chat commands, Levanter’s repository documents an optional API mode for applications that need programmatic access to WhatsApp messaging. API mode is optional and is not enabled automatically on every deployment: it needs suitable configuration, and requests are authenticated with your API key in the x-api-key header. Read the GitHub README for endpoint definitions, request examples and current limitations.

  • API_MODE=false: normal bot operation with the API disabled
  • API_MODE=true: bot commands and the API are enabled together
  • API_MODE=only: API-only operation without the usual bot commands
  • POST /api/send: send text and supported media types through the API
  • Webhooks: incoming-message information is posted to your configured webhook URL, with media metadata where applicable
  • GET /api/sessions: list connected sessions, including connection status
  • Media endpoint: retrieve supported media associated with received messages

Self-Hosting

How to Run Levanter Manually

Users who prefer self-hosting can follow the project’s official deployment guide at levanter.site/deploy. The GitHub README documents a manual Ubuntu setup using Node.js 20.x, Git, FFmpeg, Yarn and PM2. The repository’s documented commands and requirements may change, so follow the latest instructions instead of copied commands from an older version. For a guided workflow, the AHMED X Levanter page is the recommended starting point.

01

Prepare the environment

Set up a compatible Ubuntu environment.

02

Install the requirements

Install the required system packages and the documented Node.js version.

03

Add Yarn and a process manager

Install Yarn and PM2 if the guide requires them.

04

Clone the repository

Clone the official Levanter repository from GitHub.

05

Install dependencies

Install the project’s packages with the documented commands.

06

Configure the bot

Set the required environment variables, starting with your Session ID.

07

Start the bot

Run it using the documented process manager flow.

08

Check the connection

Review the logs and confirm the WhatsApp session connects.

Help

Levanter Troubleshooting Guide

  • Session ID is invalid: check that you copied the complete Session ID and that it has not been revoked or replaced, and generate a new credential if necessary
  • Deployment does not start: review the status and error details provided by AHMED X, and check the required configuration fields
  • Bot connects but does not respond: check the command prefix, whether the requested command or plugin is installed, and whether the feature is supported in the deployed version
  • Group commands do not work: verify the connected WhatsApp account has the necessary group permissions and that the moderation feature is configured correctly
  • A plugin does not load: check the plugin’s code structure, file location and dependencies, and review the deployment logs for errors
  • Media commands fail: check whether the relevant plugin is installed, whether the requested service is supported, and whether the environment meets the plugin’s requirements
  • API requests return an authentication error: verify the configured API key, send it in the x-api-key header, and confirm API mode is enabled
  • Bot stops responding after deployment: review the deployment status, server logs, session connection and resource limits

Safety

Is Levanter Safe to Use?

Levanter is an open-source project, which allows developers to inspect its source code. Open-source availability alone does not guarantee that every plugin, deployment or hosted instance is secure. A bot connected to a WhatsApp account may process personal messages and group activity, so use it responsibly and only install code you trust.

  • Use a trusted session-generation process, the official session page
  • Keep Session IDs and API keys private at all times
  • Review custom plugins before installing them
  • Understand which WhatsApp messages and account functions the bot can access
  • Limit privileged-user settings to trusted accounts
  • Follow WhatsApp’s applicable terms and privacy requirements

Community

Creator links

FAQ

Levanter questions

Levanter is an open-source WhatsApp automation bot with a plugin system, group moderation, media tools, multi-session support, and an optional API mode for developers.

Open the Levanter page on AHMED X, generate a Session ID through the official session page, enter it in the deployment form, and follow the instructions shown by the platform. AHMED X handles the hosting for free, with no coding and no server to manage yourself.

Use the official session page at levanter.site/session. Follow the authentication instructions shown on the page and keep the generated credential private: it is the key that links the bot to your WhatsApp number.

Levanter is an open-source WhatsApp MD user bot created by lyfe00011 and published on GitHub. It is built on the Baileys library, and its README credits WhatsAsena by Yusuf Usta as its foundation. On AHMED X you can deploy it free with a pairing code.

Yes. The project documents a plugin-development interface for creating custom commands and handlers. The plugin development guide on the project wiki shows the supported structure.

Visit the official plugin dashboard at levanter.site/plugin. Levanter plugins are also listed on AHMED X on the Levanter plugins page, where you can copy a plugin link and like the ones you use.

The project documents a PREFIX environment variable. Set it in your configuration and use the matching prefix when running commands.

Yes. Urdu is among the languages the repository documents. Review the language settings and set BOT_LANG to the supported value for Urdu.

Yes. The project documents multi-session support: several WhatsApp accounts can run from one bot instance, each addressed by its own session. How many sessions a deployment can run depends on the configuration and platform limits.

Yes, through its optional API mode and webhook support, built for developers who want to integrate messaging with another application. It requires the appropriate configuration and authentication.

The full table is on this page, and the official documentation is at levanter.site/env-vars. Review the variable descriptions before configuring the bot.

Levanter’s source code is publicly available on GitHub, and deploying it on AHMED X is free. Hosting or external services you arrange yourself may have separate costs, so check their terms before choosing a deployment method.

The official repository is github.com/lyfe00011/levanter, where you can review the code, installation instructions and documented functionality. AHMED X deploys Levanter from its own maintained copy at github.com/AHMED-XMD/levanter.

Want a bot live on your number right now?

AHMED XMD pairs free in under a minute — no account, no server, no coding.

Pair AHMED XMD