← Back to Skills Marketplace
morebetterclaw

FORGE — Cross-Chain Swap Agent

by morebetterclaw · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
207
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install forge-swap
Description
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...
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install forge-swap
  3. After installation, invoke the skill by name or use /forge-swap
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release: THORChain routing, MCP (Streamable HTTP), 44 assets, forgemb affiliate fee
Metadata
Slug forge-swap
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 207 downloads so far.

How do I install FORGE — Cross-Chain Swap Agent?

Run "/install forge-swap" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is FORGE — Cross-Chain Swap Agent free?

Yes, FORGE — Cross-Chain Swap Agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does FORGE — Cross-Chain Swap Agent support?

FORGE — Cross-Chain Swap Agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created FORGE — Cross-Chain Swap Agent?

It is built and maintained by morebetterclaw (@morebetterclaw); the current version is v0.1.0.

💬 Comments