unifai-network/unifai-sdk-js/unifai
Claude Code and agent skill by unifai-network/unifai-sdk-js
- community
Checking that the SKILL.md file is still in the repository.
A CLI for searching and invoking services on the UnifAI network. Supports 40+ services across DeFi, token data, social media, web search, news, travel, sports, and utilities.
Install
npx vskill@latest install unifai-network/unifai-sdk-js/unifaiSKILL.md
UnifAI CLI
A CLI for searching and invoking services on the UnifAI network. Supports 40+ services across DeFi, token data, social media, web search, news, travel, sports, and utilities.
What it does
unifai enables you to:
- Search services: Find services and actions using natural language queries
- Invoke services: Execute actions with customizable parameters and retry logic
- Manage configuration: Configure API keys with multiple priority levels
Available service categories
- DeFi: Swap, lend, borrow, provide liquidity (Aave, Uniswap, Jupiter, Meteora, Pendle, Compound, 1inch, and more)
- Token & market data: Prices, OHLCV, security analysis (Birdeye, CoinGecko, DexScreener, DefiLlama, GoPlusSecurity)
- Wallet & chain data: Token balances across Solana, Ethereum, Base, BSC, Polygon
- Social media: Twitter/X search, user timelines, tweet threads
- Web search & news: General search, Google news, financial data (SerpAPI, Tavily)
- Travel: Flight and hotel search
- Sports: NBA scores, soccer results (ESPN)
- Utilities: Math, time, domain availability, Solana rent reclaimer
Installation
Install globally so the binary is available locally:
Or use via npx (no install needed)
Setup
Set your API key:
Or create a config file:
Commands
Search for tools
Always returns JSON with full payload schemas (best for agents):
Compact numbered list (strips schemas):
Invoke an action
With transaction signing:
Payload from file:
Sign a transaction
Configuration
Version
Agent Workflow
CRITICAL: Always search before invoking. Each action has its own field names (e.g. toWalletAddress for Solana, recipientWalletAddress for Polygon). Do NOT guess field names — they will fail silently or return cryptic server errors.
- Search to get the action ID and exact payload schema:
``bash unifai search --query "swap SOL to USDC" ``
- Read the `payload` field in the JSON response. It contains every field name, type, and whether it's required. Use these exact field names.
- Invoke with the correct payload:
``bash unifai invoke --action "Jupiter--5--swap" --payload '{"inputToken":"SOL","outputToken":"USDC","inAmount":0.1}' --sign ``
- If
--signis used and the response contains atxId, the transaction is automatically signed and submitted locally.
Important: Field Names Are Not Guessable
Different actions use different field names for similar concepts. Examples:
| Action | "Send to" field | "Amount" field | |
|---|---|---|---|
Solana--7--transfer | toWalletAddress | amount | |
Polygon--160--transfer | recipientWalletAddress | amount | |
Jupiter--5--swap | outputToken | inAmount |
Always use `unifai search` first and read the payload schema. Never guess field names.
Understanding Errors
- `Error: API key is required` — Set
UNIFAI_AGENT_API_KEYenv var - `Error: ... private key is required` — Set
SOLANA_PRIVATE_KEYorEVM_PRIVATE_KEYfor signing - `Error: RPC URL is required` — Public defaults are provided, but you can override with env vars (e.g.
POLYGON_RPC_URL) - Server-side errors (e.g.
"error": "Failed to create transaction: ...") — Usually wrong field names or invalid values. Re-check the payload schema fromunifai search - `--sign` with no txId — Normal. The action didn't need signing; the response is returned as-is
Transaction Signing
Transaction signing is optional and requires private keys via environment variables:
SOLANA_PRIVATE_KEY— Solana key (base58, JSON array, or path to keystore file fromsolana-keygen)EVM_PRIVATE_KEY— EVM key (hex, with or without 0x prefix). Used for Ethereum, Polygon, Base, BSC, Hyperliquid, and Polymarket
RPC URLs (optional, public defaults are provided):
SOLANA_RPC_URL— default:https://api.mainnet-beta.solana.comETHEREUM_RPC_URL— default:https://eth.llamarpc.comBASE_RPC_URL— default:https://mainnet.base.orgBSC_RPC_URL— default:https://bsc-dataseed.binance.orgPOLYGON_RPC_URL— default:https://rpc-mainnet.matic.quiknode.pro
Public RPCs are rate-limited. Set your own RPC URLs for production use.
All signing happens locally within the CLI process. Private keys are used only by the local @solana/web3.js and ethers libraries to sign transactions before submission. The CLI source code is available at https://github.com/unifai-network/unifai-sdk-js/tree/main/src/cli.
Common Examples
Security Notes
- Private keys:
SOLANA_PRIVATE_KEYandEVM_PRIVATE_KEYare only needed for transaction signing. - Local signing: All transaction signing happens locally in-process using
@solana/web3.jsandethers. Private keys are never sent to external API.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/unifai/SKILL.md
Popularity
- Repository stars
- 75
- Repository forks
- 16
- Repository npm downloads, 7 days
- 24
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 25 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/unifai-network/unifai-sdk-js/unifai)