Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

spacerouterspacerouter 开发

Agent Skill

spacerouter 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,152

周安装

333

GitHub Stars

公开资料未说明

下载量

2,637
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:spacerouter(spacerouter 开发)
来源仓库:https://github.com/taelimoh/spacerouter
安装命令:
openclaw skills install spacerouter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install spacerouter

简介

通过住宅 IP 代理网络路由 HTTP 流量。

  • 适用于开发测试或多地域访问模拟。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 使用 clawhub 安装并配置代理规则。
  • 注意带宽消耗与本地端口冲突问题。
  • spacerouter 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
space-router
description
Route HTTP traffic through Space Router residential IP proxy network.
metadata
{"openclaw": {"requires": {"env": ["SPACE_ROUTER_PROXY_URL"]}, "primaryEnv": "SPACE_ROUTER_PROXY_URL"}}

Space Router — Residential IP Proxy Routing

Route your HTTP requests through residential IP addresses via Space Router's forward proxy.

Setup

The environment variable SPACE_ROUTER_PROXY_URL must contain your full proxy URL including API key credentials:

SPACE_ROUTER_PROXY_URL=https://sr_live_YOUR_API_KEY@gateway.spacerouter.org

The default gateway is https://gateway.spacerouter.org (port 443). For local development the host is typically localhost:8080.

When to Use This Skill

Use Space Router when a task requires any of the following:

  • Accessing a website that blocks datacenter IPs or cloud provider IP ranges
  • Web scraping where you need residential IP rotation
  • The user explicitly asks you to route traffic through a residential proxy
  • A previous HTTP request failed with a 403 or CAPTCHA challenge suggesting IP-based blocking
  • The user says to use "Space Router", "residential proxy", or "residential IP"

Do NOT route through the proxy when:

  • Accessing local services (localhost, 127.0.0.1, internal hostnames)
  • Accessing APIs that authenticate by IP allowlist (the residential IP will not be allowlisted)
  • The user explicitly says to make a direct request

How to Route Traffic

Python SDK (recommended for Python)

pip install spacerouter
from spacerouter import SpaceRouter

with SpaceRouter("sr_live_YOUR_API_KEY") as client:
    resp = client.get("https://example.com")
    print(resp.status_code, resp.request_id)

Async usage:

from spacerouter import AsyncSpaceRouter

async with AsyncSpaceRouter("sr_live_YOUR_API_KEY") as client:
    resp = await client.get("https://example.com")
    print(resp.status_code, resp.request_id)

JavaScript/TypeScript SDK (recommended for Node.js)

npm install @spacenetwork/spacerouter
import { SpaceRouter } from "@spacenetwork/spacerouter";

const client = new SpaceRouter("sr_live_YOUR_API_KEY");
const resp = await client.get("https://example.com");
console.log(resp.status, resp.requestId);
client.close();

CLI (for shell scripts and quick tasks)

pip install spacerouter-cli
spacerouter config set api-key sr_live_YOUR_API_KEY
spacerouter request get https://example.com

Other useful CLI commands:

spacerouter status                    # Check service health
spacerouter api-key list              # List API keys
spacerouter node list                 # List proxy nodes
spacerouter request get https://httpbin.org/ip --region US

curl / environment variables

Set HTTP_PROXY and HTTPS_PROXY so all HTTP clients in the shell session use the proxy automatically:

export HTTP_PROXY="$SPACE_ROUTER_PROXY_URL"
export HTTPS_PROXY="$SPACE_ROUTER_PROXY_URL"

Or pass the proxy explicitly to curl:

curl -x "$SPACE_ROUTER_PROXY_URL" https://httpbin.org/ip

Region Targeting

Route requests through residential IPs in a specific country using ISO 3166-1 alpha-2 codes (e.g. US, KR, JP, DE):

Python:

client = SpaceRouter("sr_live_xxx", region="US")

# Change region on the fly (returns a new client)
jp_client = client.with_routing(region="JP")

JavaScript:

const client = new SpaceRouter("sr_live_xxx", { region: "US" });
const jpClient = client.withRouting({ region: "JP" });

curl:

curl -x "$SPACE_ROUTER_PROXY_URL" -H "X-SpaceRouter-Region: US" https://httpbin.org/ip

IP Type Filtering

Filter proxy nodes by IP address type: residential, mobile, datacenter, or business.

Python:

client = SpaceRouter("sr_live_xxx", ip_type="mobile")

JavaScript:

const client = new SpaceRouter("sr_live_xxx", { ipType: "mobile" });

SOCKS5 Support

Both SDKs support SOCKS5 as an alternative proxy protocol (default port 1080):

Python:

pip install spacerouter[socks]

client = SpaceRouter("sr_live_xxx", protocol="socks5", gateway_url="socks5://gateway:1080")

JavaScript:

const client = new SpaceRouter("sr_live_xxx", {
  protocol: "socks5",
  gatewayUrl: "socks5://gateway:1080",
});

Verifying the Proxy Works

After configuring the proxy, confirm that traffic is routed through a residential IP:

curl -x "$SPACE_ROUTER_PROXY_URL" https://httpbin.org/ip

The returned IP should differ from your machine's public IP. You can also run the verification script:

bash {baseDir}/scripts/verify-proxy.sh

Error Handling

The SDKs raise typed exceptions for proxy-layer errors:

ExceptionHTTP StatusMeaningWhat to Do
AuthenticationError407API key missing or invalidCheck that the API key has prefix sr_live_
RateLimitError429Rate limit exceededWait retry_after seconds and retry
UpstreamError502Residential node could not reach targetRetry; the proxy will try a different node
NoNodesAvailableError503No residential nodes availableWait and retry; nodes may be temporarily offline

Python example:

from spacerouter import SpaceRouter, RateLimitError
import time

with SpaceRouter("sr_live_xxx") as client:
    try:
        resp = client.get("https://example.com")
    except RateLimitError as e:
        time.sleep(e.retry_after)

JavaScript example:

import { SpaceRouter, RateLimitError } from "@spacenetwork/spacerouter";

const client = new SpaceRouter("sr_live_xxx");
try {
  const resp = await client.get("https://example.com");
} catch (e) {
  if (e instanceof RateLimitError) {
    await new Promise((r) => setTimeout(r, e.retryAfter * 1000));
  }
}

Response Headers

Space Router adds these headers to proxied responses:

HeaderMeaning
X-SpaceRouter-Request-IdUnique request ID for debugging

Routing headers sent on the proxy CONNECT request:

HeaderMeaning
X-SpaceRouter-RegionTarget region (2-letter country code)
X-SpaceRouter-IP-TypeTarget IP type (residential, mobile, etc.)

Important Notes

  • The default gateway is https://gateway.spacerouter.org (HTTPS, port 443). The proxy establishes a CONNECT tunnel for TLS traffic — your end-to-end encryption is preserved.
  • When using the SPACE_ROUTER_PROXY_URL env var with curl, the URL scheme may be HTTP even for HTTPS targets. The proxy handles TLS tunneling.
  • Do not put the proxy URL in NO_PROXY or bypass lists.
  • API keys have the prefix sr_live_ and are passed as the username in the proxy URL (password is empty).
  • Rate limits are per API key, default 60 requests per minute.
  • The Python SDK requires Python >= 3.10. The JS SDK requires Node.js >= 18.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.97%
按下载量换算2,135

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills