diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7d0309a..d45e1e1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [2.2.1] - 2025-12-12
+
+### Added
+- **Cookie获取**
+ - 增加 Cookie 获取接口,可利用本项目的自动续登功能获取最新的 Cookie 给其他工具使用
+
+### Changed
+- **自动续登**
+ - 监听逻辑修改为全局监听,任何时候触发跳转都会执行自动登录(如会话过期自动跳转)
+
+### Fixed
+- **修复杂项**
+ - 修复自动登录时可能会出现的问题
+ - 修复启动VNC服务器时端口可能冲突的问题
+ - 修复遗留的浏览器启动参数导致的小问题
+ - 修复 zAI 返回错误时无反馈直到请求超时的问题
+
## [2.2.0] - 2025-12-11
### Added
diff --git a/README.md b/README.md
index 5fc06ff..878ed72 100644
--- a/README.md
+++ b/README.md
@@ -226,7 +226,56 @@ curl -X GET http://127.0.0.1:3000/v1/models \
-#### 3. 多模态请求 (图生图/图生文)
+#### 3. 获取Cookies
+
+**功能说明**:可利用本项目的自动续登功能获取最新Cookie给其他工具使用。
+
+**请求端点**
+```
+GET http://127.0.0.1:3000/v1/cookies
+```
+
+
+📄 查看API请求示例
+
+**请求示例**
+```bash
+curl -X GET http://127.0.0.1:3000/v1/cookies \
+ -H "Authorization: Bearer your-secret-key"
+```
+
+**响应格式**
+```json
+{
+ "cookies": [
+ {
+ "name": "_GRECAPTCHA",
+ "value": "09ADxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
+ "domain": "www.google.com",
+ "path": "/recaptcha",
+ "expires": 1780000000,
+ "httpOnly": true,
+ "secure": true,
+ "sameSite": "None"
+ },
+ {
+ "name": "OTZ",
+ "value": "8888888_24_24__24_",
+ "domain": "accounts.google.com",
+ "path": "/",
+ "expires": 1760000000,
+ "httpOnly": false,
+ "secure": true,
+ "sameSite": "None"
+ }
+ .......... more
+ ]
+}
+```
+
+
+
+#### 4. 多模态请求 (图生图/图生文)
**功能说明**:支持在消息中附带图片进行对话或生成。
diff --git a/lib/browser/utils.js b/lib/browser/utils.js
index 3734796..3de04e1 100644
--- a/lib/browser/utils.js
+++ b/lib/browser/utils.js
@@ -434,3 +434,14 @@ export function createPageCloseWatcher(page) {
return { promise, cleanup };
}
+
+/**
+ * 获取当前页面的所有 Cookies (实时从浏览器获取)
+ * @param {import('playwright-core').Page} page - Playwright 页面实例
+ * @returns {Promise