AgentSkillsCN

next-browser

利用 Nextbrowser 云 API 启动云端浏览器,供 Openclaw 执行自主浏览器任务。主要用途是创建带有配置文件(已保存的登录信息/Cookie)的浏览器会话,Openclaw 可通过这些会话控制社交媒体及其他在线账户。次要用途则是运行任务子代理,在住宅代理、浏览器隐身模式以及验证码破解能力的支持下,实现快速的自主浏览器自动化。文档请参阅 docs.nextbrowser.com。

SKILL.md
--- frontmatter
name: next-browser
description: Use Nextbrowser cloud API to spin up cloud browsers for Openclaw to run autonomous browser tasks. Primary use is creating browser sessions with profiles (persisted logins/cookies) that Openclaw can control to manage social media and other online accounts. Secondary use is running task subagents for fast autonomous browser automation under residential proxy, browser stealth, and CAPTCHA solving capability. Docs at docs.nextbrowser.com.

Nextbrowser

Nextbrowser provides cloud browsers and autonomous browser automation via API.

Docs:

Setup

API Key is read from openclaw config at skills.entries.next-browser.apiKey.

If not configured, tell the user:

To use Nextbrowser, you need an API key. Get one at https://app.nextbrowser.com/user-settings (new signups get 2000 free credits). Then configure it:

code
openclaw config set skills.entries.next-browser.apiKey "nb_your_key_here"

Base URL: https://app.nextbrowser.com/api/v1

All requests need header: Authorization: x-api-key <apiKey>


1. Profiles

Profiles persist cookies and login state across browser sessions. Create one, log into your accounts in the browser, and reuse it.

bash
# List profiles
curl "https://app.nextbrowser.com/api/v1/browser/profiles" -H "Authorization: x-api-key $API_KEY"

# Create browser profile
curl -X POST "https://app.nextbrowser.com/api/v1/browser/profiles" \
  -H "Authorization: x-api-key $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "<profile-name>", "browser_settings": {"os_type": "<os-type>", "browser_type": "chrome"},
   "proxy_settings":{"protocol":"<http|https|socks5>","country":"<iso-2-country-code>","mode":"built-in"}}'

# Delete profile
curl -X DELETE "https://app.nextbrowser.com/api/v1/browser/profiles/<profile-id>" \
  -H "Authorization: x-api-key $API_KEY"

2. Credentials Manager

The Credentials Manager securely stores and reuses authentication data across browser runs and autonomous tasks.

bash
# List credentials
curl "https://app.nextbrowser.com/api/v1/users/credentials" -H "Authorization: x-api-key $API_KEY"

3. Tasks (Subagent)

Run autonomous browser tasks - like a subagent that handles browser interactions for you. Give it a prompt and it completes the task.

Always use fast mode - optimized for browser tasks, 3-5x faster than other models. Always use true for skip_plan_approval - optimized for automated tasks, skips the approval and improve performance.

bash
curl -X POST "https://app.nextbrowser.com/api/v1/chat/tasks" \
  -H "Authorization: x-api-key $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task_description": "'"\
Go to Reddit.com account, check if the account is logged in (if not, use credentials stored). \
Find 10 relevant posts on the topic of AI Agents, upvote 8 of them and post 3 witty-sounding comments \
that a cynical and funny Reddit user would post. Ensure that the comment is posted, ask for approval \
if you are not sure whether such comment is okay. By the end, you should have at least 10 relevant posts \
viewed, 8 upvotes, and 3 comments."\
"'",
    "mode": "fast",
    "profile_id": "<profile-id>",
    "credentials": ["<credential-id>"],
    "skip_plan_approval": true
  }'

Poll for completion

bash
curl "https://app.nextbrowser.com/api/v1/chat/tasks/<task-id>" -H "Authorization: x-api-key $API_KEY"

Response:

json
{
    "success": true,
    "payload": {
        "status": "finished",
        "output": "Task completed. 10 relevant posts are viewed, 8 upvotes are done and 3 comments posted.",
        "isSuccess": true
    },
    "errors": {},
    "description": "Task retrieved successfully"
}

Status values: processing, finished, failed

Task options

OptionDescription
task_descriptionYour prompt (required)
modeAlways use fast
profile_idUse a profile for auth
credentialsList of credential IDs for login
skip_plan_approvalAlways use true

Full API Reference

See references/api.md for all endpoints including Sessions, Files, Skills, and Skills Marketplace.