{
  "schemaVersion": "1.0",
  "item": {
    "slug": "v2rayn",
    "name": "V2rayn",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/qiangwang375-wq/v2rayn",
    "canonicalUrl": "https://clawhub.ai/qiangwang375-wq/v2rayn",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/v2rayn",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=v2rayn",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/v2rayn"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/v2rayn",
    "agentPageUrl": "https://openagent3.xyz/skills/v2rayn/agent",
    "manifestUrl": "https://openagent3.xyz/skills/v2rayn/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/v2rayn/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "V2RayN Skill",
        "body": "Manage V2RayN proxy client on macOS with auto-failover."
      },
      {
        "title": "Overview",
        "body": "V2RayN is a V2Ray client for macOS. This skill helps manage nodes, test connections, auto-check for failures, and update subscriptions."
      },
      {
        "title": "Quick Status Check",
        "body": "# Check if V2RayN is running\nps aux | grep -i v2rayN | grep -v grep\n\n# Check listening ports\nlsof -i :10808 -i :10809 -i :10810 -i :7890 -i :7891 2>/dev/null\n\n# Test connection\ncurl -s --max-time 5 https://www.google.com -w \"\\nStatus: %{http_code}\\n\""
      },
      {
        "title": "Auto-Check Node Health (Every 30 min)",
        "body": "This skill automatically:\n\nCheck if current node is working\nIf failed, update subscription\nSelect a new working node"
      },
      {
        "title": "Implementation",
        "body": "Create a cron job:\n\n*/30 * * * * /path/to/check_v2rayn.sh"
      },
      {
        "title": "Check Script",
        "body": "#!/bin/bash\n# check_v2rayn.sh - Auto-check and failover for V2RayN\n\nLOG_FILE=\"$HOME/.openclaw/logs/v2rayn_check.log\"\nCONFIG_DIR=\"$HOME/Library/Application Support/v2rayN/guiConfigs\"\nMAIN_CONFIG=\"$CONFIG_DIR/guiNConfig.json\"\n\nlog() {\n    echo \"[$(date '+%Y-%m-%d %H:%M:%S')] $1\" | tee -a \"$LOG_FILE\"\n}\n\n# Test connection\ntest_connection() {\n    curl -s --max-time 5 -x socks5://127.0.0.1:10808 https://www.google.com -o /dev/null -w \"%{http_code}\" 2>/dev/null\n}\n\n# Get current node info\nget_current_node() {\n    python3 -c \"\nimport json\nwith open('$MAIN_CONFIG') as f:\n    d = json.load(f)\n    idx = d.get('currentServerIndex')\n    if idx is not None:\n        servers = d.get('vmess',[]) + d.get('vless',[]) + d.get('trojan',[])\n        if idx < len(servers):\n            print(servers[idx].get('remarks', 'Unknown'))\n        else:\n            print('Invalid index')\n    else:\n        print('No server selected')\n\" 2>/dev/null\n}\n\n# Main check\nlog \"=== Starting V2RayN health check ===\"\n\n# Test current connection\nRESULT=$(test_connection)\nlog \"Connection test result: $RESULT\"\n\nif [ \"$RESULT\" = \"200\" ]; then\n    log \"✅ Node is working: $(get_current_node)\"\n    exit 0\nelse\n    log \"❌ Node failed! Trying to recover...\"\n    \n    # Try to update subscription\n    log \"Updating subscription...\"\n    # Note: V2RayN CLI is limited, manual or external script needed\n    \n    log \"Please manually:\"\n    log \"1. Open V2RayN\"\n    log \"2. Update subscription\"\n    log \"3. Select a new node\"\n    \n    # Notify user\n    echo \"⚠️ V2RayN node failed! Please check manually.\"\n    exit 1\nfi"
      },
      {
        "title": "1. Check Node Status",
        "body": "# Test all common proxy ports\nfor port in 10808 10809 10810 7890 7891; do\n    result=$(curl -s --max-time 3 -x socks5://127.0.0.1:$port https://www.google.com -w \"%{http_code}\" 2>/dev/null)\n    echo \"Port $port: $result\"\ndone"
      },
      {
        "title": "2. List All Nodes",
        "body": "cat ~/Library/Application\\ Support/v2rayN/guiConfigs/guiNConfig.json | python3 -c \"\nimport json,sys\nd=json.load(sys.stdin)\nservers = d.get('vmess',[]) + d.get('vless',[]) + d.get('trojan',[]) + d.get('shadowsocks',[])\nprint(f'Total nodes: {len(servers)}')\nfor i, s in enumerate(servers):\n    print(f'{i+1}. {s.get(\\\"remarks\\\", s.get(\\\"name\\\", \\\"Unnamed\\\"))}')\n\""
      },
      {
        "title": "3. Get Current Node",
        "body": "python3 -c \"\nimport json\nwith open('$HOME/Library/Application Support/v2rayN/guiConfigs/guiNConfig.json') as f:\n    d = json.load(f)\n    idx = d.get('currentServerIndex')\n    if idx:\n        servers = d.get('vmess',[]) + d.get('vless',[]) + d.get('trojan',[])\n        if idx < len(servers):\n            s = servers[idx]\n            print(f'Current: {s.get(\\\"remarks\\\", \\\"Unknown\\\")}')\n            print(f'Protocol: {s.get(\\\"protocol\\\", \\\"trojan\\\")}')\n\""
      },
      {
        "title": "4. Test Specific Node",
        "body": "# Test current node\ncurl -s --max-time 5 -x socks5://127.0.0.1:10808 https://www.google.com\n\n# Test direct\ncurl -s --max-time 5 https://www.google.com"
      },
      {
        "title": "5. View Logs",
        "body": "ls -la ~/Library/Application\\ Support/v2rayN/guiLogs/\ntail -50 ~/Library/Application\\ Support/v2rayN/guiLogs/*.log 2>/dev/null | tail -30"
      },
      {
        "title": "6. Restart V2RayN",
        "body": "# Kill and restart\npkill -f v2rayN\nopen /Applications/v2rayN.app"
      },
      {
        "title": "7. Force Update Subscription",
        "body": "Note: V2RayN doesn't have a CLI for subscription update. You'll need to:\n\nOpen V2RayN GUI\nClick \"Update\" on your subscription"
      },
      {
        "title": "Configuration Files",
        "body": "FileDescriptionguiNConfig.jsonMain GUI config (nodes, settings)config.jsonV2Ray/Xray runtime configconfigPre.jsonSing-box config (if using TUN mode)"
      },
      {
        "title": "Node Not Working",
        "body": "Check logs: tail -50 ~/Library/Application Support/v2rayN/guiLogs/*.log\nTest port: lsof -i :10808\nTry different node in GUI\nUpdate subscription"
      },
      {
        "title": "All Nodes Invalid",
        "body": "Import new subscription\nOr add nodes manually in GUI"
      },
      {
        "title": "TUN Mode Not Working",
        "body": "Check if TUN interface exists: ifconfig | grep -i tun\nCheck configPre.json for TUN settings"
      }
    ],
    "body": "V2RayN Skill\n\nManage V2RayN proxy client on macOS with auto-failover.\n\nOverview\n\nV2RayN is a V2Ray client for macOS. This skill helps manage nodes, test connections, auto-check for failures, and update subscriptions.\n\nQuick Status Check\n# Check if V2RayN is running\nps aux | grep -i v2rayN | grep -v grep\n\n# Check listening ports\nlsof -i :10808 -i :10809 -i :10810 -i :7890 -i :7891 2>/dev/null\n\n# Test connection\ncurl -s --max-time 5 https://www.google.com -w \"\\nStatus: %{http_code}\\n\"\n\nAuto-Check Node Health (Every 30 min)\n\nThis skill automatically:\n\nCheck if current node is working\nIf failed, update subscription\nSelect a new working node\nImplementation\n\nCreate a cron job:\n\n*/30 * * * * /path/to/check_v2rayn.sh\n\nCheck Script\n#!/bin/bash\n# check_v2rayn.sh - Auto-check and failover for V2RayN\n\nLOG_FILE=\"$HOME/.openclaw/logs/v2rayn_check.log\"\nCONFIG_DIR=\"$HOME/Library/Application Support/v2rayN/guiConfigs\"\nMAIN_CONFIG=\"$CONFIG_DIR/guiNConfig.json\"\n\nlog() {\n    echo \"[$(date '+%Y-%m-%d %H:%M:%S')] $1\" | tee -a \"$LOG_FILE\"\n}\n\n# Test connection\ntest_connection() {\n    curl -s --max-time 5 -x socks5://127.0.0.1:10808 https://www.google.com -o /dev/null -w \"%{http_code}\" 2>/dev/null\n}\n\n# Get current node info\nget_current_node() {\n    python3 -c \"\nimport json\nwith open('$MAIN_CONFIG') as f:\n    d = json.load(f)\n    idx = d.get('currentServerIndex')\n    if idx is not None:\n        servers = d.get('vmess',[]) + d.get('vless',[]) + d.get('trojan',[])\n        if idx < len(servers):\n            print(servers[idx].get('remarks', 'Unknown'))\n        else:\n            print('Invalid index')\n    else:\n        print('No server selected')\n\" 2>/dev/null\n}\n\n# Main check\nlog \"=== Starting V2RayN health check ===\"\n\n# Test current connection\nRESULT=$(test_connection)\nlog \"Connection test result: $RESULT\"\n\nif [ \"$RESULT\" = \"200\" ]; then\n    log \"✅ Node is working: $(get_current_node)\"\n    exit 0\nelse\n    log \"❌ Node failed! Trying to recover...\"\n    \n    # Try to update subscription\n    log \"Updating subscription...\"\n    # Note: V2RayN CLI is limited, manual or external script needed\n    \n    log \"Please manually:\"\n    log \"1. Open V2RayN\"\n    log \"2. Update subscription\"\n    log \"3. Select a new node\"\n    \n    # Notify user\n    echo \"⚠️ V2RayN node failed! Please check manually.\"\n    exit 1\nfi\n\nManual Commands\n1. Check Node Status\n# Test all common proxy ports\nfor port in 10808 10809 10810 7890 7891; do\n    result=$(curl -s --max-time 3 -x socks5://127.0.0.1:$port https://www.google.com -w \"%{http_code}\" 2>/dev/null)\n    echo \"Port $port: $result\"\ndone\n\n2. List All Nodes\ncat ~/Library/Application\\ Support/v2rayN/guiConfigs/guiNConfig.json | python3 -c \"\nimport json,sys\nd=json.load(sys.stdin)\nservers = d.get('vmess',[]) + d.get('vless',[]) + d.get('trojan',[]) + d.get('shadowsocks',[])\nprint(f'Total nodes: {len(servers)}')\nfor i, s in enumerate(servers):\n    print(f'{i+1}. {s.get(\\\"remarks\\\", s.get(\\\"name\\\", \\\"Unnamed\\\"))}')\n\"\n\n3. Get Current Node\npython3 -c \"\nimport json\nwith open('$HOME/Library/Application Support/v2rayN/guiConfigs/guiNConfig.json') as f:\n    d = json.load(f)\n    idx = d.get('currentServerIndex')\n    if idx:\n        servers = d.get('vmess',[]) + d.get('vless',[]) + d.get('trojan',[])\n        if idx < len(servers):\n            s = servers[idx]\n            print(f'Current: {s.get(\\\"remarks\\\", \\\"Unknown\\\")}')\n            print(f'Protocol: {s.get(\\\"protocol\\\", \\\"trojan\\\")}')\n\"\n\n4. Test Specific Node\n# Test current node\ncurl -s --max-time 5 -x socks5://127.0.0.1:10808 https://www.google.com\n\n# Test direct\ncurl -s --max-time 5 https://www.google.com\n\n5. View Logs\nls -la ~/Library/Application\\ Support/v2rayN/guiLogs/\ntail -50 ~/Library/Application\\ Support/v2rayN/guiLogs/*.log 2>/dev/null | tail -30\n\n6. Restart V2RayN\n# Kill and restart\npkill -f v2rayN\nopen /Applications/v2rayN.app\n\n7. Force Update Subscription\n\nNote: V2RayN doesn't have a CLI for subscription update. You'll need to:\n\nOpen V2RayN GUI\nClick \"Update\" on your subscription\nConfiguration Files\nFile\tDescription\nguiNConfig.json\tMain GUI config (nodes, settings)\nconfig.json\tV2Ray/Xray runtime config\nconfigPre.json\tSing-box config (if using TUN mode)\nTroubleshooting\nNode Not Working\nCheck logs: tail -50 ~/Library/Application Support/v2rayN/guiLogs/*.log\nTest port: lsof -i :10808\nTry different node in GUI\nUpdate subscription\nAll Nodes Invalid\nImport new subscription\nOr add nodes manually in GUI\nTUN Mode Not Working\nCheck if TUN interface exists: ifconfig | grep -i tun\nCheck configPre.json for TUN settings"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/qiangwang375-wq/v2rayn",
    "publisherUrl": "https://clawhub.ai/qiangwang375-wq/v2rayn",
    "owner": "qiangwang375-wq",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/v2rayn",
    "downloadUrl": "https://openagent3.xyz/downloads/v2rayn",
    "agentUrl": "https://openagent3.xyz/skills/v2rayn/agent",
    "manifestUrl": "https://openagent3.xyz/skills/v2rayn/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/v2rayn/agent.md"
  }
}