← All Comparisons (/vs)
HEAD-TO-HEAD TECHNICAL COMPARISON (2026)

leon vs XianyuAutoAgent

Side-by-side 2026 comparison in Agents & Frameworks: leon-ai/leon leads in total GitHub adoption (★ 17.7k), while shaxiu/XianyuAutoAgent shows stronger 7-day momentum. Licensing: MIT · Commercial Friendly vs GPL-3.0 · Copyleft Warning.

Cumulative Star Gain Chart (Embeddable SVG)

Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.

leon vs XianyuAutoAge… — 14-Day Star Velocity Comparison on RepoForAI.com 14-DAY CUMULATIVE STAR GAIN COMPARISON REPOFORAI.COM leon ★ 17.7k (+28/7d) XianyuAutoAge… ★ 9.9k (+149/7d) +225 +113 0 11-18 11-25 12-01 (D1 snapshot)
leon-ai/leon (Health A 87/100) vs shaxiu/XianyuAutoAgent (Health B 53/100) multi-day star momentum.
Compare different repos →

Key Metrics Matrix

Dimensionleon-ai/leonshaxiu/XianyuAutoAgent
Total GitHub Stars★ 17,743★ 9,920
24h / 7d Velocity+4 / +28+24 / +149
7-Day Trend Curve
Engineering HealthA · 87/100B · 53/100
Deployment SignalsSelf-HostedDocker · Self-Hosted
Primary LanguageTypeScriptPython
Commercial LicenseMIT · Commercial FriendlyGPL-3.0 · Copyleft Warning
ActivityUpdated todayUpdated 5mo ago
Latest ReleaseRolling commits (main)Rolling commits (main)
Best ForDevelopers and technically comfortable users piloting a self-hosted personal assistant that remembers preferences, runs custom skills, and presents interactive results in chatXianyu sellers piloting supervised replies for common inquiries and routine bargaining who can manage account sessions and test reply behavior
Maintaining leon, XianyuAutoAgent, or an open-source alternative? Reach engineers comparing this stack.
Feature Repo ($19)Sponsor Track

leon · Highlights & Quickstart

Agent runtime: A continuous loop uses tool results to select the next step, check outcomes, and recover from failures.
Context budget: Guidance loads down to the needed tool function, large outputs stay in artifacts, and older exchanges can be compacted.
Memory scope: Profiles separate persistent facts and preferences, daily summaries, and recent discussions; retrieval can consult original conversations.
Skill execution: Native and agent skills share the tool system, and independent tool calls can run concurrently in isolated workers.
# Clone the repository
git clone https://github.com/leon-ai/leon.git

# Go to the project root
cd leon

# Install pnpm
npm install --global pnpm@latest

# Install dependencies
pnpm install

# Run Leon
pnpm start

XianyuAutoAgent · Highlights & Quickstart

Routing: Prompt-based intent classification and rules select bargaining, technical support, or default replies.
Conversation state: Stored chat history is supplied as LLM context for follow-up turns.
Seller control: A configurable keyword toggles between automated replies and manual handling.
Model endpoint: openai==1.65.5 with configurable MODEL_BASE_URL and MODEL_NAME; Qwen is the default.
1. 克隆仓库
git clone https://github.com/shaxiu/XianyuAutoAgent.git
cd XianyuAutoAgent

2. 安装依赖
pip install -r requirements.txt

3. 配置环境变量
创建一个 `.env` 文件,包含以下内容,也可直接重命名 `.env.example` :
#必配配置
API_KEY=apikey通过模型平台获取
COOKIES_STR=填写网页端获取的cookie
MODEL_BASE_URL=模型地址
MODEL_NAME=模型名称
#可选配置
TOGGLE_KEYWORDS=接管模式切换关键词,默认为句号(输入句号切换为人工接管,再次输入则切换AI接管)
SIMULATE_HUMAN_TYPING=True/False #模拟人工回复延迟

注意:默认使用的模型是通义千问,如需使用其他API,请自行修改.env文件中的模型地址和模型名称;
COOKIES_STR自行在闲鱼网页端获取cookies(网页端F12打开控制台,选择Network,点击Fetch/XHR,点击一个请求,查看cookies)

4. 创建提示词文件prompts/*_prompt.txt(也可以直接将模板名称中的_example去掉),否则默认读取四个提示词模板中的内容

leon vs XianyuAutoAgent FAQ

How do leon and XianyuAutoAgent differ on commercial licensing?

leon-ai/leon uses MIT · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.), whereas shaxiu/XianyuAutoAgent uses GPL-3.0 · Copyleft Warning (Strong copyleft license; distributing modified versions or network SaaS (AGPL) requires open-sourcing.).

Which is growing faster in 2026: leon or XianyuAutoAgent?

According to RepoForAI's 6-hour GitHub telemetry, leon has 17,743 stars (+28 in 7d) vs. XianyuAutoAgent with 9,920 stars (+149 in 7d).

When should engineering teams pick leon vs XianyuAutoAgent?

Choose leon (TypeScript) for: Developers and technically comfortable users piloting a self-hosted personal assistant that remembers preferences, runs custom skills, and presents interactive results in chat. Choose XianyuAutoAgent (Python) for: Xianyu sellers piloting supervised replies for common inquiries and routine bargaining who can manage account sessions and test reply behavior.

More Head-to-Head Comparisons

WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare