← 返回 Skills 市场
morebetterclaw

FORGE — Cross-Chain Swap Agent

作者 morebetterclaw · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
207
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install forge-swap
功能描述
Cross-chain swap routing via THORChain. Get quotes and build swap transactions across 44+ assets (BTC, ETH, RUNE, AVAX, USDC and more). Non-custodial — retur...
使用说明 (SKILL.md)

FORGE — Cross-Chain Swap Agent

Non-custodial cross-chain swaps powered by THORChain. Routes quotes across 44+ assets via the THORNode API directly. Every swap embeds a 0.5% affiliate fee to forgemb — protocol-native, trustless, settled in RUNE.

Live API

Base:      https://forge-api-production-50de.up.railway.app
MCP:       https://forge-api-production-50de.up.railway.app/mcp
Discovery: https://forge-api-production-50de.up.railway.app/.well-known/mcp.json

MCP Tools (Claude Desktop / Cursor / any MCP client)

{
  "mcpServers": {
    "forge": {
      "url": "https://forge-api-production-50de.up.railway.app/mcp",
      "transport": "streamable-http"
    }
  }
}

Tools: forge_quote · forge_execute · forge_assets · forge_status

REST API

# Get a quote
curl -X POST https://forge-api-production-50de.up.railway.app/swap/quote \
  -H "Content-Type: application/json" \
  -d '{"fromAsset":"ETH.ETH","toAsset":"BTC.BTC","amount":"0.1"}'

# Build swap transaction (returns vault address + memo — no funds sent)
curl -X POST https://forge-api-production-50de.up.railway.app/swap/execute \
  -H "Content-Type: application/json" \
  -d '{"fromAsset":"ETH.ETH","toAsset":"THOR.RUNE","amount":"0.05","destinationAddress":"thor1..."}'

# List supported assets
curl https://forge-api-production-50de.up.railway.app/swap/assets

How It Works

  1. Call /swap/execute with from/to asset and destination address
  2. FORGE returns a vault deposit address and THORChain memo
  3. User's wallet sends funds to vault address with memo as calldata
  4. THORChain protocol routes the swap — FORGE never holds funds
  5. forgemb earns 0.5% affiliate fee embedded in the memo, settled natively

Asset Format

Assets use CHAIN.TICKER format:

  • ETH.ETH — Ethereum native
  • BTC.BTC — Bitcoin
  • THOR.RUNE — THORChain native
  • AVAX.AVAX — Avalanche native
  • ETH.USDC-0xA0b86... — ERC-20 tokens include contract address

Environment Variables (self-hosted)

FEE_RECIPIENT_ADDRESS=forgemb   # THORName or thor1... address for affiliate fees
SWAP_FEE_BPS=50                 # 50 = 0.5%
PORT=3000
ALLOWED_ORIGINS=*

Revenue Model

Every swap routed through FORGE earns 0.5% to forgemb (THORChain name for thor1yfrfgjgnzkjqqgv02yxn3j3kv50pe0rnhvs8zw). Fees are embedded in the THORChain memo and settled by the protocol — no invoicing, no off-chain reconciliation.

安全使用建议
This skill is coherent for routing THORChain swaps, but it requires trusting the external API to construct the vault address and memo that your wallet will use — that is the single point that can steal funds if malicious or compromised. Before using: (1) verify the API/operator (check the GitHub repo, TLS certs, domain ownership); (2) prefer self-hosting the API if you need stronger trust guarantees; (3) test with very small amounts first; (4) independently verify any returned vault address and memo format against known THORChain tooling; and (5) note the disclosed 0.5% affiliate fee (forgemb) embedded in memos so you understand routing costs. If you need higher assurance, ask the maintainer for an auditable implementation or run the service from your own infrastructure.
功能分析
Type: OpenClaw Skill Name: forge-swap Version: 0.1.0 The skill provides a non-custodial interface for THORChain cross-chain swaps, allowing users to generate quotes and transaction memos for 44+ assets. It transparently discloses a 0.5% affiliate fee model (sent to 'forgemb') and functions by providing vault addresses for the user's wallet to interact with directly. There are no indicators of data exfiltration, malicious code execution, or prompt injection in the SKILL.md or _meta.json files.
能力评估
Purpose & Capability
The name, description, and SKILL.md all describe a THORChain cross‑chain swap router and the file provides API endpoints, MCP config, and swap/quote/asset examples that match that purpose. No unrelated binaries, credentials, or surprising install steps are requested.
Instruction Scope
Runtime instructions instruct the agent to call the listed forge API endpoints (/swap/quote, /swap/execute, /swap/assets) and return vault deposit addresses and THORChain memos. The instructions do not attempt to read local files or unrelated environment variables, but they do rely on a third‑party server to construct critical on‑chain parameters (vault address and memo). That is expected for this service but represents a trust and safety consideration: if the API is malicious or compromised it could provide attacker-controlled addresses/memos.
Install Mechanism
This is instruction-only (no install spec, no code files), so nothing is written to disk by an installer. Lowest install risk.
Credentials
The skill declares no required environment variables or credentials. The SKILL.md shows optional self-host env vars (FEE_RECIPIENT_ADDRESS, SWAP_FEE_BPS, PORT, ALLOWED_ORIGINS) which are reasonable for a forkable/self-hosted service. There are no unexpected secret requests.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system privileges. It is user-invocable and can be invoked autonomously (platform default), which is normal for skills. It does not modify other skills or system config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install forge-swap
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /forge-swap 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: THORChain routing, MCP (Streamable HTTP), 44 assets, forgemb affiliate fee
元数据
Slug forge-swap
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

FORGE — Cross-Chain Swap Agent 是什么?

Cross-chain swap routing via THORChain. Get quotes and build swap transactions across 44+ assets (BTC, ETH, RUNE, AVAX, USDC and more). Non-custodial — retur... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。

如何安装 FORGE — Cross-Chain Swap Agent?

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

FORGE — Cross-Chain Swap Agent 是免费的吗?

是的,FORGE — Cross-Chain Swap Agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

FORGE — Cross-Chain Swap Agent 支持哪些平台?

FORGE — Cross-Chain Swap Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 FORGE — Cross-Chain Swap Agent?

由 morebetterclaw(@morebetterclaw)开发并维护,当前版本 v0.1.0。

💬 留言讨论