Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– DevMate

DevMate Logo

Your AI Developer Assistant on Telegram.
Build, debug, learn and code smarterโ€”right from your chat.

Python Docker Telegram Render License Version


โœจ Overview

DevMate is an AI-powered Telegram bot designed to be your personal developer companion.

Instead of switching between websites, terminals, documentation, and AI chat applications, DevMate brings everything directly into Telegram.

Whether you're debugging code, asking programming questions, generating secure passwords, creating hashes, or simply learning a new technology, DevMate is always one message away.

It supports multiple AI providers through a clean abstraction layer, allowing seamless switching between Google Gemini and Ollama without changing the application logic.


๐Ÿš€ Features

  • ๐Ÿค– AI-powered developer assistant
  • ๐Ÿ’ฌ Natural conversational chat
  • ๐Ÿง  Per-chat conversation memory
  • ๐Ÿ”„ Multi-provider AI (Gemini & Ollama)
  • ๐ŸŽ›๏ธ Interactive Telegram UI
  • ๐Ÿงน One-click conversation reset
  • ๐Ÿ” Secure password generation
  • ๐Ÿ”’ SHA-256 hashing
  • ๐Ÿ†” UUID generation
  • ๐Ÿ“ Structured logging
  • ๐Ÿ—๏ธ Modular architecture
  • ๐Ÿณ Docker support
  • โ˜๏ธ Production-ready deployment

๐Ÿ›  Tech Stack

  • Python 3.13
  • python-telegram-bot
  • Google Gemini API
  • Ollama
  • Docker
  • Docker Compose
  • Render
  • Git & GitHub

๐Ÿ— Architecture

                     Telegram

                         โ”‚

                         โ–ผ

               python-telegram-bot

                         โ”‚

          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ–ผ                             โ–ผ

      Command Handlers           Chat Handler

                         โ”‚

                         โ–ผ

                Conversation Memory

                         โ”‚

                         โ–ผ

                 AI Provider Layer

              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ–ผ                     โ–ผ

        Gemini Provider      Ollama Provider

              โ”‚                     โ”‚

              โ–ผ                     โ–ผ

      Google Gemini API       Local LLM

DevMate follows a provider-based architecture where Telegram handlers remain completely independent of the underlying AI model. The AI provider layer routes requests to the configured backend, making it easy to add new providers in the future.


๐Ÿง  AI Providers

Switch between providers using environment variables.

Gemini

AI_PROVIDER=gemini

Ollama

AI_PROVIDER=ollama
OLLAMA_MODEL=llama3.2:3b

๐Ÿ“‚ Project Structure

DevMate/
โ”‚
โ”œโ”€โ”€ handlers/
โ”œโ”€โ”€ services/
โ”œโ”€โ”€ prompts/
โ”œโ”€โ”€ utils/
โ”œโ”€โ”€ config.py
โ”œโ”€โ”€ logger.py
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ health_server.py
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ compose.yaml
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

๐Ÿš€ Getting Started

Clone

git clone https://github.com/dev-krish/DevMate.git

cd DevMate

Create Virtual Environment

python -m venv .venv

Linux/macOS

source .venv/bin/activate

Windows

.venv\Scripts\activate

Install Dependencies

pip install -r requirements.txt

Configure Environment

cp .env.example .env

Example:

BOT_TOKEN=your_bot_token

AI_PROVIDER=gemini

GEMINI_API_KEY=your_api_key

OLLAMA_MODEL=llama3.2:3b

Run

python main.py

๐Ÿณ Docker

docker compose up --build

โ˜ Deployment

DevMate can be deployed using Docker on:

  • Render
  • Railway
  • VPS
  • AWS EC2
  • Oracle Cloud

๐Ÿ›ฃ Roadmap

โœ… v0.2

  • AI Provider Abstraction
  • Conversation Memory
  • Interactive UI
  • Gemini Support
  • Ollama Support
  • Docker Deployment
  • Render Deployment

๐Ÿšง v0.3

  • AI Developer Commands
  • Code Review
  • Debug Assistant
  • Commit Message Generator
  • GitHub Integration

๐Ÿ”ฎ Future

  • QR Code Generator
  • Base64 Utilities
  • JSON Formatter
  • Plugin System
  • Conversation Persistence
  • RAG Support

๐Ÿค Contributing

Contributions, feature requests and bug reports are always welcome.

If you'd like to improve DevMate, feel free to fork the repository and submit a pull request.


๐Ÿ“„ License

This project is licensed under the MIT License.


Made with โค๏ธ by Krishnendu Dutta

If you found this project useful, consider giving it a โญ on GitHub!

About

๐Ÿค– DevMate is a developer-focused Telegram bot built with Python and Docker. It provides useful utilities like secure password generation, SHA-256 hashing, UUID generation, and more. Designed with a modular architecture and deployed on Render, DevMate is continuously evolving with new developer tools and AI-powered features.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages