一键导入
unifai
UnifAI CLI for searching and invoking services across DeFi, token data, social media, web search, news, travel, sports, and more.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
UnifAI CLI for searching and invoking services across DeFi, token data, social media, web search, news, travel, sports, and more.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | unifai |
| description | UnifAI CLI for searching and invoking services across DeFi, token data, social media, web search, news, travel, sports, and more. |
| allowed-tools | Bash(unifai:*) |
| version | 1.0.0 |
| metadata | {"openclaw":{"requires":{"env":["UNIFAI_AGENT_API_KEY"],"bins":["unifai"]},"primaryEnv":"UNIFAI_AGENT_API_KEY","emoji":"🦄","homepage":"https://github.com/unifai-network/unifai-cli","install":[{"kind":"brew","tap":"unifai-network/homebrew-unifai-cli","formula":"unifai","bins":["unifai"]}]}} |
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.
unifai enables you to:
brew update
brew tap unifai-network/homebrew-unifai-cli
brew install unifai
unifai version
API key source priority (highest to lowest):
--api-keyUNIFAI_AGENT_API_KEY~/.config/unifai-cli/config.yamlNote: Setting
UNIFAI_AGENT_API_KEYas an environment variable is recommended. The config file works too, but OpenClaw's skill check only detects the environment variable.
Generate a config template:
unifai config init
Show effective configuration:
unifai config show
Search for services using natural language:
# DeFi
unifai search --query "swap usdc to sol"
# Token data
unifai search --query "get bitcoin price"
# Social media
unifai search --query "search twitter for AI news"
# Travel
unifai search --query "find flights from NYC to London"
# With pagination
unifai search --query "lending protocols" --limit 10 --offset 0
# Include specific actions
unifai search --query "defi protocols" --include-actions action1,action2
Execute actions with JSON payloads:
# Inline JSON payload
unifai invoke --action "Meteora--29--swap" --payload '{"amount":100}'
# Read payload from file
unifai invoke --action "MyAction--1--execute" --payload @payload.json
# With custom retries and timeout
unifai invoke --action "MyAction--1--execute" --payload '{"x":1}' --max-retries 3 --timeout 60s
Tip: Parameter names vary by action (e.g., SerpAPI uses q, Twitter uses query). Use unifai search --query "..." --json to see the expected payload schema for each action before invoking.
unifai supports flexible payload handling:
# Force object parsing
unifai invoke --action "MyAction" --payload '{"key":"value"}' --payload-format object
# Force string parsing
unifai invoke --action "MyAction" --payload "raw text" --payload-format string
# Human-readable output (default)
unifai search --query "swap tokens"
# JSON output for scripting
unifai search --query "swap tokens" --json
~/.config/unifai-cli/config.yaml
apiKey: your-unifai-api-key
unifai search --query "swap usdc to sol on solana"
unifai invoke --action "Meteora--29--swap" --payload '{"fromToken":"USDC","toToken":"SOL","amount":100}'
unifai search --query "search tweets"
unifai invoke --action "Twitter--68--searchTweets" --payload '{"query":"AI agents","type":"Top"}' --json
unifai search --query "find flights"
unifai invoke --action "SerpAPI--21--flightSearch" --payload '{"departure_id":"SFO","arrival_id":"JFK","outbound_date":"2026-04-01","type":2}' --json
unifai search --query "find hotels"
unifai invoke --action "SerpAPI--21--hotelSearch" --payload '{"q":"hotels in Tokyo","check_in_date":"2026-04-01","check_out_date":"2026-04-03"}' --json
unifai search --query "NBA scores"
unifai invoke --action "ESPN--176--RetrieveNBAScoreboard" --payload '{"dates":"20260301"}' --json
UNIFAI_AGENT_API_KEY authenticates requests but does not grant custody of any wallet or funds.https://tx.unifai.network/tx/...). You must open the link, review the transaction, and sign it with your own wallet. Nothing executes on-chain without your explicit approval.Use unifai when you need to:
unifai invoke --action "LongRunning--1--process" --payload '{}' --timeout 120s
unifai invoke --action "Unreliable--1--call" --payload '{}' --max-retries 5
unifai search --query "test" --api-key temporary-key-123
unifai config show
This displays the effective configuration and shows which source (flag, env, or file) is being used.
unifai version
unifai search --query "test" --json
configs/config.example.yaml