MoreLogin Local API Skill
Manage browser profiles and cloud phones via MoreLogin official Local API, supporting full lifecycle control, automation connections (CDP/ADB), and resource management (proxy/group/tag/app/file).
Official Sources
Trigger Scenarios
Prefer this Skill when:
- User mentions
MoreLogin, envId, uniqueId, cloudphone
- Creating/starting/closing browser profiles
- Refreshing fingerprints, clearing cache, or deleting profiles
- Cloud phone power on/off, ADB, app management, file upload
- API management of proxy, groups, tags
Pre-flight Checklist
Before any operation:
- Confirm MoreLogin desktop app is running and logged in.
- Confirm API is reachable:
http://127.0.0.1:40000.
- Confirm requests originate from localhost (Local API does not support remote access).
- For cloud phone command execution, confirm ADB is available (
adb installed).
Execution Principles
- Treat
local-api.yaml + API-CONTRACT.md as the canonical parameter source before constructing payloads.
- Do not infer field names from memory; verify required keys/types first (especially
id vs ids, object vs array bodies).
- Use
POST by default (except tag query GET /api/envtag/all).
- Uniform request header:
Content-Type: application/json.
- Check
code first: 0 means success, non-zero use msg for error handling.
- Prefer
envId for resource lookup; fall back to uniqueId when missing (browser profiles).
- For batch endpoints (
/batch), always pass arrays and record changed objects.
API Capability Mapping
Browser Profile
| Endpoint |
Purpose |
POST /api/env/create/quick |
Quick create profile |
POST /api/env/create/advanced |
Advanced create (full fingerprint params) |
POST /api/env/fingerprint/refresh |
Refresh device fingerprint |
POST /api/env/start |
Start profile and return debug info |
POST /api/env/close |
Close running profile |
POST /api/env/status |
Get run status and debug info |
POST /api/env/page |
Paginated profile list |
POST /api/env/detail |
Get single profile detail |
POST /api/env/removeLocalCache |
Clear local cache (cookies/localStorage etc.) |
POST /api/env/removeToRecycleBin/batch |
Batch delete to recycle bin |
Cloud Phone
| Endpoint |
Purpose |
POST /api/cloudphone/create |
Create cloud phone |
POST /api/cloudphone/powerOn |
Power on |
POST /api/cloudphone/powerOff |
Power off |
POST /api/cloudphone/page |
Paginated list |
POST /api/cloudphone/info |
Get detail (including ADB info) |
POST /api/cloudphone/edit/batch |
Batch edit config |
POST /api/cloudphone/delete/batch |
Batch delete |
POST /api/cloudphone/newMachine |
One-click new device |
POST /api/cloudphone/updateAdb |
Enable/disable ADB |
Cloud Phone File & App
| Endpoint |
Purpose |
POST /api/cloudphone/uploadFile |
Upload file to cloud phone |
POST /api/cloudphone/uploadUrl |
Query upload status |
POST /api/cloudphone/setKeyBox |
Set Keybox |
POST /api/cloudphone/app/install |
Install app |
POST /api/cloudphone/app/page |
Query app market list |
POST /api/cloudphone/app/installedList |
Query installed apps |
POST /api/cloudphone/app/start |
Start app |
POST /api/cloudphone/app/restart |
Restart app |
POST /api/cloudphone/app/stop |
Stop app |
POST /api/cloudphone/app/uninstall |
Uninstall app |
Proxy / Group / Tag
| Endpoint |
Purpose |
POST /api/proxyInfo/page |
Query proxy list |
POST /api/proxyInfo/add |
Add proxy |
POST /api/proxyInfo/update |
Update proxy |
POST /api/proxyInfo/delete |
Delete proxy |
POST /api/envgroup/page |
Query groups |
POST /api/envgroup/create |
Create group |
POST /api/envgroup/edit |
Edit group |
POST /api/envgroup/delete |
Delete group |
GET /api/envtag/all |
Get all tags |
POST /api/envtag/create |
Create tag |
POST /api/envtag/edit |
Edit tag |
POST /api/envtag/delete |
Delete tag |
Standard Workflows
Workflow A: Browser Profile Automation
- Get
envId from create/quick or page.
- Call
start to launch the profile.
- Call
status to verify run state and debugPort.
- Use CDP (Puppeteer/Playwright) for automation.
- Call
close when done.
Workflow B: Cloud Phone Automation
- Call
page or create to obtain cloud phone id.
- Call
powerOn to start.
- Call
info to get ADB connection params.
- Call
updateAdb when needed to enable ADB.
- Run supported cloud phone management endpoints only (no direct command execution).
- Call
powerOff when done.
Quick Examples (Official API)
# 1) Quick create browser profile
curl -X POST "http://127.0.0.1:40000/api/env/create/quick" \
-H "Content-Type: application/json" \
-d '{"browserTypeId":1,"operatorSystemId":1,"quantity":1}'
# 2) Start profile
curl -X POST "http://127.0.0.1:40000/api/env/start" \
-H "Content-Type: application/json" \
-d '{"envId":"<envId>"}'
# 3) Cloud phone power on
curl -X POST "http://127.0.0.1:40000/api/cloudphone/powerOn" \
-H "Content-Type: application/json" \
-d '{"id":"<cloudPhoneId>"}'
# 4) Query cloud phone detail (including ADB info)
curl -X POST "http://127.0.0.1:40000/api/cloudphone/info" \
-H "Content-Type: application/json" \
-d '{"id":"<cloudPhoneId>"}'
CLI Usage (This Project)
Prefer project-wrapped commands; fall back to curl when needed:
Entry equivalence note: openclaw morelogin ... and node bin/morelogin.js ... are fully equivalent (same arguments, same behavior, same exit code). Use either one based on your runtime environment.
# Browser profile
openclaw morelogin browser list
openclaw morelogin browser start --env-id <envId>
openclaw morelogin browser status --env-id <envId>
openclaw morelogin browser close --env-id <envId>
# Cloud phone
openclaw morelogin cloudphone list
openclaw morelogin cloudphone start --id <cloudPhoneId>
openclaw morelogin cloudphone info --id <cloudPhoneId>
## Response & Error Handling
Parse responses with the following structure:
```json
{
"code": 0,
"msg": null,
"data": {},
"requestId": "..."
}
Handling rules:
code == 0: Proceed, extract data.
code != 0: Output msg, mark failed step, suggest next fix.
- For
start/powerOn operations, call status/info again before subsequent steps to confirm.
Security & Limits
- Local API listens on localhost only; no remote access.
- Can be called only when MoreLogin account is logged in.
- Do not expose account, proxy passwords, ADB keys, or other sensitive data in logs or code.
- Double-check target ID lists before batch delete, cache clear, or app uninstall.
Security Notice
This skill no longer provides local ADB/SSH connection methods (adb-connect, adb-disconnect, adb-devices).
Command execution safeguards:
- Restricted to local automation context (localhost workflows and local API).
- Remote cloud phone
exec is disabled by default and must be explicitly enabled.
exec command content is validated against a safe allowlist and blocks shell metacharacters.
- Generic
api passthrough is endpoint-allowlisted by default.
When Not to Use This Skill
- MoreLogin is not installed, not running, or not logged in.
- Requirements are for regular browser automation (no MoreLogin environment isolation).
- Requirements depend on remote access to Local API over the network.
Related Files
bin/morelogin.js
lib/api.js
local-api.yaml
API-CONTRACT.md
README-OFFICIAL-API.md
1---
2name: morelogin
3description: Manage MoreLogin anti-detect browser profiles and cloud phones through the official Local API (http://127.0.0.1:40000), including browser profile lifecycle, fingerprint refresh, cloud phone power/file/app operations, and proxy/group/tag management. Use when the user mentions MoreLogin, envId/uniqueId, cloud phone, CDP, ADB, or multi-account automation.
4metadata:
5 source: https://skillmd.com/skills/modbender/morelogin
6 openclaw:
7 emoji: "🌐"
8 requires:
9 bins: ["node", "adb"]
10 install:
11 - id: npm
12 kind: npm
13 dir: ./
14 label: Install MoreLogin CLI dependencies
15 - id: adb
16 kind: brew
17 formula: android-platform-tools
18 bins: ["adb"]
19 label: Install ADB (Android Debug Bridge)
20---
21
22# MoreLogin Local API Skill
23
24Manage browser profiles and cloud phones via MoreLogin official Local API, supporting full lifecycle control, automation connections (CDP/ADB), and resource management (proxy/group/tag/app/file).
25
26## Official Sources
27
28- Local API documentation: https://guide.morelogin.com/api-reference/local-api
29- Base URL: `http://127.0.0.1:40000`
30- Requirements: MoreLogin Desktop `v2.15.0+`, logged-in local account
31
32## Trigger Scenarios
33
34Prefer this Skill when:
35
36- User mentions `MoreLogin`, `envId`, `uniqueId`, `cloudphone`
37- Creating/starting/closing browser profiles
38- Refreshing fingerprints, clearing cache, or deleting profiles
39- Cloud phone power on/off, ADB, app management, file upload
40- API management of proxy, groups, tags
41
42## Pre-flight Checklist
43
44Before any operation:
45
461. Confirm MoreLogin desktop app is running and logged in.
472. Confirm API is reachable: `http://127.0.0.1:40000`.
483. Confirm requests originate from localhost (Local API does not support remote access).
494. For cloud phone command execution, confirm ADB is available (`adb` installed).
50
51## Execution Principles
52
53- Treat `local-api.yaml` + `API-CONTRACT.md` as the canonical parameter source before constructing payloads.
54- Do not infer field names from memory; verify required keys/types first (especially `id` vs `ids`, object vs array bodies).
55- Use `POST` by default (except tag query `GET /api/envtag/all`).
56- Uniform request header: `Content-Type: application/json`.
57- Check `code` first: `0` means success, non-zero use `msg` for error handling.
58- Prefer `envId` for resource lookup; fall back to `uniqueId` when missing (browser profiles).
59- For batch endpoints (`/batch`), always pass arrays and record changed objects.
60
61## API Capability Mapping
62
63### Browser Profile
64
65| Endpoint | Purpose |
66|---|---|
67| `POST /api/env/create/quick` | Quick create profile |
68| `POST /api/env/create/advanced` | Advanced create (full fingerprint params) |
69| `POST /api/env/fingerprint/refresh` | Refresh device fingerprint |
70| `POST /api/env/start` | Start profile and return debug info |
71| `POST /api/env/close` | Close running profile |
72| `POST /api/env/status` | Get run status and debug info |
73| `POST /api/env/page` | Paginated profile list |
74| `POST /api/env/detail` | Get single profile detail |
75| `POST /api/env/removeLocalCache` | Clear local cache (cookies/localStorage etc.) |
76| `POST /api/env/removeToRecycleBin/batch` | Batch delete to recycle bin |
77
78### Cloud Phone
79
80| Endpoint | Purpose |
81|---|---|
82| `POST /api/cloudphone/create` | Create cloud phone |
83| `POST /api/cloudphone/powerOn` | Power on |
84| `POST /api/cloudphone/powerOff` | Power off |
85| `POST /api/cloudphone/page` | Paginated list |
86| `POST /api/cloudphone/info` | Get detail (including ADB info) |
87| `POST /api/cloudphone/edit/batch` | Batch edit config |
88| `POST /api/cloudphone/delete/batch` | Batch delete |
89| `POST /api/cloudphone/newMachine` | One-click new device |
90| `POST /api/cloudphone/updateAdb` | Enable/disable ADB |
91
92### Cloud Phone File & App
93
94| Endpoint | Purpose |
95|---|---|
96| `POST /api/cloudphone/uploadFile` | Upload file to cloud phone |
97| `POST /api/cloudphone/uploadUrl` | Query upload status |
98| `POST /api/cloudphone/setKeyBox` | Set Keybox |
99| `POST /api/cloudphone/app/install` | Install app |
100| `POST /api/cloudphone/app/page` | Query app market list |
101| `POST /api/cloudphone/app/installedList` | Query installed apps |
102| `POST /api/cloudphone/app/start` | Start app |
103| `POST /api/cloudphone/app/restart` | Restart app |
104| `POST /api/cloudphone/app/stop` | Stop app |
105| `POST /api/cloudphone/app/uninstall` | Uninstall app |
106
107### Proxy / Group / Tag
108
109| Endpoint | Purpose |
110|---|---|
111| `POST /api/proxyInfo/page` | Query proxy list |
112| `POST /api/proxyInfo/add` | Add proxy |
113| `POST /api/proxyInfo/update` | Update proxy |
114| `POST /api/proxyInfo/delete` | Delete proxy |
115| `POST /api/envgroup/page` | Query groups |
116| `POST /api/envgroup/create` | Create group |
117| `POST /api/envgroup/edit` | Edit group |
118| `POST /api/envgroup/delete` | Delete group |
119| `GET /api/envtag/all` | Get all tags |
120| `POST /api/envtag/create` | Create tag |
121| `POST /api/envtag/edit` | Edit tag |
122| `POST /api/envtag/delete` | Delete tag |
123
124## Standard Workflows
125
126### Workflow A: Browser Profile Automation
127
1281. Get `envId` from `create/quick` or `page`.
1292. Call `start` to launch the profile.
1303. Call `status` to verify run state and `debugPort`.
1314. Use CDP (Puppeteer/Playwright) for automation.
1325. Call `close` when done.
133
134### Workflow B: Cloud Phone Automation
135
1361. Call `page` or `create` to obtain cloud phone `id`.
1372. Call `powerOn` to start.
1383. Call `info` to get ADB connection params.
1394. Call `updateAdb` when needed to enable ADB.
1405. Run supported cloud phone management endpoints only (no direct command execution).
1416. Call `powerOff` when done.
142
143## Quick Examples (Official API)
144
145```bash
146# 1) Quick create browser profile
147curl -X POST "http://127.0.0.1:40000/api/env/create/quick" \
148 -H "Content-Type: application/json" \
149 -d '{"browserTypeId":1,"operatorSystemId":1,"quantity":1}'
150
151# 2) Start profile
152curl -X POST "http://127.0.0.1:40000/api/env/start" \
153 -H "Content-Type: application/json" \
154 -d '{"envId":"<envId>"}'
155
156# 3) Cloud phone power on
157curl -X POST "http://127.0.0.1:40000/api/cloudphone/powerOn" \
158 -H "Content-Type: application/json" \
159 -d '{"id":"<cloudPhoneId>"}'
160
161# 4) Query cloud phone detail (including ADB info)
162curl -X POST "http://127.0.0.1:40000/api/cloudphone/info" \
163 -H "Content-Type: application/json" \
164 -d '{"id":"<cloudPhoneId>"}'
165```
166
167## CLI Usage (This Project)
168
169Prefer project-wrapped commands; fall back to `curl` when needed:
170
171Entry equivalence note: `openclaw morelogin ...` and `node bin/morelogin.js ...` are fully equivalent (same arguments, same behavior, same exit code). Use either one based on your runtime environment.
172
173```bash
174# Browser profile
175openclaw morelogin browser list
176openclaw morelogin browser start --env-id <envId>
177openclaw morelogin browser status --env-id <envId>
178openclaw morelogin browser close --env-id <envId>
179
180# Cloud phone
181openclaw morelogin cloudphone list
182openclaw morelogin cloudphone start --id <cloudPhoneId>
183openclaw morelogin cloudphone info --id <cloudPhoneId>
184
185## Response & Error Handling
186
187Parse responses with the following structure:
188
189```json
190{
191 "code": 0,
192 "msg": null,
193 "data": {},
194 "requestId": "..."
195}
196```
197
198Handling rules:
199
200- `code == 0`: Proceed, extract `data`.
201- `code != 0`: Output `msg`, mark failed step, suggest next fix.
202- For `start/powerOn` operations, call `status/info` again before subsequent steps to confirm.
203
204## Security & Limits
205
206- Local API listens on localhost only; no remote access.
207- Can be called only when MoreLogin account is logged in.
208- Do not expose account, proxy passwords, ADB keys, or other sensitive data in logs or code.
209- Double-check target ID lists before batch delete, cache clear, or app uninstall.
210
211## Security Notice
212
213This skill no longer provides local ADB/SSH connection methods (`adb-connect`, `adb-disconnect`, `adb-devices`).
214
215Command execution safeguards:
216
217- Restricted to local automation context (localhost workflows and local API).
218- Remote cloud phone `exec` is disabled by default and must be explicitly enabled.
219- `exec` command content is validated against a safe allowlist and blocks shell metacharacters.
220- Generic `api` passthrough is endpoint-allowlisted by default.
221
222## When Not to Use This Skill
223
224- MoreLogin is not installed, not running, or not logged in.
225- Requirements are for regular browser automation (no MoreLogin environment isolation).
226- Requirements depend on remote access to Local API over the network.
227
228## Related Files
229
230- `bin/morelogin.js`
231- `lib/api.js`
232- `local-api.yaml`
233- `API-CONTRACT.md`
234- `README-OFFICIAL-API.md`