---
slug: "lastchat"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/cocolalilal/lastchat@master/README.md"
repo: "https://github.com/cocolalilal/lastchat"
source_file: "README.md"
branch: "master"
---
# LastChat

<div align="center">
  <img src="docs/LastChat_icon.png" alt="LastChat Icon" width="128" height="128" />
  <br><br>
  <a href="https://www.buymeacoffee.com/cocolalilal"><img src="https://img.buymeacoffee.com/button-api/?text=Support%20the%20development!&slug=cocolalilal&button_colour=005143&font_colour=ffffff&font_family=Bree&outline_colour=ffffff&coffee_colour=FFDD00" alt="Buy Me A Coffee" width="220" /></a> 
  <br><br>
</div>

**LastChat** is a feature-rich AI assistant application for Android. It is a fork of [RikkaHub](https://github.com/re-ovo/RikkaHub), modified using AI agents

This project aims to provide a privacy-focused and highly personalized AI chat experience on Android

## Gallery

<table align="center" style="border: none;">
  <tr>
    <td align="center" style="border: none; width: 50%;">
      <img src="docs/1.4.3_chat.jpg" alt="Chat Interface" width="100%" />
    </td>
    <td align="center" style="border: none; width: 50%;">
      <img src="docs/1.4.3_stats.jpg" alt="Home Screen" width="100%" />
    </td>
  </tr>
  <tr>
    <td align="center" style="border: none; width: 50%;">
      <img src="docs/1.3.4_providers_use.gif" alt="providers page" width="100%" />
    </td>
    <td align="center" style="border: none; width: 50%;">
      <img src="docs/1.4.3_memory.jpg" alt="Memory Settings" width="100%" />
    </td>
  </tr>
</table>

## ✨ Key Features

### Advanced AI Capabilities
* **Multi-Provider Support**: Provider presets make it easier to get up and running. There's support for custom providers too!
* **RAG Memory**: Features a RAG-based memory system. Assistants can "remember" details from past conversations using embeddings.
* **Multi-Modal Inputs**: Interact using Text, Images, Video, and Audio.

### Tools & Integrations
* **Python**: Built-in Python Engine, powered by Workspaces/PRoot-based Linux environments.
* **JavaScript**: Built-in **JavaScript Engine** (QuickJS)
* **Web Search**: Integrated web search capabilities to fetch real-time information.
* **MCP**: Support for MCP servers.

### Assistant Management
* **Multiple Personas**: Create, manage, and switch between unlimited custom assistants.
* **Tagging System**: Organize assistants with custom tags.
* **Import/Export**: Easily share or backup your assistant configurations.

### Modern & Fluid UI
* **Material You**: The app was designed with Material You 3 Expressive in mind.
* **Rich Rendering**: Markdown support with LaTeX for math, code highlighting, and tables.

### Additional Modules
* **Image Generation**: Dedicated interface for generating images using supported models.
* **Text-to-Speech (TTS)**: Supports system TTS or other providers.

### Privacy & Data
* **Local-First**: Chat history and vector memory are stored locally on your device.
* **WebDAV Backup**: Securely sync and backup your data to any WebDAV-compatible server.

## Built With
* **Kotlin** & **Jetpack Compose**
* **Koin** for Dependency Injection
* **Room** & **DataStore** for persistence
* **WorkManager** & **AlarmManager** for reliable background tasks
* **QuickJS** for JavaScript integration

## Credits
* Original Project: [RikkaHub](https://github.com/re-ovo/RikkaHub)
* Image cropper is an edited version of the image editor found in [LavenderPhotos](https://github.com/kaii-lb/LavenderPhotos)
* Made with **AI Agents** based on:
    * **Claude**
    * **Codex**
    * **Antigravity**

##
*Note: This project is a fork and may contain modifications or features not present in the original RikkaHub repository.*
