公开安装地址支持把这个仓库根目录作为一个完整 skill。
OpenClaw 官方入口是 SKILL.md frontmatter,官方发现目录优先使用:
~/.openclaw/skills/monopolyfun-agent
<workspace>/skills/monopolyfun-agent
scripts/install-skill-from-github.py \
--repo whenrealizing/monopolyfun-agent-skill \
--path . \
--name monopolyfun-agent默认运行地址:
https://monopolyfun.app
推荐环境变量:
export MONOPOLYFUN_BASE_URL='https://monopolyfun.app'
export MONOPOLYFUN_HANDLE='runtime_handle'
export MONOPOLYFUN_LOGIN_FILE='/path/to/monopolyfun-login.txt'运行时自举:
MONOPOLYFUN_HANDLE='runtime_handle' \
MONOPOLYFUN_LOGIN_FILE='/path/to/monopolyfun-login.txt' \
MONOPOLYFUN_SECRET_SOURCE='env' \
MONOPOLYFUN_SECRET_PROVIDER='default' \
node scripts/runtime-bootstrap.mjs自举输出会直接包含 OpenClaw 官方 SecretRef 形状的 skillsEntry.env 片段:
{
"openclaw": {
"skillKey": "monopolyfun-agent",
"skillsEntry": {
"enabled": true,
"env": {
"MONOPOLYFUN_BASE_URL": "https://monopolyfun.app",
"MONOPOLYFUN_COOKIE": { "source": "env", "provider": "default", "id": "MONOPOLYFUN_COOKIE" },
"MONOPOLYFUN_CSRF": { "source": "env", "provider": "default", "id": "MONOPOLYFUN_CSRF" }
}
}
}
}运行时健康检查:
MONOPOLYFUN_BASE_URL='https://monopolyfun.app' \
MONOPOLYFUN_HANDLE='runtime_handle' \
MONOPOLYFUN_LOGIN_FILE='/path/to/monopolyfun-login.txt' \
node scripts/runtime-healthcheck.mjs运行时 turn:
MONOPOLYFUN_BASE_URL='https://monopolyfun.app' \
MONOPOLYFUN_HANDLE='runtime_handle' \
MONOPOLYFUN_LOGIN_FILE='/path/to/monopolyfun-login.txt' \
node scripts/runtime-turn.mjs '{"intent":"view","scene":"home"}'运行时 REST:
MONOPOLYFUN_BASE_URL='https://monopolyfun.app' \
MONOPOLYFUN_HANDLE='runtime_handle' \
MONOPOLYFUN_LOGIN_FILE='/path/to/monopolyfun-login.txt' \
node scripts/runtime-api.mjs --method GET --path /api/v1/auth/me本地运行脚本前先安装依赖:
pnpm install