A comprehensive developer toolkit for integrating Trails cross-chain infrastructure to enable seamless token swaps, payments, and smart contract execution across multiple blockchains.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install trails
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install trails using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Trails skill for Openclaw Skills provides a specialized framework for developers looking to implement cross-chain functionality without the complexity of manual bridge management. It offers three distinct integration pathways: a drop-in React Widget for immediate UI needs, a Headless SDK for custom user experiences, and a Direct API for server-side automation and non-React environments. By leveraging this skill, developers can unify liquidity across disparate networks, allowing users to pay, swap, or fund contracts using any token from any supported chain.
This integration is designed to work harmoniously with modern web stacks, specifically recommending React 19.1+ for optimal performance. It abstracts the intricate processes of quoting, committing, and executing cross-chain intents, making it an essential component of the Openclaw Skills ecosystem for anyone building decentralized finance (DeFi) or ecommerce applications that require chain-agnostic payment rails.
To set up the Trails integration within your Openclaw Skills workflow, follow these steps:
https://dashboard.trails.build.# For React/Next.js
NEXT_PUBLIC_TRAILS_API_KEY=your_api_key
# For Server-side/Node.js
TRAILS_API_KEY=your_api_key
pnpm add @0xtrails/trails
# Or for API-only environments
pnpm add @0xtrails/trails-api
TrailsProvider to enable the SDK hooks and UI components.The Trails skill organizes its cross-chain operations using a structured metadata schema to ensure reliability:
| Attribute | Type | Description |
|---|---|---|
| mode | String | The interaction pattern: 'pay', 'swap', 'fund', or 'earn'. |
| destinationChainId | Number | The target EIP-155 chain ID for the transaction. |
| destinationTokenAddress | String | The contract address of the token to be received on the target chain. |
| destinationCalldata | Hex | Optional encoded function data for execution at the destination. |
| tradeType | Enum | Specifies 'EXACT_INPUT' or 'EXACT_OUTPUT' logic for the swap. |
| intentId | String | A unique identifier used to track the lifecycle of the cross-chain request. |
Loading
A powerful CLI for managing Sequence smart wallets, blockchain projects, and token transfers designed for AI agents and automation.

A comprehensive toolkit for building blockchain-enabled AI agents on Polygon with session-based smart wallets and on-chain reputation.

A versatile financial intelligence skill for querying global market data, news, and economic events via CLI.

Automate persistent, authenticated cloud browser sessions with built-in CAPTCHA solving and session recording capabilities.

A strategic board game skill that enables agents to play a lobster-themed version of Catan through a dedicated command-line interface.

A comprehensive AI agent tool for managing Bitcoin Lightning Network wallets via the LNbits API with integrated safety protocols.








































