aicoin
БесплатноЗапускает вложенные скриптыНе проверенUse this skill when the user asks to buy, sell, or trade crypto on exchanges like Binance, OKX, Bybit, Bitget, Gate, HTX, KuCoin, MEXC, or Coinbase — spot or…
от modbender★ 21 звезда на GitHubОб этом скилле
AiCoin
Crypto data & trading toolkit powered by AiCoin Open API.
Setup Checklist
Scripts auto-load .env files from these locations (earlier paths take priority):
- Current working directory (
.env) ~/.openclaw/workspace/.env~/.openclaw/.env
Before asking the user for ANY credentials, first check if .env already exists:
grep -c "AICOIN_ACCESS_KEY_ID" ~/.openclaw/workspace/.env 2>/dev/null || echo "0"
- If output is
1or more →.envhas AiCoin key configured. Skip setup, just run scripts directly. - If output is
0→ No AiCoin key, but the built-in free key works automatically. Just run scripts.
Only ask setup questions when the user explicitly requests features that need configuration:
- Exchange trading (Binance, OKX, etc.) → needs exchange API keys +
cd <skill-dir>/aicoin && npm installfor ccxt - Freqtrade bot → run
ft-deploy.mjs deploy(auto-configures everything, needs Python 3 + exchange keys in .env) - Proxy access → needs
PROXY_URL
Do NOT block the user from running commands. The skill works out of the box with the built-in free key.
How to Configure Environment Variables
The .env file location is ~/.openclaw/workspace/.env. When adding new variables:
Check if
.envalready exists:test -f ~/.openclaw/workspace/.env && echo "EXISTS" || echo "NOT_FOUND"If EXISTS → append (do NOT overwrite):
echo 'PROXY_URL=socks5://127.0.0.1:7890' >> ~/.openclaw/workspace/.envIf NOT_FOUND → create:
echo 'PROXY_URL=socks5://127.0.0.1:7890' > ~/.openclaw/workspace/.envIf a key already exists and needs updating, replace the specific line:
sed -i '' 's|^PROXY_URL=.*|PROXY_URL=socks5://127.0.0.1:7890|' ~/.openclaw/workspace/.env
NEVER overwrite the entire .env file — it may contain other credentials the user has already configured.
SECURITY: How to Run Scripts
Scripts auto-load .env — NEVER pass credentials inline. Just run:
node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'
NEVER do this — it exposes secrets in conversation logs:
# WRONG! DO NOT DO THIS!
AICOIN_ACCESS_KEY_ID=xxx node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'
If a script fails due to missing env vars, guide the user to update their .env file instead of injecting variables into the command.
Environment Variables
Create a .env file in the OpenClaw workspace directory (recommended):
# AiCoin API (optional — built-in free key works with IP rate limits)
# Mapping: AiCoin website "API Key" → AICOIN_ACCESS_KEY_ID
# AiCoin website "API Secret" → AICOIN_ACCESS_SECRET
AICOIN_ACCESS_KEY_ID=your-api-key
AICOIN_ACCESS_SECRET=your-api-secret
# Exchange trading — only if needed (requires: npm install -g ccxt)
BINANCE_API_KEY=xxx
BINANCE_API_SECRET=xxx
# Supported: BINANCE, OKX, BYBIT, BITGET, GATE, HTX, KUCOIN, MEXC, COINBASE
# For OKX also set OKX_PASSWORD=xxx
# Proxy for exchange access — only if needed
# Supports http, https, socks5, socks4
PROXY_URL=socks5://127.0.0.1:7890
# Or standard env vars: HTTPS_PROXY=http://127.0.0.1:7890
# Freqtrade — auto-configured by ft-deploy.mjs, no manual setup needed
# FREQTRADE_URL=http://localhost:8080
# FREQTRADE_USERNAME=freqtrader
# FREQTRADE_PASSWORD=auto-generated
IMPORTANT — AiCoin API Key Configuration:
The user may provide two values without labels (just two strings copied from the AiCoin website). Do NOT guess which is which. Ask the user to confirm: "哪个是 API Key,哪个是 API Secret?" Or look for the labels in the user's message.
After writing keys to
.env, ALWAYS verify by running a test call:node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'If the test returns error code
1001(signature verification failed), the keys are swapped. Fix by swapping them:# Read current values, swap them OLD_KEY=$(grep '^AICOIN_ACCESS_KEY_ID=' ~/.openclaw/workspace/.env | cut -d= -f2) OLD_SECRET=$(grep '^AICOIN_ACCESS_SECRET=' ~/.openclaw/workspace/.env | cut -d= -f2) sed -i '' "s|^AICOIN_ACCESS_KEY_ID=.*|AICOIN_ACCESS_KEY_ID=${OLD_SECRET}|" ~/.openclaw/workspace/.env sed -i '' "s|^AICOIN_ACCESS_SECRET=.*|AICOIN_ACCESS_SECRET=${OLD_KEY}|" ~/.openclaw/workspace/.envThen re-run the test to confirm it works.
Or configure in ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"aicoin": {
"enabled": true,
"apiKey": "your-aicoin-access-key-id",
"env": {
"AICOIN_ACCESS_SECRET": "your-secret"
}
}
}
}
}
Prerequisites
- Node.js — required for all scripts
- ccxt — required only for exc
Установить aicoin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aicoin?
Use this skill when the user asks to buy, sell, or trade crypto on exchanges like Binance, OKX, Bybit, Bitget, Gate, HTX, KuCoin, MEXC, or Coinbase — spot or futures, place orders, check balance, set leverage, view positions, or cancel orders. Also use when the user asks for crypto market data: real-time prices, K-lines, funding rates, open interest, liquidation data, whale tracking, AI analysis, order flow, news, Twitter/X crypto tweets, Hyperliquid on-chain data, or Freqtrade bot control. Also use when the user asks to set up automated trading, deploy Freqtrade, backtest strategies, or control a trading bot. Scripts auto-load .env — just run them directly. If a script fails due to missing credentials, guide the user through the Setup Checklist in SKILL.md.
Как установить скилл aicoin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aicoin запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic