一个能够理解商品与对话上下文、核算到手成本的闲鱼浏览器插件 Agent。
Bargain Agent is a browser extension agent for Xianyu that understands product and conversation context and calculates the total purchase cost.
- 识别商品标题、价格、描述和运费等页面信息。
- 根据商品信息整理需要向卖家确认的问题。
- 结合当前会话理解卖家的简短回复和报价。
- 按“商品价格 + 运费”计算到手成本,并动态推进砍价。
- 在谈判结束后汇总价格、运费和关键商品信息。
本插件只辅助完成砍价对话,不会自动下单或付款,最终购买决定仍由用户完成。
本项目是 Chrome Manifest V3 扩展,无需构建或安装依赖。
-
克隆仓库:
git clone https://github.com/par73e/Bargain_Agent.git
-
在 Chrome 地址栏打开
chrome://extensions/。 -
开启右上角的“开发者模式”。
-
点击“加载已解压的扩展程序”,选择克隆后的项目根目录。
-
扩展加载完成后,建议将它固定到浏览器工具栏。
- 点击扩展图标,填写并测试你的 DeepSeek API Key。
- 登录闲鱼网页版并打开一个商品详情页。
- 点击页面中的“砍一刀”,查看商品分析并设置目标到手价。
- 进入聊天页面后,让 Agent 根据卖家回复继续询问和议价。
- DeepSeek API Key 保存在浏览器扩展的本地存储中,不应提交到代码仓库。
- 为完成分析,必要的商品文字和本次会话内容会发送给 DeepSeek API。
- 当前版本以单个活动砍价任务为主,不提供自动下单或自动付款功能。
- Extracts product titles, prices, descriptions, and shipping information.
- Identifies product questions that should be confirmed with the seller.
- Interprets short seller replies and offers within the current conversation.
- Tracks the total cost as product price plus shipping and adjusts offers dynamically.
- Summarizes prices, shipping, and key product information when negotiation ends.
The extension assists with the bargaining conversation only. It does not place orders or make payments, and the final purchase decision always remains with the user.
This project is a Chrome Manifest V3 extension and requires no build step or dependency installation.
-
Clone the repository:
git clone https://github.com/par73e/Bargain_Agent.git
-
Open
chrome://extensions/in Chrome. -
Enable Developer mode.
-
Click Load unpacked and select the cloned project directory.
-
Optionally pin the extension to the browser toolbar.
- Open the extension popup and enter and test your DeepSeek API Key.
- Sign in to Xianyu on the web and open a product detail page.
- Click 砍一刀, review the product analysis, and set a target total price.
- Continue to the chat page and let the agent respond to the seller's messages.
- The DeepSeek API Key is stored in the extension's local browser storage and should never be committed to the repository.
- Product text and conversation context required for analysis are sent to the DeepSeek API.
- The current version focuses on one active bargaining task and does not place orders or make payments.
Licensed under the Apache License 2.0.