mirror of
https://github.com/kevinthedang/discord-ollama.git
synced 2026-09-23 17:08:58 -04:00
master
* node 24 and vulnerabilities * ready is clientReady * better about section
About
Discord Ollama is a Discord bot that lets users interact with locally hosted Ollama language models directly from Discord.
The bot supports model management, streamed responses, conversation history, private threads, and configurable server controls. Because Ollama runs locally, you retain control over the models and data used by the bot.
See the setup guides to get started.
Documentation
These are guides to the features and capabilities of this app.
Environment Setup
- Clone this repo using
git clone https://github.com/kevinthedang/discord-ollama.gitor just use GitHub Desktop to clone the repo. - You will need a
.envfile in the root of the project directory with the bot's token. There is a.env.sampleis provided for you as a reference for what environment variables.- For example,
CLIENT_TOKEN = [Bot Token] - The LLM server is configured with
LLM_ENDPOINT/LLM_PORT(OLLAMA_IP/OLLAMA_PORTstill work as deprecated aliases).
- For example,
- Please refer to the docs for bot setup.
- Creating a Discord App
- Local Machine Setup
- Docker Setup for Servers and Local Machines
- Nvidia is recommended for now, but support for other GPUs should be development.
- Local use is not recommended.
Resources
- NodeJS
- This project runs on
lts\jodand above. - This project requires the use of npm version
10.9.0or above.
- This project runs on
- Ollama
- Ollama Docker Image
- llmman also serves the Ollama API (on port
17434) and can be used in its place, see Local Machine Setup.
- Discord.js Docs
- Setting up Docker (Ubuntu 20.04)
Acknowledgement
discord-ollama © 2023 by Kevin Dang is licensed under CC BY 4.0
Languages
TypeScript
99.5%
Dockerfile
0.5%
