Skip to content

longevity-genie/just-chat-glucosedao

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

just-chat

Make your LLM agent and chat with it simple and fast!

Easy chat with your Agent Setting up your agent and your chat in few clicks

Quick start

Just clone repository and run docker-compose!

git clone https://github.com/winternewt/just-chat.git
docker compose up

And the chat with your agent is ready to go!

You can customize your setup by:

  1. Editing agent_profiles.yaml to customize your agent
  2. Adding tools to /tools directory to empower your agent
  3. Modifying docker-compose.yml for advanced settings (optional)

The only requirement is Docker! We provide detailed installation instructions for both Linux and Windows in the Installation section.

What can you do with Just-Chat?

  • πŸš€ Start chatting with one command ( docker compose up )
  • πŸ€– Customize your AI assistant using a YAML file (can be edited with a text editor)
  • πŸ› οΈ Add new capabilities with Python tools (can add additional functions and libraries)
  • 🌐 Talk with agent with a chat web interface at 0.0.0.0:3000
  • 🐳 Run everything in Docker containers
  • πŸ“¦ Works without Python or Node.js on your system

We use just-agents library to initialize agents from YAML, so most of the modern models ( DeepSeek Reasoner, ChatGPT, LLAMA3.3, etc.) are supported. However, you might need to add your own keys to the environment variables. We provide a free Groq key by default but it is very rate-limited. We recommend getting your own keys, Groq can be a good place to start as it is free and contains many open-source models.

Project Structure

  • agent_profiles.yaml - Configure your agents, their personalities and capabilities, example agents provided.
  • docker-compose.yml - Container orchestration and service configuration
  • /tools/ - Python tools to extend agent capabilities. Contains example tools and instructions for adding your own tools with custom dependencies
  • /models.d/ - ChatUI models data directory (auto-populated at runtime)
  • /data/ - Application data storage if you want to let your agent work with additional data
  • /env/ - Environment configuration files and settings
  • /scripts/ - Utility scripts including Docker installation helpers
  • /volumes/ - Docker volume mounts for persistent storage

Installation

Detailed installation instructions. If you already have Docker and Docker Compose installed, you can probably skip this section.

Install Docker and Docker Compose

If you never installed Docker and Docker Compose, you can use the following instructions to install them. Otherwise you can skip this step. To check if you have Docker and Docker Compose installed, you can use the following commands:

docker --version
docker-compose --version

The commands apply to both Linux (bash) and Windows (PowerShell). After this point instaltion split into Linux and Windows.

Note: in some cases docker-compose is called docker compose (without -). It depends on the version of docker compose you have installed.

On Linux

Install Docker and Docker-compose Standalone

Refer to the official guides:

For Ubuntu users, you can review and use the provided convenience.sh script, executing the code below. Running the script will install Docker and Docker Compose.Otherwise you can follow the steps presented after this command.

./scripts/install_docker_ubuntu.sh

Setup Docker's apt repository

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
#Updates the package lists (apt-get update).
#Installs required packages (ca-certificates and curl) for handling HTTPS-based repositories.

sudo install -m 0755 -d /etc/apt/keyrings
#Creates the /etc/apt/keyrings directory with 0755 permissions (readable and executable by everyone, writable only by the owner).
#This directory is used to store GPG keys securely.

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
#Downloads Docker's official GPG key (used to verify package authenticity) and saves it to /etc/apt/keyrings/docker.asc.
#Changes file permissions so that all users can read it (a+r).


# Add the repository to Apt sources:
#Adds Docker's official repository to the system's package sources.
#dpkg --print-architecture ensures the right package architecture (amd64, arm64, etc.).
#. /etc/os-release && echo "VERSION_CODENAME" dynamically fetches your Ubuntu version codename (e.g., jammy for Ubuntu 22.04).
#Writes the repository URL into /etc/apt/sources.list.d/docker.list.
#> /dev/null discards unnecessary output.

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  sudo apt-get update

Install latest Docker and docker-compose standalone packages

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
#Installs:
#docker-ce (Docker Community Edition engine)
#docker-ce-cli (Docker CLI tools)
#containerd.io (Container runtime for managing containers)
#docker-buildx-plugin (Next-gen build system for Docker)
#docker-compose-plugin (Plugin for Docker Compose v2)

curl -SL https://github.com/docker/compose/releases/download/v2.32.4/docker-compose-linux-$(uname -m) -o /usr/local/bin/docker-compose
#Downloads the latest Docker Compose binary (v2.32.4) from GitHub.
#$(uname -m) ensures that the correct architecture (e.g., x86_64, aarch64) is downloaded.
#Saves it to /usr/local/bin/docker-compose.

chmod +x /usr/local/bin/docker-compose
#Changes file permissions to make it executable.

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
#Creates a symbolic link from /usr/local/bin/docker-compose to /usr/bin/docker-compose.
#This allows you to run Docker Compose commands without specifying the full path.

On Windows

Prerequisites

Before installing Docker on Windows, ensure your system meets the following requirements:

Windows 10 (Pro, Enterprise, Education) Version 1909 or later Windows 11 (any edition) WSL 2 (Windows Subsystem for Linux) enabled (recommended) link here [https://learn.microsoft.com/en-us/windows/wsl/install] Hyper-V enabled (if using Windows 10 Pro/Enterprise) At least 4GB of RAM (recommended)

Though WSL is not strictly required for installation, it is highly recommended for running Linux-based containers efficiently. If you don't want to use WSL during Docker Desktop installation, uncheck the option "Use WSL 2 instead of Hyper-V". Docker will automatically switch to Windows Containers instead of Linux Containers.

Limitations Without WSL: -You cannot run Linux-based containers (unless using a full virtual machine). -Performance is slower because it uses Hyper-V (Windows 10 Pro/Enterprise) or Windows-native virtualization. -Some Docker features (e.g., Kubernetes support) won't work.

Install Docker Desktop

  1. Download Docker Desktop [https://docs.docker.com/desktop/setup/install/windows-install/]

  2. Install Docker Desktop: -Locate the Docker Desktop Installer.exe file in your Downloads folder. -Double-click to start the installation. -Check the required options: --Enable WSL 2 (recommended) --Enable Windows Containers (optional, needed for Windows-based containers). -Click Install and wait for it to complete.

  3. Restart Your PC After installation, restart your computer to apply the changes.

  4. Run Docker Desktop Open Start Menu and search for Docker Desktop. Click to launch Docker. Wait for it to start (it may take a few seconds). You should see the Docker whale 🐳 icon in the taskbar.

  5. Install Docker Compose on Windows Docker Compose v2 is already built into Docker Desktop. If you need standalone Docker Compose v1, install it manually:

Download the latest Docker Compose binary: In powershell

curl -SL "https://github.com/docker/compose/releases/download/v2.32.4/docker-compose-windows-x86_64.exe" -o "C:\Program Files\Docker\Docker\resources\bin\docker-compose.exe"

Add Docker Compose to System Path (if not already). Restart your system.

Docker works best with Windows Subsystem for Linux (WSL 2). Open Docker Desktop, go to Settings β†’ General, and check: Use WSL 2 for Linux containers.

  1. Ensure Docker Starts on Boot (Optional) To make Docker automatically start: Open Docker Desktop. Go to Settings β†’ General. Enable "Start Docker Desktop when you log in".

For both operating systems

Verify installation

sudo docker run hello-world
docker-compose --version

Clone Just-Chat repository

git clone https://github.com/winternewt/just-chat.git

Start the application

docker compose up

Some notes

  1. After the application is started, you can access the chat interface at 0.0.0.0:3000

  2. Key settings in docker-compose.yml:

    • UI Port: 0.0.0.0:3000 (under huggingchat-ui service)
    • Agent Port: 127.0.0.1:9090:8089 (under just-web-agent service)
    • MongoDB Port: 27017 (under chat-mongo service)
    • Container image versions:
      • just-web-agent: ghcr.io/longevity-genie/just-agents:sha-923d91d
      • chat-ui: ghcr.io/longevity-genie/chat-ui/chat-ui:sha-eeb856a
      • mongo: latest
  3. Troubleshooting container conflicts:

    • Check running containers: docker ps
    • Stop conflicting containers:
      cd /path/to/container/directory
      docker compose down

    Note: Depending on your system and installation, you might need to use docker-compose (with dash) instead of docker compose (without dash).

  4. Best practices for container management:

    • Always stop containers when done using either:
      • docker compose down (or docker-compose down)
      • Ctrl+C followed by docker compose down
    • To run in background mode, use:
      • docker compose up -d
    • This prevents port conflicts in future sessions

Acknowledgments

This project is supported by:

HEALES

HEALES - Healthy Life Extension Society

and

IBIMA

IBIMA - Institute for Biostatistics and Informatics in Medicine and Ageing Research

About

Fork of Just-Chat with GlucoseDAO chat assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.3%
  • Shell 17.7%