onchainos

by OKX

Built for AI. Ready for Web3. The official OKX OnchainOS agent — a complete on-chain workstation powered by onchainos skills and pre-built workflows. Research any token in one shot: price, security, holders, smart money signals, dev reputation, and launchpad data. Track smart money whales and KOLs, scan new pump.fun launches, analyse wallets, monitor DeFi positions, and execute swaps across 500+ aggregated DEXs on 60+ networks with sub-100ms response times. Key capabilities: • Token research — price, security scan, holder cluster, top traders, smart money signals • Smart money tracking — KOL, whale, and insider wallet activity • New token screening — pump.fun/Believe launchpad scanning with dev & bundle analysis • Safe swap execution — 500+ DEX sources, MEV protection, pre-trade risk detection • DeFi portfolio — positions across Aave, Lido, PancakeSwap, Kamino, and more • Agentic wallet — TEE-secured, private keys never exposed, gas-free on X Layer via x402 Log in with your email to get started.

onchainos — OpenClaw Agent Template

Built for AI. Ready for Web3.

A general-purpose OpenClaw agent template powered by OKX OnchainOS. Deploy on any OpenClaw-compatible host and get an on-chain research and trading agent that can research tokens, track smart money, scan new launches, analyse wallets, manage DeFi positions, and execute swaps across 500+ aggregated DEXs on 60+ networks.

Quick start
  1. Clone or fork this template
  2. Run bash setup.sh — installs the onchainos CLI and fetches skills + workflows from the source repo
  3. Start an OpenClaw session — the agent is ready

To enable trading, run onchainos wallet login inside a session.

What you can do
Ask the agentWhat it does
"Research this token: <address>"Price, security scan, holders, smart money signals, dev reputation
"What is smart money buying?"Aggregated SM/KOL/whale signals with per-token due diligence
"Scan new tokens on pump.fun"MIGRATED token list with safety, dev reputation, and bundle analysis
"Analyse this wallet: <address>"7d/30d PnL, trading behaviour, recent on-chain activity
"Daily brief"Market prices, hot tokens, SM activity, new launches
"Check my portfolio: <address>"Balances, total value, PnL overview
"Buy 0.1 SOL of BONK"Pre-trade risk detection → quote → confirm → MEV-protected execution
Infrastructure
  • 500+ DEX sources aggregated for best swap price
  • 130+ networks via OKX Wallet ecosystem
  • Sub-100ms average response times · 99.9% uptime
  • TEE-secured agentic wallet — private keys never exposed
  • MEV protection — Jito (Solana) and Flashbots (EVM)
  • Gas-free payments on X Layer via OKX Agent Payments Protocol
Structure
openclaw_template/
├── README.md                     # This file
├── manifest.json                 # Template store manifest
├── setup.sh                      # Build script (calls install.sh)
└── workspace/
    ├── SOUL.md                   # Agent personality, values, tone, boundaries
    ├── AGENTS.md                 # Workflow routing, skill table, harness rules, session management
    ├── BOOTSTRAP.md              # First-run onboarding (self-deletes after setup)
    ├── IDENTITY.md               # Agent name, type, vibe, emoji
    ├── USER.md                   # Learned user preferences (updated by agent)
    ├── TOOLS.md                  # Capabilities, CLI reference, wallet modes, swap infrastructure
    ├── MEMORY.md                 # Long-term learned patterns (updated by agent)
    ├── HEARTBEAT.md              # Periodic task config
    ├── memory/                   # Daily memory files (memory/YYYY-MM-DD.md)
    └── projects/
        └── scan-bot-example.py   # Sample Python script demonstrating onchainos CLI scripting

Skills and workflows are fetched from the onchainos-skills source repo at deploy time — always the latest version.

Optional: OKX API credentials

The agent uses built-in sandbox keys by default (rate-limited). For production-grade rate limits, set these environment variables:

VariableDescription
OKX_API_KEYApply at OKX Developer Portal
OKX_SECRET_KEYYour API secret
OKX_PASSPHRASEYour API passphrase
Links
License

MIT

EngineOpenClaw
Categoryblockchain
Versionv26
Updated5/20/2026
Tags
okxdefitradingsolanaethereumtoken-researchsmart-moneyweb3blockchainswap

Required Setup

Optional

OKX_API_KEYOKX Web3 API key. Apply at https://web3.okx.com/onchain-os/dev-portal. Alternative: log in with email + OTP inside the agent session.
OKX_SECRET_KEYOKX Web3 API secret key. Required only if OKX_API_KEY is set.
OKX_PASSPHRASEOKX Web3 API passphrase. Required only if OKX_API_KEY is set.

Sign up to deploy this template in under a minute