← 返回 Skills 市场
adwilkinson

HL Privateer

作者 Andrew Wilkinson · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
667
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install hl-privateer-fund
功能描述
Access HL Privateer, an open agentic Hyperliquid discretionary trading desk. Read live positions, AI analysis, copy-trade signals, and risk state via x402 pa...
使用说明 (SKILL.md)

HL Privateer -- Agent Skill

HL Privateer is an open, agentic discretionary trading desk on Hyperliquid. A fund of autonomous agents making discretionary long/short calls -- positions, analysis, signals, and risk state are all accessible via paid x402 endpoints.

You are an agent. You can follow our trades, read our analysis, copy our positions, or integrate our signals into your own strategy. Pay per call. No API keys. No sign-ups. Just x402.

Skill Files

This skill package contains the following files, all served at https://hlprivateer.xyz/skills/:

File Purpose
hl-privateer.md This file. Primary skill definition with full instructions.
llms.txt Agent-oriented quick start and endpoint catalog.
api.md Complete REST + WebSocket API reference.
x402.md x402 payment quickstart with example flows.
agents.json Machine-readable OpenAgents v1 discovery document.

Quick Start

  1. Hit any agent endpoint: GET https://api.hlprivateer.xyz/v1/agent/stream/snapshot
  2. Receive 402 Payment Required with PAYMENT-REQUIRED header containing payment instructions
  3. Decode the header (Base64 JSON) to get price, network, payTo address, and facilitator URL
  4. Create and sign an x402 payment payload for the specified amount (USDC on Base)
  5. Retry the same request with the PAYMENT-SIGNATURE header containing the signed payment (Base64 JSON)
  6. Receive data in the 200 response plus PAYMENT-RESPONSE settlement header

Base URLs

  • REST API: https://api.hlprivateer.xyz
  • WebSocket: wss://ws.hlprivateer.xyz
  • Web UI: https://hlprivateer.xyz

x402 Payment Details

  • Network: Base (eip155:8453)
  • Asset: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
  • Facilitator: https://facilitator.payai.network
  • Protocol: x402 v2 (exact scheme)

See x402.md in this directory for the full payment flow with curl examples.

Paid Endpoints (x402)

All endpoints are GET requests against https://api.hlprivateer.xyz. Pay per call via x402.

$0.01/call

Endpoint What You Get
/v1/agent/stream/snapshot Mode, PnL%, health, open positions, recent ops tape
/v1/agent/positions Full position array -- symbols, sides, sizes, entries, PnL
/v1/agent/orders Open orders on the book
/v1/agent/analysis?latest=true Latest AI strategist analysis with thesis and signals
/v1/agent/analysis Analysis history (paginated, filterable by correlationId)

$0.02/call

Endpoint What You Get
/v1/agent/insights?scope=market Risk config, signal timeline, account snapshot
/v1/agent/insights?scope=ai Full dashboard: floor state, risk, analysis, copy summary

$0.03/call

Endpoint What You Get
/v1/agent/copy/trade?kind=signals Audit trail of proposals, analysis, risk decisions, basket events
/v1/agent/copy/trade?kind=positions Position data formatted for copy-trading

Free Endpoints (no payment required)

Endpoint What You Get
/v1/public/pnl Current PnL% and runtime mode
/v1/public/floor-snapshot Mode, PnL%, health, account value, positions, ops tape
/v1/public/floor-tape Recent ops log lines from all agent roles
/healthz Service health check

Example: Check Current PnL (free)

curl https://api.hlprivateer.xyz/v1/public/pnl
{
  "pnlPct": 1.92,
  "mode": "READY",
  "updatedAt": "2026-02-13T16:20:00Z"
}

Agent Use Cases

Copy Trading

Read positions and signals to mirror trades on your own account.

  1. Poll /v1/agent/positions for current positions ($0.01)
  2. Poll /v1/agent/copy/trade?kind=signals for entry/exit signals ($0.03)
  3. Poll /v1/agent/copy/trade?kind=positions for copy-formatted position data ($0.03)

Signal Integration

Consume analysis and risk signals to inform your own strategy.

  1. Read /v1/agent/analysis?latest=true for the latest strategist thesis ($0.01)
  2. Read /v1/agent/insights?scope=ai for full AI floor summary ($0.02)
  3. Subscribe to WebSocket at wss://ws.hlprivateer.xyz for real-time floor tape

Monitoring / Dashboard

Build a monitoring view or alerting system.

  1. Free: Poll /v1/public/floor-snapshot for mode, PnL, positions
  2. Paid: Read /v1/agent/stream/snapshot for richer health and ops data ($0.01)
  3. Paid: Read /v1/agent/insights?scope=market for risk config and signal timeline ($0.02)

Portfolio Composition Research

Understand how the desk constructs and manages its basket.

  1. Read /v1/agent/analysis for historical analysis entries ($0.01)
  2. Read /v1/agent/insights?scope=ai for the full AI dashboard ($0.02)
  3. Read /v1/agent/copy/trade?kind=signals for the full proposal audit trail ($0.03)

WebSocket Protocol

Connect to wss://ws.hlprivateer.xyz for real-time events.

Subscribe to channels

{ "type": "sub.add", "channel": "public.tape" }

Receive events

{
  "type": "event",
  "channel": "public.tape",
  "payload": {
    "eventType": "FLOOR_TAPE",
    "role": "strategist",
    "line": "LONG HYPE -- momentum breakout, funding neutral"
  }
}

Client message types

Type Purpose
sub.add Subscribe to a channel
sub.remove Unsubscribe from a channel
cmd.exec Execute a command (requires auth)
ping Keepalive

Server message types

Type Purpose
sub.ack Subscription confirmed
event Channel event payload
cmd.result Command execution result
error Error response
pong Keepalive response

How The Desk Works

HL Privateer runs autonomous agents on a single Hyperliquid account:

  • Strategist: scans 50+ perp markets, generates long/short proposals with thesis and sizing
  • Research: regime hypotheses, macro context, funding analysis, social sentiment
  • Risk: explains risk posture (advisory only -- hard-gated by deterministic risk engine)
  • Execution: suggests tactics, annotates slippage expectations
  • Ops: monitors feeds, service health, circuit breakers (3s heartbeat)
  • Market Data: detects stale feeds, regime shifts, funding divergences
  • Scribe: produces audit narratives for each proposal cycle

All proposals pass through a deterministic risk engine (fail-closed) before execution. No agent can bypass risk limits. The human operator holds kill-switch authority.

Runtime Modes

Mode Meaning
INIT Starting up, loading keys and config
WARMUP Collecting initial market data window
READY Flat, watching for opportunities
IN_TRADE Active long/short positions
REBALANCE Adjusting position weights for parity
HALT Operator-initiated stop
SAFE_MODE Automatic safety stop (dependency or data failure)

Error Responses

All errors follow a standard envelope:

{
  "error": {
    "code": "RISK_DENY",
    "message": "Proposal denied by max drawdown rule",
    "requestId": "req_01J..."
  }
}

Common error codes:

Code Meaning
PAYMENT_REQUIRED x402 payment needed (HTTP 402)
UNAUTHORIZED Missing or invalid authentication
FORBIDDEN Insufficient tier or capability
RISK_DENY Risk engine denied the action
RATE_LIMITED Too many requests
INTERNAL_ERROR Server error

Further Reading

安全使用建议
This package is coherent with its advertised function (paid trading endpoints using x402) but you should be careful before using it: to access most endpoints you must sign x402 payment challenges, which requires a wallet signing key or external signer. The skill does not declare that credential requirement, and its examples show placing a raw private key in code — avoid pasting private keys into an agent or skill. If you want to use this safely: (1) prefer signing with an external wallet or hardware wallet (WalletConnect/hw signer) rather than providing a raw private key to the agent; (2) use an ephemeral wallet funded with only the minimum funds necessary for small test payments; (3) verify the domain and facilitator (api.hlprivateer.xyz and facilitator.payai.network) independently before sending funds; (4) never store long-term secrets in agent-visible config; (5) be cautious about allowing autonomous agents to perform payments — require manual confirmation for signing. If you need stronger assurance, ask the publisher to explicitly declare credential requirements and provide a safer signing integration (e.g., redirect to an external wallet signer) rather than examples that embed private keys.
功能分析
Type: OpenClaw Skill Name: hl-privateer-fund Version: 1.0.1 This skill is classified as suspicious due to its core functionality involving direct financial transactions (x402 payments on the Base network) and the ability to execute commands on a remote trading service. While these capabilities are explicitly stated as the skill's purpose and are necessary for its function, they inherently carry significant financial risk and the potential for misuse if the agent were compromised or misdirected. Specifically, SKILL.md and x402.md instruct the agent to make payments, requiring access to a wallet and transaction signing capabilities. Additionally, SKILL.md and api.md describe `cmd.exec` capabilities via WebSocket and a `POST /v1/agent/command` endpoint, allowing the agent to send commands to the remote service. Although the provided examples for these commands are benign (e.g., `/status`), the primitive itself is powerful and could be exploited if the remote service allows dangerous commands or if future instructions were to direct the agent to execute harmful commands. There is no evidence of intentional malicious behavior, data exfiltration, or prompt injection with a harmful objective within the provided files.
能力评估
Purpose & Capability
The name/description match the provided files: a REST/WebSocket API exposing trading positions, analysis, copy-trade signals gated by x402 payments. Network access to api.hlprivateer.xyz and the x402 payment flow are consistent with the stated purpose.
Instruction Scope
Instructions are narrowly scoped to calling the REST/WebSocket endpoints and performing the x402 pay-per-call flow. However, the docs include explicit code examples that require a private key (privateKeyToAccount('0x<your-private-key>')) and show signing client code — which may prompt an agent to request or handle sensitive keys. The SKILL.md does not instruct reading unrelated system files, but the payment flow implicitly requires signing capability.
Install Mechanism
No install spec or code is included (instruction-only). Nothing is written to disk by an installer; lowest install risk.
Credentials
The skill does not declare required environment variables or a primary credential, yet its operation requires a wallet/private-key capable of signing x402 payments (or an external signer). The package shows examples that embed private keys in code — a sensitive requirement that is not declared. This is disproportionate only insofar as the skill fails to declare how credentials should be provided and encourages insecure handling.
Persistence & Privilege
always is false and there is no instruction to modify other skills or system-wide config. The skill does not request permanent platform-level privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hl-privateer-fund
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hl-privateer-fund 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1 Changelog - Corrected agent crew: 7 roles (added strategist, scribe, scout) - Documented all 12 risk engine gates with denial codes - Added missing API endpoints (login, refresh, replay export, floor-tape) - Updated StrategyProposal and RiskConfig schemas to match live contracts - Updated WebSocket protocol to match typed message schemas - Removed unimplemented features from docs (volatility breaker, per-symbol exposure cap)
v1.0.0
Initial publish — full endpoint catalog, x402 payment flow, WebSocket protocol, copy-trading and signal integration use cases.
元数据
Slug hl-privateer-fund
版本 1.0.1
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

HL Privateer 是什么?

Access HL Privateer, an open agentic Hyperliquid discretionary trading desk. Read live positions, AI analysis, copy-trade signals, and risk state via x402 pa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 667 次。

如何安装 HL Privateer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hl-privateer-fund」即可一键安装,无需额外配置。

HL Privateer 是免费的吗?

是的,HL Privateer 完全免费(开源免费),可自由下载、安装和使用。

HL Privateer 支持哪些平台?

HL Privateer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 HL Privateer?

由 Andrew Wilkinson(@adwilkinson)开发并维护,当前版本 v1.0.1。

💬 留言讨论