English | 简体中文
🚀 🚀 🚀 Next-generation Agentic Desktop Pet = LLM + Memory + Emotion + RPG + Claude Code
Caution
Development is still in progress, there are many bugs, please be patient
The repo is now moving toward a safe gateway + OpenClaw agent architecture:
- this project owns the public webhook/platform ingress
- it performs signature verification, idempotency, moderation, routing, rate limiting, and event normalization
- it writes shared soul/memory files directly into the OpenClaw workspace
- only sanitized events are forwarded to OpenClaw
- OpenClaw owns soul, memory, tool use, and character decisions
So this repo is better understood as a social ingress gateway rather than the final agent runtime.
- Knowledge Graph Memory: Organize conversations into semantic graphs using Cognee
- Long-term Memory: Persistent storage across sessions
- Semantic Search: Vector and graph search for memory retrieval
- Memory Enrichment: Automatic entity and relationship extraction
- Emotion States: Happy, sad, excited, bored, etc.
- Time Decay: Emotions naturally decay over time
- Interaction Boost: User interactions strengthen emotional bonds
- Behavioral Influence: Emotion states affect Agent's response style
- Base Attributes: Intelligence, charisma, agility, stamina, etc.
- Experience & Level: Gain experience through conversations and tasks
- Skill System: Unlock and upgrade abilities
- Affinity: Emotional bond level with user
- File Operations: Read, create, edit local files
- Code Execution: Run code and scripts
- Task Management: Create and manage todo items
- System Integration: Execute commands and automation
- Easily add and switch between different desktop pet themes
Agentic-Desktop-Pet/
├── backend/ # Python FastAPI Backend
│ ├── learn_agent/ # Agent Core Modules
│ │ ├── agent/ # Agent Implementation
│ │ │ ├── agent.py # Main Agent Class
│ │ │ └── memory.py # Memory Management
│ │ ├── memory/ # Memory System (Cognee)
│ │ │ └── cognee_manager.py
│ │ ├── emotion/ # Emotion System
│ │ │ └── emotion_engine.py
│ │ ├── rpg/ # RPG Attribute System
│ │ │ └── character.py
│ │ ├── llm/ # LLM Interface
│ │ └── tool/ # Tool Collection
│ │ ├── file_tool.py
│ │ ├── code_tool.py
│ │ └── todo_tool.py
│ ├── main.py # FastAPI Entry Point
│ └── pyproject.toml
│
├── godot/ # Godot 4.x Frontend
│ ├── scenes/ # Scene Files
│ ├── scripts/ # GDScript Scripts
│ ├── themes/ # Pet Themes
│ └── project.godot
│
├── docs/ # Documentation
└── CLAUDE.md # Claude Code Guide
- Python 3.13+
- Godot 4.3+
- LLM API (OpenAI / DeepSeek / Claude, etc.)
cd backend
uv sync
# Configure environment
cp .env.example .env
# Edit .env to add API Key# Start backend service
uv run main.py
# Service runs at http://localhost:8000- Open Godot 4.3+
- Import
godot/folder - Click Run (or press F5)
Caution
Theme .pck files must be placed in the themes/ folder alongside the executable
- Right-click on the pet to open the dialog
- Press ESC to close the application when the pet window is focused
"Read main.py for me"
"Create a new file hello.txt"
"Edit config.json"
"Create a todo: buy milk"
"List my todos"
"Mark the first todo as done"
"How are you feeling?"
"How much experience do you have?"
"Show me your attributes"
The backend now includes an Instagram gateway:
GET /webhook/instagram: Meta webhook verificationPOST /webhook/instagram: inbound Instagram comment eventsGET /gateway/health: gateway health status
Before any event reaches OpenClaw, the gateway performs:
- signature verification
- simple keyword moderation
- per-user rate limiting
- duplicate event filtering
- normalized event packaging
See TODO.md
The project is currently in development (updates when time permits), and there are still many bugs being fixed. Contributions of any size are welcome - whether it's fixing bugs, adding character assets, or other improvements.
You may use any code snippets from this project, but you cannot directly package the complete project for commercial use. Please also respect the copyright of assets used in the project.
- Godot Engine - Game engine
- godot-click-through-transparent-window - Transparent window
- Cognee - Knowledge graph memory system
- learn-agent - Claude Code-like functionality reference
- tech-dungeon-roguelite - Character assets
- tiny-swords - Character assets
- dino-characters - Character assets
- VPet - Character assets