Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
5eb452f
build: replace bash script with cross-platform node script for a2ui b…
luolin-ai Feb 18, 2026
c835bbf
style: fix formatting in bundle-a2ui.mjs for CI linting
luolin-ai Feb 18, 2026
8947b8f
refactor: delete obsolete bash script and update AGENTS.md references
luolin-ai Feb 18, 2026
381e858
fix(ci): fix floating promise lint error in bundle-a2ui.mjs
luolin-ai Feb 18, 2026
0ab1a60
fix(cli): resolve 'too many arguments' error on Windows after respawn
luolin-ai Feb 18, 2026
41eef34
style: fix formatting in windows-argv.ts for CI linting
luolin-ai Feb 18, 2026
411df7b
feat: SiliconFlow separation (CN/Global), Scoop support for Windows s…
luolin-ai Feb 18, 2026
0d480f5
ci: add GITHUB_TOKEN to setup-bun to avoid API rate limiting (401)
luolin-ai Feb 18, 2026
fac0651
fix: correct Go installation paths for multiple skills (missing /cmd/)
luolin-ai Feb 18, 2026
c9dfe48
fix(skills): improve Windows installation reliability and fix Go modu…
luolin-ai Feb 18, 2026
8e2015f
feat: implement DeepSeek Web client, reasoning tag extraction, and UI…
luolin-ai Feb 19, 2026
5e0c96f
Initial commit: OpenClaw with DeepSeek web auth support
Feb 23, 2026
813b16f
docs: add README in English and Chinese, add demo video
Feb 23, 2026
3919044
docs: add project structure documentation
Feb 23, 2026
8c15cf5
feat: 豆包集成 (doubao-proxy + doubao-web)
Feb 24, 2026
1fa0e83
chore: 项目配置、启动脚本与工作总结
Feb 24, 2026
277e48b
feat: 支持 Claude Web 免 Token 访问 / Add Claude Web free access via brows…
Feb 25, 2026
2126935
docs: 添加首次运行指南(跨平台)
Feb 26, 2026
448736c
refactor(doubao): 采用 Playwright 浏览器方案,移除 doubao-proxy
Feb 26, 2026
303b0b7
chore: 添加 Gateway 重启脚本
Feb 26, 2026
853d614
docs: 从 README 中移除 doubao-proxy 引用
Feb 26, 2026
b7a9725
docs: 修复英文版 README 中遗漏的 Doubao Proxy 引用
Feb 26, 2026
4e3b8c8
refactor: 更新代码注释,移除 doubao-free-api 引用
Feb 26, 2026
2bbbd2a
docs: 完全移除 doubao-proxy 引用,更新文档描述
Feb 26, 2026
ba235d3
docs: add IDENTITY.md and USER.md template files
Feb 27, 2026
b90e638
docs: enhance USER.md template with comprehensive preferences
Feb 27, 2026
78cc4e5
chore: cleanup unnecessary docs and scripts
Feb 27, 2026
7bfbc60
chore: remove cleanup script after use
Feb 27, 2026
3f01d4a
fix: update .gitignore to allow template files
Feb 27, 2026
c893a06
docs: add bilingual support (Chinese/English) to all markdown files
Feb 27, 2026
ec29565
fix: add 8 new web platform API types to zod schema
Feb 27, 2026
3163e40
fix(qwen-web): add debug logging and try multiple API endpoints
Feb 27, 2026
90c4d48
chore: move test scripts to test/ directory
Feb 27, 2026
6860f0e
增加千问测试文件
Feb 27, 2026
16e9eae
feat: DeepSeek auth improvements, Manus API, attachOnly support
Feb 27, 2026
3b233c2
支持kimi和千问 support qwen and kimi
Feb 27, 2026
7934f5c
update docs
Feb 27, 2026
a6b3d7c
chore: cleanup unnecessary docs and scripts
Feb 27, 2026
9499ff9
chore: remove cleanup script after use
Feb 27, 2026
bd96c5e
fix: add 8 new web platform API types to zod schema
Feb 27, 2026
c8d59bc
fix(qwen-web): add debug logging and try multiple API endpoints
Feb 27, 2026
f37fc7a
chore: move test scripts to test/ directory
Feb 27, 2026
f7324c0
增加千问测试文件
Feb 27, 2026
2c45267
feat: DeepSeek auth improvements, Manus API, attachOnly support
Feb 27, 2026
d8b3734
支持kimi和千问 support qwen and kimi
Feb 27, 2026
bd61158
docs: 更新配置步骤与脚本说明,移除 test 目录
Feb 27, 2026
1136b41
chore: ignore docs/research and test folders
Feb 28, 2026
2804c79
docs: Manus API 标记为已测试
Feb 28, 2026
1453190
feat: Grok Web 403 DOM fallback, ChatGPT Web 修复, 移除 Yuanbao
Feb 28, 2026
9bcf94b
Gemini测试通过
Feb 28, 2026
f7bb284
chore: 忽略 COMMIT_SUMMARY、WEB_API_TESTS_STATUS、WEB_PLATFORMS_RESEARCH
Feb 28, 2026
0badf84
feat: prompt 清洗、Qwen crypto 修复、Manus DOM、server.sh 就绪检测
Feb 28, 2026
0ce0015
docs: 补充 pnpm ui:build 到安装步骤,确保 Web UI 可访问
Feb 28, 2026
b99864a
fix: 启动 gateway 时统一指定端口 3001
Feb 28, 2026
155f691
feat: 三个启动脚本跨平台兼容改造
Mar 1, 2026
01ba313
feat: z-web (智谱清言 chatglm.cn) provider 接入完成
Mar 1, 2026
d6a7fa3
更新文档
Mar 1, 2026
fbbc556
feat: manus-web provider 接入完成
Mar 1, 2026
6375704
feat: 完善 Web Providers 接入与修复多个问题
Mar 1, 2026
cca6e18
支持千问调用工具;
Mar 3, 2026
4ad7594
删除豆包mp4
Mar 3, 2026
553f2ae
Remove test files from root directory (they are now in test/ director…
Mar 3, 2026
23396b8
chore: 精简状态模板并整理调试文档
Mar 3, 2026
73340bd
feat: 统一 zero-state 路径并改进 web provider 适配
Mar 3, 2026
cb28db9
docs: 统一安装与快速开始文档口径
Mar 3, 2026
d1d74f1
增加工具调用支持
Mar 4, 2026
4653c8b
更新claude模型名称为 claude-sonnet-4-6
Mar 6, 2026
fd7f62b
update docs for beginners
Mar 7, 2026
2729b21
update docs
Mar 7, 2026
0bc1abb
update docs
Mar 7, 2026
0c76ff3
update docs
Mar 7, 2026
2e2e9a4
update docs
Mar 7, 2026
86a11c1
Ask once, get answers from all AI models.
Mar 7, 2026
4f8d0f2
一次提问,获取所有 AI 模型的答案。
Mar 7, 2026
da0a9d6
update docs
Mar 7, 2026
4a922fd
Add Feishu channel config type support
Mar 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"permissions": {
"defaultMode": "bypassPermissions"
}
}
3 changes: 2 additions & 1 deletion .github/actions/setup-node-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ runs:
if: inputs.install-bun == 'true'
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.9+cf6cdbbba"
bun-version: latest
github-token: ${{ github.token }}

- name: Runtime versions
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ jobs:
pnpm-version: "10.23.0"
cache-key-suffix: "node22"

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
github-token: ${{ github.token }}
- name: Runtime versions
run: |
node -v
Expand Down
50 changes: 48 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,43 @@ apps/ios/*.dSYM.zip
# provisioning profiles (local)
apps/ios/*.mobileprovision

# Test scripts and folder (local use, not for distribution)
test/

# Docs research/analysis (internal use, not for distribution)
docs/research/
docs/WEB_API_TESTS_STATUS.md
docs/WEB_PLATFORMS_RESEARCH.md

# Local commit notes
COMMIT_SUMMARY.md

# Local untracked files
.local/
.openclaw-state/
.openclaw-zero-state/
.kiro/
docs/.local/
IDENTITY.md
USER.md
.tgz
.idea

# User-specific config files (but allow templates)
IDENTITY.md
USER.md
# Exception: allow template files
!docs/reference/templates/IDENTITY.md
!docs/reference/templates/USER.md

# Gateway PID file
.gateway.pid

# Claude cookie files (sensitive)
claudecookie.txt
*.cookie.txt

# local tooling
.serena/
dev-debug.sh

# Agent credentials and memory (NEVER COMMIT)
/memory/
Expand All @@ -93,3 +120,22 @@ package-lock.json

# Local iOS signing overrides
apps/ios/LocalSigning.xcconfig

# Temporary logs and test outputs
*.log
lint_output*.txt
ts_errors*.txt
test-*.mjs
test-doubao-*.js
analyze-doubao*.ts
scripts/analyze-doubao*.ts
scripts/analyze-doubao*.js
solve-wasm.mjs
verify-final.mjs
patch-client.mjs
research-deepseek.mjs
sha3_wasm_b64.txt
sha3_wasm_bg.wasm
solve-wasm.mjs
FILES_TO_CLEANUP.md
.vscode/settings.json
237 changes: 237 additions & 0 deletions .openclaw-state.example/README.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
# OpenClaw State Directory Example

English | [简体中文](README.md)

Example configuration files for the `.openclaw-zero-state/` directory.

## Directory Structure

```
.openclaw-zero-state/
├── openclaw.json # Main config file
└── agents/
└── main/
└── agent/
└── auth-profiles.json # Auth credentials (sensitive)
```

## Important Notes

⚠️ **The `.openclaw-zero-state/` directory contains sensitive information and should NOT be committed to Git!**

- Excluded in `.gitignore`
- Contains auth credentials (sessionKey, cookies, etc.)
- Contains personal config and workspace data

## First Run

The `.openclaw-zero-state/` directory is created automatically on first run.

⚠️ **Important:** `openclaw.json` must not be empty, or the Gateway will fail to start. On first run, the full config template is automatically copied from `.openclaw-state.example/openclaw.json`.

### Auto-Create (Recommended)

When running the config wizard or `server.sh`, if `.openclaw-zero-state/openclaw.json` does not exist, it is automatically copied from the example:

```bash
./onboard.sh
# or
./server.sh start
```

**What gets created:**
1. ✅ `.openclaw-zero-state/` directory
2. ✅ `openclaw.json` config file (copied from `.openclaw-state.example/openclaw.json`, not empty)
3. ✅ `agents/main/agent/` subdirectory
4. ✅ `agents/main/sessions/` sessions directory
5. ✅ `credentials/` directory
6. ✅ `auth-profiles.json` auth file (after config completes)

**What you need to do:**
1. Run `./onboard.sh` or `./server.sh start`
2. Select AI provider (e.g. Claude Web)
3. Log in via the browser
4. Wait for the system to save credentials

**No manual file or directory creation required!**

### Manual Create (Optional)

If auto-copy does not work (e.g. example file missing), copy manually:

```bash
mkdir -p .openclaw-zero-state
cp .openclaw-state.example/openclaw.json .openclaw-zero-state/openclaw.json
```

Then edit `.openclaw-zero-state/openclaw.json` and at least update:
- `workspace` path (to your actual path)
- `gateway.auth.token` (generate a random token)

## Config File Reference

### openclaw.json

Main config file (minimal template), includes:

- **browser**: Browser config (CDP connection)
- **models**: AI model config (initially empty)
- **agents**: Agent defaults
- **gateway**: Gateway service config

### Onboard Incremental Write (Important)

`openclaw.json` uses **on-demand incremental writes**, not a single full write:

1. Initial template has empty `models.providers` and `agents.defaults.models`
2. Each time you complete a platform auth in `./onboard.sh`
3. Only that platform’s provider/models/alias are written

**Platforms not completed in onboard will not appear in the runtime `openclaw.json`.**

Minimal template example:

```json
{
"models": { "mode": "merge", "providers": {} },
"agents": { "defaults": { "models": {} } }
}
```

### auth-profiles.json

Auth credentials file, contains:

- Claude Web sessionKey
- DeepSeek Web cookie
- Doubao Web sessionid
- Other API keys

**Example format:**

```json
{
"version": 1,
"profiles": {
"claude-web:default": {
"type": "api_key",
"provider": "claude-web",
"key": "{\"sessionKey\":\"sk-ant-sid02-...\",\"userAgent\":\"...\"}"
}
}
}
```

## Path Configuration

### macOS

```json
{
"agents": {
"defaults": {
"workspace": "/Users/YOUR_USERNAME/Documents/openclaw-zero-token/.openclaw-zero-state/workspace"
}
}
}
```

### Linux

```json
{
"agents": {
"defaults": {
"workspace": "/home/YOUR_USERNAME/Documents/openclaw-zero-token/.openclaw-zero-state/workspace"
}
}
}
```

## Security Recommendations

1. ✅ Ensure `.openclaw-zero-state/` is in `.gitignore`
2. ✅ Do not share `auth-profiles.json`
3. ✅ Rotate expired credentials regularly
4. ✅ Use a strong random Gateway Token

## Troubleshooting

### First Run: Use Config Wizard (Recommended)

**On first run, start the config wizard:**

```bash
./onboard.sh
```

**The wizard will create:**
- ✅ `.openclaw-zero-state/` directory
- ✅ `openclaw.json` config file (copied from example if missing)
- ✅ `agents/main/agent/` directory
- ✅ `agents/main/sessions/` directory
- ✅ `credentials/` directory
- ✅ `auth-profiles.json` auth file (after config completes)

**No manual creation needed!**

### Fix Issues: Use Doctor Command

**If the project has run before but directories/files are missing:**

```bash
node dist/index.mjs doctor
```

**⚠️ Note: The `doctor` command will only:**
- ✅ Check and create missing **directories**
- ✅ Fix file permissions
- ❌ **Not** create config file (`openclaw.json`)
- ❌ **Not** create auth file (`auth-profiles.json`)

**Use when:**
- Directories were accidentally deleted
- File permission issues
- Config file corrupted (re-run `onboard.sh`)
- Verifying environment

**Example output:**
```
State integrity
- CRITICAL: Sessions dir missing (~/.openclaw-zero/agents/main/sessions)
? Create Sessions dir at ~/.openclaw-zero/agents/main/sessions? (Y/n)

Doctor changes
- Created Sessions dir: ~/.openclaw-zero/agents/main/sessions
- Tightened permissions on ~/.openclaw-zero to 700
```

### Config File Missing or Corrupted

```bash
# Running onboard or server will auto-copy config from .openclaw-state.example/openclaw.json
./onboard.sh
# or
./server.sh start
```

### Path Errors

Check and update the `workspace` path in `openclaw.json`:

```bash
# macOS
sed -i '' 's|/home/|/Users/|g' .openclaw-zero-state/openclaw.json

# Linux
sed -i 's|/Users/|/home/|g' .openclaw-zero-state/openclaw.json
```

### Auth Failure

Remove old auth file and reconfigure:

```bash
rm .openclaw-zero-state/agents/main/agent/auth-profiles.json
./onboard.sh
```
Loading
Loading