Skip to main content

Introduction

Lavalink is a standalone audio sending node for Discord bots. It allows you to stream high-quality music to Discord without consuming your bot’s resources.
1

Get Lavalink JAR

Download the latest Lavalink release from the official GitHub releases. Download the Lavalink.jar file.
2

Create Configuration File

Create an application.yml file with your Lavalink configuration.

Configuration File

Create an application.yml file:
application.yml
Important: Set the port to 80 for Shard Cloud hosting.

Shard Cloud Configuration

Create a .shardcloud file:
.shardcloud
The SUBDOMAIN gives you a URL like my-lavalink.shardweb.app to connect your bot.

Deploying

1

Prepare Files

Create a folder with: - Lavalink.jar - application.yml - .shardcloud
2

Create ZIP Archive

Compress the folder into a .zip file.
3

Upload to Shard Cloud

Go to Shard Cloud Dashboard and upload your ZIP file.

Connecting Your Bot

When connecting to your Lavalink server from your Discord bot:
  • Host: my-lavalink.shardweb.app
  • Port: 443 (SSL/HTTPS)
  • Password: Your configured password
  • Secure: true

Example Connection (discord.js + Shoukaku)

Always use port 443 and secure: true when connecting to your Lavalink on Shard Cloud.

Additional Resources

Troubleshooting

  • Verify the password matches - Use port 443 with secure/SSL enabled - Check that your Lavalink server is running
Increase the MEMORY value in your .shardcloud config (minimum 512MB recommended).
Check your application.yml to ensure the required sources are enabled.