whatisgithub

What is lianyu-app?

sylvara-lin/lianyu-app — explained in plain English

Analysis updated 2026-05-18

167KotlinAudience · developerComplexity · 3/5Setup · moderate

In one sentence

An open source Android framework for building an AI companion chat app, with chat, character profiles, and memory already built in.

Mindmap

mindmap
  root((LianYu))
    What it does
      AI companion chat
      Character memory
      Group chat
    Tech stack
      Kotlin
      Jetpack Compose
      Room database
    Use cases
      Build companion app
      Learn Android architecture
      Connect AI providers
    Audience
      Android developers
      AI app builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a custom AI companion or character chat app for Android without starting from scratch.

USE CASE 2

Learn how a large modular Android app is organized using Kotlin and Jetpack Compose.

USE CASE 3

Connect your own AI provider, such as OpenAI, Anthropic, or Gemini, to a working chat interface.

USE CASE 4

Experiment with on-device AI models using the included local model framework.

What is it built with?

KotlinJetpack ComposeRoomRetrofitWorkManagerCoroutines

How does it compare?

sylvara-lin/lianyu-appairbnb/viaductmarshallbear1/react-native-system-thumbnails
Stars167158145
LanguageKotlinKotlinKotlin
Setup difficultymoderatemoderatemoderate
Complexity3/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires your own AI provider API key, no built-in servers or keys are included.

So what is it?

LianYu, also written 恋语, is an open source starter framework for building an AI companion app on Android. Instead of a simple chat demo, it gives you a full skeleton for an app where a user can create a virtual character, chat with it over many turns, and have that character remember past conversations. The project is written in Kotlin using Jetpack Compose for the interface and follows a modular structure: an app module for navigation and entry points, several core modules for shared pieces like the database and network layer, and separate feature modules for chat, companion profiles, group chat, memory, settings, notifications, and more. Each feature module can be swapped out or extended on its own. For talking to an AI model, the app supports many providers out of the box, including OpenAI, Anthropic, Gemini, DeepSeek, Kimi, OpenRouter, Groq, and any custom OpenAI-compatible endpoint. This public edition ships with no built-in API keys, servers, or accounts: anyone who runs it has to supply their own API key and base URL in the settings screen before it will talk to a model. Some relay-style settings screens exist only as placeholders for future backend work and do not connect to anything by default. The app also includes an early framework for running AI models locally on the device, called LiteRT-LM, along with pieces for background notifications, WorkManager based tasks, and basic bot integrations for WeChat and QQ that a developer could build out further. Data is stored locally with Room, and the codebase relies on standard Android tools like Coroutines, Flow, Retrofit, and Coil for images. It targets Android 8.0 and above, uses JDK 17, and builds with Gradle. This project fits developers who want to learn how a larger, modular Android app is structured, or who want a working base to build their own AI companion or character chat product on top of, rather than starting from a blank chat demo.

Copy-paste prompts

Prompt 1
Explain how the feature-module architecture in LianYu-app separates chat, companion, and memory features.
Prompt 2
Show me how to configure LianYu-app to use my own OpenAI-compatible API key and base URL.
Prompt 3
Walk me through building the debug APK for LianYu-app with Gradle.
Prompt 4
How would I add a new feature module to LianYu-app following its existing core and feature split?

Frequently asked questions

What is lianyu-app?

An open source Android framework for building an AI companion chat app, with chat, character profiles, and memory already built in.

What language is lianyu-app written in?

Mainly Kotlin. The stack also includes Kotlin, Jetpack Compose, Room.

How hard is lianyu-app to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is lianyu-app for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.