kevinthedang/discord-ollama

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.

192

stars

99

commits

TypeScript

primary language

Sep 5, 2026

updated

discord
discord-bot
discord-js
docker
ollama
typescript

README

ollama+discord

Discord Ollama Integration

Ollama as your Discord AI Assistant

License Release Builds Tests

About/Goals

Ollama is an AI model management tool that allows users to install and use custom large language models locally.
The project aims to:

  • Create a Discord bot that will utilize Ollama and chat to chat with users!
    • User and Server Preferences
    • Message Persistance
    • Containerization with Docker
    • Slash Commands Compatible
      • Summary Command
      • Model Info Command
      • List Models Command
      • Pull Model Command
      • Switch Model Command
      • Delete Model Command
      • Create Thread Command
      • Create Private Thread Command
      • Message Stream Command
      • Change Message History Size Command
      • Clear Channel History Command (User Only)
      • Administrator Role Compatible
    • Generated Token Length Handling for >2000
      • Token Length Handling of any message size
    • Multi-User Chat Generation - This was built in from Ollama v0.2.1+
    • Ollama Tool Support Implementation
    • Enhanced Channel Context Awareness
    • Improved User Replied Triggers

Further, Ollama provides the functionality to utilize custom models or provide context for the top-layer of any model available through the Ollama model library.

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.git or just use GitHub Desktop to clone the repo.
  • You will need a .env file in the root of the project directory with the bot's token. There is a .env.sample is provided for you as a reference for what environment variables.
    • For example, CLIENT_TOKEN = [Bot Token]
  • Please refer to the docs for bot setup.

Resources

Acknowledgement

discord-ollama © 2023 by Kevin Dang is licensed under CC BY 4.0

Contributors

kevinthedang

84 commits

JT2M0L3Y

15 commits

kevinthedang/discord-ollama

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.

192

stars

99

commits

TypeScript

primary language

Sep 5, 2026

updated

discord
discord-bot
discord-js
docker
ollama
typescript

README

ollama+discord

Discord Ollama Integration

Ollama as your Discord AI Assistant

License Release Builds Tests

About/Goals

Ollama is an AI model management tool that allows users to install and use custom large language models locally.
The project aims to:

  • Create a Discord bot that will utilize Ollama and chat to chat with users!
    • User and Server Preferences
    • Message Persistance
    • Containerization with Docker
    • Slash Commands Compatible
      • Summary Command
      • Model Info Command
      • List Models Command
      • Pull Model Command
      • Switch Model Command
      • Delete Model Command
      • Create Thread Command
      • Create Private Thread Command
      • Message Stream Command
      • Change Message History Size Command
      • Clear Channel History Command (User Only)
      • Administrator Role Compatible
    • Generated Token Length Handling for >2000
      • Token Length Handling of any message size
    • Multi-User Chat Generation - This was built in from Ollama v0.2.1+
    • Ollama Tool Support Implementation
    • Enhanced Channel Context Awareness
    • Improved User Replied Triggers

Further, Ollama provides the functionality to utilize custom models or provide context for the top-layer of any model available through the Ollama model library.

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.git or just use GitHub Desktop to clone the repo.
  • You will need a .env file in the root of the project directory with the bot's token. There is a .env.sample is provided for you as a reference for what environment variables.
    • For example, CLIENT_TOKEN = [Bot Token]
  • Please refer to the docs for bot setup.

Resources

Acknowledgement

discord-ollama © 2023 by Kevin Dang is licensed under CC BY 4.0

Contributors

kevinthedang

84 commits

JT2M0L3Y

15 commits

Languages

TypeScript

99.5%