Discord bot for LLM access
Top 53.5% on sourcepulse
llmcord transforms Discord into a collaborative frontend for interacting with Large Language Models (LLMs). It allows users to chat with various LLMs, both locally hosted and remote, directly within Discord channels and direct messages, fostering shared AI experiences.
How It Works
The bot leverages Discord's reply-based messaging system to build conversational context. Users can initiate conversations by mentioning the bot or reply to any message to include it in a thread. This asynchronous, event-driven architecture efficiently manages conversations, supports branching, and automatically chains consecutive messages from the same user. It's designed for broad compatibility with any OpenAI-compatible API endpoint.
Quick Start & Requirements
pip install -U -r requirements.txt
then python llmcord.py
or use docker compose up
.config.yaml
file detailing Discord bot credentials and LLM provider settings (OpenAI, Ollama, LM Studio, vLLM, Groq, etc.).Highlighted Details
Maintenance & Community
The project is actively maintained by jakobdylanc. Contributions via Pull Requests are welcome.
Licensing & Compatibility
The project appears to be licensed under the MIT License, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
User identity awareness (setting message author names) is limited to OpenAI and xAI APIs due to their specific API parameter support. The max_text
and max_messages
configuration parameters may require tuning based on Discord's message limits and desired conversation history length.
2 weeks ago
1 day