Practical overview
When it fits
Use it when you can configure and run the Discord bot and the model services, and want to issue those services' chat or image-generation requests from Discord slash commands.
Who it is for
- Discord server operators who want slash-command access to Ollama models.
- People running Ollama and AUTOMATIC1111 who want chat and image-generation workflows in Discord.
Documented uses
- Chat with an Ollama model through Discord's `/chat` command.
- Send prompts for text generation with `/generate`.
- Generate images through AUTOMATIC1111 with `/text2img`.
- Keep per-user, per-channel conversation history in SQLite and clear it with `/clearhistory`.
- Use a vision-capable Ollama model to inspect an image attached to a chat or generation request.
Requirements & limits
The repository is public. The documented setup requires a Discord bot application and token, plus locally configured model services and runtime dependencies.
- Node.js 22.13+ and pnpm 12+ are specified for the documented source setup.
- Ollama must be running with a downloaded model; vision input requires a vision-capable model.
- Image generation requires AUTOMATIC1111 Stable Diffusion and its API-enabled server.
- Chat history is stored in SQLite, separately per user and channel, with the last 50 messages retained.
- Each connected Ollama or Stable Diffusion server handles one request at a time; requests can queue and may be rejected after the configured wait timeout.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the bot for Ollama chat
Prepare the documented Node.js installation to run Discord AI Bot with an Ollama model.
Before you start
- Node.js 22.13 or newer
- pnpm 12 or newer
- Ollama and a downloaded model
- A Discord application and bot token
Steps
Install Node.js and pnpm, then install Ollama.
Download a model with Ollama and start the service using
ollama serve.Create a Discord bot, invite it with the documented message and channel permissions, and configure
.envwith its token and model.Install project dependencies with
pnpm i, then start the bot withpnpm start.
Expected outcome
The bot is started and its documented Discord slash commands can be used, including `/chat` and `/generate`.
Guide limitations
- This setup recipe does not cover Stable Diffusion image generation; that requires separately installing AUTOMATIC1111 and starting its API.
- The README's Docker setup has additional host-network configuration requirements.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- 238SAMIxD/discord-ai-bot · Official homepage title · retained in its source language

