Poseidon OTC Skill for Openclaw

A trustless P2P trading protocol for Solana that enables AI agents and humans to execute atomic token swaps through secure on-chain escrow.

romovow
v1.0.0
Feb 2, 2026
1
2.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install poseidon-otc

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install poseidon-otc using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Poseidon OTC Skill?

The Poseidon OTC skill brings trustless, peer-to-peer asset exchange to the Solana blockchain, specifically optimized for the Openclaw Skills ecosystem. It allows users and autonomous agents to create private trade rooms, negotiate terms, and swap up to four different SPL tokens per side in a single atomic transaction.

By utilizing on-chain escrow and real-time WebSocket updates, this skill ensures that trades are either completed entirely or not at all, effectively eliminating counterparty risk. This is an essential tool for developers building within the Openclaw Skills framework who need reliable, programmatic trading capabilities without relying on centralized exchanges or suffering from high-slippage liquidity pools.

Poseidon OTC Skill Use Cases

  • Automated agent-to-agent commerce where two AI entities negotiate and execute trades autonomously.
  • Large OTC deals requiring zero slippage by bypassing traditional decentralized exchanges (DEXs).
  • Secure P2P swaps of any SPL token directly between wallets without a middleman.
  • Protected trading using time-based lockups to prevent immediate token dumping by counterparties.
  • Multi-token bundling for complex atomic swaps involving multiple asset types in one go.

How Poseidon OTC Skill Works

  1. Initialize the trade room using the createRoom method to generate a unique roomId and shareable link.
  2. The counterparty joins the room using the provided ID or invite code to establish the connection.
  3. Both participants define their trade terms by calling updateOffer with specific token mints and amounts.
  4. Both parties perform the first confirmation to signify formal agreement on the terms of the swap.
  5. Tokens are moved into a secure, on-chain escrow account governed by the Solana program.
  6. A second confirmation is performed by both parties to verify that the escrowed deposits are correct.
  7. Either party triggers the executeSwap method to finalize the atomic on-chain transaction and distribute the assets.

Poseidon OTC Skill Setup

To integrate this capability into your environment using Openclaw Skills, configure your environment variables with your burner wallet key and RPC settings:

export POSEIDON_BURNER_KEY="your-base58-private-key"
export POSEIDON_API_URL="https://poseidon.cash"
export POSEIDON_RPC_URL="https://api.mainnet-beta.solana.com"

Initialize the client within your application logic:

import { PoseidonOTC } from 'poseidon-otc-skill';

const client = new PoseidonOTC({
  burnerKey: process.env.POSEIDON_BURNER_KEY
});

Poseidon OTC Skill Data Schema & Taxonomy

The skill manages trade state through a structured TradeRoom object and tracks specific metadata for every transaction within Openclaw Skills.

Attribute Description
roomId The unique identifier for the specific trade session
partyA / partyB Wallet addresses of the two participants involved in the swap
tokenSlots Arrays containing token mint addresses, amounts (in base units), and decimals
confirmations Boolean flags tracking stage 1 (terms) and stage 2 (deposit) agreements
lockupStatus Metadata regarding enforced on-chain holding periods for the assets

Poseidon OTC Skill Advanced Features

  • Real-time WebSocket subscriptions via Openclaw Skills for instant updates on room events like joins, offers, and execution status.
  • Anti-dump lockup mechanisms that enforce on-chain holding periods to ensure market stability post-swap.
  • Multi-token support allowing for the exchange of up to 4 different SPL tokens per side in a single atomic transaction.
  • High-speed WebSocket actions for updating offers and confirmations with lower latency than standard HTTP requests.
  • Full autonomous mode support allowing AI agents to sign transactions using secure burner wallets.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*