Nyx is an AI assistant for Discord. Mention Nyx in any chat to ask questions, explain messages, summarize conversations, generate replies, or create images instantly. It supports servers, bot DMs, and group DMs with slash commands, message actions, smart context awareness, and fast, reliable responses.
Add it to your discord: Nyx - Discord
- Install dependencies:
bun install-
Configure environment variables by copying
.env.exampleto.envand filling values: -
DISCORD_TOKEN -
CLIENT_ID -
ALABS_API_KEY -
ALABS_AI_BASE_URL -
OPENAI_KEY(optional fallback) -
GEMINI_API_KEY,GEMINI_API_KEY_2, ... (optional fallback keys) -
Start the bot:
bun run startbun run check— TypeScript typecheckbun run build:dist— Build distributable output
- Do not commit
.envor secrets. - The ALABS AI SDK is OpenAI-API Compliant, so you should be able to use OpenAI AI SDK without changing the code.
The Nyx Code is licensed under CC-BY-NC-4.0
Make with love by Aarav Mehta