kryptogo-meme-trader
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKryptoGO Meme Trader Agent Skill
KryptoGO 模因币交易Agent Skill
Overview
概述
This skill enables an AI agent to analyze and trade meme coins through the KryptoGO platform, combining deep on-chain cluster analysis with trade execution.
Analysis (multi-chain: Solana, BSC, Base, Monad): wallet clustering, accumulation/distribution detection, address behavior labels, network-wide accumulation signals (Pro/Alpha tier).
Trading (Solana only): portfolio monitoring with PnL tracking, swap execution via DEX aggregator, local transaction signing (private key never leaves the machine).
Default mode is supervised — all trades require user confirmation. Autonomous trading is available as opt-in. See for autonomous mode, cron setup, and learning system details.
references/autonomous-trading.md本Skill支持AI Agent通过KryptoGO平台分析和交易模因币,将深度链上集群分析与交易执行相结合。
分析功能(多链支持:Solana、BSC、Base、Monad):钱包聚类、筹码收集/派发检测、地址行为标签、全网络筹码收集信号(Pro/Alpha层级)。
交易功能(仅支持Solana):投资组合监控与盈亏追踪、通过DEX聚合器执行兑换、本地交易签名(私钥绝不会离开设备)。
默认模式为监督模式 — 所有交易都需要用户确认。自主交易为可选开启功能。有关自主模式、定时任务设置和学习系统的详细信息,请参阅。
references/autonomous-trading.mdWhen to Use
适用场景
- User asks to analyze a meme coin or token on Solana/BSC/Base/Monad
- User asks to trade, buy, or sell tokens
- User asks to scan for trending tokens or market opportunities
- User asks to monitor portfolio positions or check PnL
- Cron-triggered periodic portfolio monitoring and signal scanning
- 用户要求分析Solana/BSC/Base/Monad链上的模因币或代币
- 用户要求进行交易、买入或卖出代币
- 用户要求扫描热门代币或市场机会
- 用户要求监控投资组合仓位或查看盈亏
- 定时任务触发的周期性投资组合监控和信号扫描
When NOT to Use
不适用场景
- BTC/ETH/major L1 macro analysis, NFTs, cross-chain bridging, non-DEX transactions, non-Solana trading
- BTC/ETH等主流Layer1公链的宏观分析、NFT、跨链桥接、非DEX交易、非Solana链上交易
Setup Flow
设置流程
1. Get API Key
1. 获取API Key
- Go to kryptogo.xyz/account and create an API key
- Add to :
~/.openclaw/workspace/.envbashecho 'KRYPTOGO_API_KEY=sk_live_YOUR_KEY' >> ~/.openclaw/workspace/.env && chmod 600 ~/.openclaw/workspace/.env
Do NOT paste your API key directly in chat. Always set secrets viafile..env
- 访问kryptogo.xyz/account并创建API Key
- 将其添加到文件中:
~/.openclaw/workspace/.envbashecho 'KRYPTOGO_API_KEY=sk_live_YOUR_KEY' >> ~/.openclaw/workspace/.env && chmod 600 ~/.openclaw/workspace/.env
请勿直接在聊天中粘贴API Key。请始终通过文件设置密钥。.env
2. Generate Agent Wallet
2. 生成Agent钱包
bash
python3 scripts/setup.pyCreates a Solana keypair, saves to with chmod 600, prints public address to fund.
.envbash
python3 scripts/setup.py此命令将创建Solana密钥对,保存到文件并设置权限为600,同时打印需要充值的钱包公钥。
.env3. Fund the Wallet
3. 为钱包充值
Send SOL to the agent's public address (minimum 0.1 SOL).
向Agent的钱包公钥发送SOL(最低0.1 SOL)。
Security Rules
安全规则
- NEVER print, log, or include private keys in any message or CLI argument
- NEVER accept secrets pasted directly in chat — instruct users to set them in
.env - NEVER use the Read tool on — load credentials via
.envcommand onlysource - Runtime scripts do NOT read directly — all credentials are accessed via environment variables only, which must be pre-loaded by the caller (
.env)source ~/.openclaw/workspace/.env - Exception: reads and writes
scripts/setup.pyfor initial keypair generation and address repair — this is the only script that touches credential files.env - Private key stays in memory only during local signing — never sent to any server
- 绝对不要打印、记录或在任何消息或CLI参数中包含私钥
- 绝对不要接受直接粘贴在聊天中的密钥 — 指导用户在文件中设置
.env - 绝对不要使用读取工具访问文件 — 仅通过
.env命令加载凭证source - 运行时脚本不会直接读取文件 — 所有凭证仅通过环境变量访问,且必须由调用者预先加载(
.env)source ~/.openclaw/workspace/.env - 例外情况:会读取和写入
scripts/setup.py文件以生成初始密钥对和修复地址 — 这是唯一会接触凭证文件的脚本.env - 私钥仅在本地签名时保留在内存中 — 绝不会发送到任何服务器
Authentication
认证信息
All endpoints require:
Authorization: Bearer sk_live_<48 hex chars>| Tier | Daily API Calls | Trading Fee | Signal Dashboard | KOL Finder |
|---|---|---|---|---|
| Free | 100 calls/day | 1% | No | No |
| Pro | 1,000 calls/day | 0.5% | Yes | Yes |
| Alpha | 5,000 calls/day | 0% | Yes | Yes |
所有接口都需要携带:
Authorization: Bearer sk_live_<48位十六进制字符>| 层级 | 每日API调用次数 | 交易手续费 | 信号仪表盘 | KOL查找工具 |
|---|---|---|---|---|
| 免费版 | 100次/天 | 1% | 无 | 无 |
| Pro版 | 1000次/天 | 0.5% | 有 | 有 |
| Alpha版 | 5000次/天 | 0% | 有 | 有 |
Agent Behavior
Agent行为规范
Session Initialization
会话初始化
On every session start (including heartbeat/cron), the agent MUST load credentials BEFORE running any scripts:
bash
source ~/.openclaw/workspace/.envThis is REQUIRED — scripts do not read directly. All credentials are accessed via environment variables only.
.env在每次会话启动时(包括心跳/定时任务),Agent必须在运行任何脚本之前加载凭证:
bash
source ~/.openclaw/workspace/.env这是必须执行的步骤 — 脚本不会直接读取文件。所有凭证仅通过环境变量访问。
.envDefault Mode: Supervised
默认模式:监督模式
By default, the agent operates in supervised mode: it analyzes tokens, presents recommendations, and waits for user approval before executing any trade. Stop-loss/take-profit conditions are reported to the user but not auto-executed.
To enable autonomous trading, set in preferences. See for full details.
require_trade_confirmation: falsereferences/autonomous-trading.md默认情况下,Agent运行在监督模式:它会分析代币、给出建议,并在执行任何交易前等待用户批准。止损/止盈条件会告知用户,但不会自动执行。
要启用自主交易,请在偏好设置中设置。详细信息请参阅。
require_trade_confirmation: falsereferences/autonomous-trading.mdPersistence (CRITICAL)
状态持久化(至关重要)
IMMEDIATELY after submitting a transaction, the agent MUST:
- Write trade details to with
memory/trading-journal.jsonstatus: "OPEN" - Include: ,
token_symbol,token_address,entry_price,position_size_sol,tx_hashtimestamp
提交交易后必须立即执行以下操作:
- 将交易详情写入,并标记
memory/trading-journal.jsonstatus: "OPEN" - 需包含的字段:、
token_symbol、token_address、entry_price、position_size_sol、tx_hashtimestamp
User Preferences
用户偏好设置
Store in :
memory/trading-preferences.json| Preference | Default | Description |
|---|---|---|
| 0.1 SOL | Max SOL per trade |
| 5 | Max concurrent open positions |
| 20 | Max trades per day |
| 30% | Notify/sell when loss exceeds this |
| 100% | Notify/sell when gain exceeds this |
| $500K | Skip tokens below this |
| 10 | Trending tokens per scan |
| "conservative" | "conservative" (skip medium risk), "moderate" (ask on medium), "aggressive" (auto-trade medium) |
| true | Set to false for autonomous mode |
| ["solana"] | Chains to scan |
存储在中:
memory/trading-preferences.json| 偏好项 | 默认值 | 描述 |
|---|---|---|
| 0.1 SOL | 单笔交易最大SOL金额 |
| 5 | 最大并发持仓数量 |
| 20 | 每日最大交易次数 |
| 30% | 亏损超过此比例时通知/卖出 |
| 100% | 盈利超过此比例时通知/卖出 |
| $500K | 跳过市值低于此值的代币 |
| 10 | 每次扫描返回的热门代币数量 |
| "conservative" | "conservative"(跳过中等风险)、"moderate"(中等风险需询问用户)、"aggressive"(自动交易中等风险代币) |
| true | 设置为false以启用自主模式 |
| ["solana"] | 要扫描的链 |
Safety Guardrails
安全防护规则
Trading Limits (Hard Caps)
交易限制(硬上限)
| Limit | Default | Overridable? |
|---|---|---|
| Max single trade | 0.1 SOL | Yes, via |
| Max concurrent positions | 5 | Yes, via |
| Max daily trade count | 20 | Yes, via |
| Price impact abort | >10% | No — always abort |
| Price impact warn | >5% | No — always warn |
If any limit is hit, the agent must stop and notify the user.
| 限制项 | 默认值 | 是否可覆盖 |
|---|---|---|
| 单笔交易最大金额 | 0.1 SOL | 是,通过 |
| 最大并发持仓数量 | 5 | 是,通过 |
| 每日最大交易次数 | 20 | 是,通过 |
| 价格影响超过阈值则终止 | >10% | 否 — 始终终止 |
| 价格影响超过阈值则警告 | >5% | 否 — 始终警告 |
如果触发任何限制,Agent必须停止操作并通知用户。
Credential Isolation
凭证隔离
Runtime scripts in this skill do NOT read files directly. All credentials are accessed via environment variables only, which must be pre-loaded by the caller (). This ensures no runtime script can independently access or exfiltrate credential files.
.envsource ~/.openclaw/workspace/.envException: reads and writes — it loads existing keys to avoid regeneration, backs up before changes, and writes new keypair entries. This is the only script that touches credential files, and it runs only during initial setup or explicit regeneration.
scripts/setup.py.env.env--force本Skill中的运行时脚本不会直接读取文件。所有凭证仅通过环境变量访问,且必须由调用者预先加载()。这确保了没有运行时脚本可以独立访问或泄露凭证文件。
.envsource ~/.openclaw/workspace/.env例外情况:会读取和写入文件 — 它会加载现有密钥以避免重复生成,在修改前备份文件,并写入新的密钥对条目。这是唯一会接触凭证文件的脚本,且仅在初始设置或显式使用参数重新生成时运行。
scripts/setup.py.env.env--forceAutomated Monitoring (Cron)
自动化监控(定时任务)
Quick Setup
快速设置
bash
undefinedbash
undefinedSupervised mode (default): analysis + notifications, no auto-execution
监督模式(默认):分析+通知,不自动执行交易
source ~/.openclaw/workspace/.env && bash scripts/cron-examples.sh setup-default
source ~/.openclaw/workspace/.env && bash scripts/cron-examples.sh setup-default
Autonomous mode (opt-in): auto-buys and auto-sells
自主模式(可选):自动买入和自动卖出
source ~/.openclaw/workspace/.env && bash scripts/cron-examples.sh setup-autonomous
source ~/.openclaw/workspace/.env && bash scripts/cron-examples.sh setup-autonomous
Remove all cron jobs
删除所有定时任务
bash scripts/cron-examples.sh teardown
| Job | Interval | Default Behavior |
|-----|----------|---------|
| `stop-loss-tp` | 5 min | Report triggered conditions, do NOT auto-sell |
| `discovery-scan` | 1 hour | Analyze and send recommendations, do NOT auto-buy |
For full cron configuration, manual setup, heartbeat alternative, and monitoring workflow details, see `references/autonomous-trading.md`.
---bash scripts/cron-examples.sh teardown
| 任务 | 执行间隔 | 默认行为 |
|-----|----------|---------|
| `stop-loss-tp` | 5分钟 | 报告触发的条件,**不**自动卖出 |
| `discovery-scan` | 1小时 | 分析并发送建议,**不**自动买入 |
有关定时任务的完整配置、手动设置、心跳替代方案和监控工作流的详细信息,请参阅`references/autonomous-trading.md`。
---On-Chain Analysis Framework (7-Step Pipeline)
链上分析框架(7步流程)
Step 1: Token Overview & Market Cap Filter
步骤1:代币概览与市值过滤
/token-overview?address=<mint>&chain_id=<id>min_market_cap/token-overview?address=<mint>&chain_id=<id>min_market_capStep 2: Cluster Analysis
步骤2:集群分析
/analyze/<mint>?chain_id=<id>- ≥30-35% = "controlled" — major entity present
- ≥50% = high concentration risk
- Single cluster >50% → skip (rug pull risk)
Free tier limitation: Cluster analysis only returns the top 2 clusters. To see full cluster data, upgrade at kryptogo.xyz/pricing.
/analyze/<mint>?chain_id=<id>- ≥30-35% = "受控" — 存在主要实体
- ≥50% = 高集中度风险
- 单个集群占比>50% → 跳过(存在rug pull风险)
免费版限制:集群分析仅返回前2个集群。如需查看完整集群数据,请访问kryptogo.xyz/pricing升级。
Step 3: Cluster Trend (Multi-Timeframe)
步骤3:集群趋势(多时间维度)
/analyze-cluster-change/<mint>cluster_ratiochangesCore insight: Price and cluster holdings DIVERGING is the key signal.
- Rising price + falling cluster % = distribution (bearish)
- Falling price + rising cluster % = accumulation (bullish)
/analyze-cluster-change/<mint>cluster_ratiochanges核心洞察:价格与集群持仓出现背离是关键信号。
- 价格上涨 + 集群占比下降 = 筹码派发(看空)
- 价格下跌 + 集群占比上升 = 筹码收集(看多)
Step 4: Address Labels + Sell Pressure Verification
步骤4:地址标签 + 抛压验证
- → identify dev/sniper/bundle wallets
/token-wallet-labels - for each risky address → check if still holding
/balance-history - Compute = active risky holdings / total cluster holdings
risky_ratio -
30% = high risk, 10-30% = medium, <10% = low
Labels represent behavioral history, not current holdings. Always verify via./balance-history
- → 识别开发者/抢跑/批量钱包
/token-wallet-labels - 为每个高风险地址调用→ 检查是否仍持有代币
/balance-history - 计算= 活跃高风险持仓 / 总集群持仓
risky_ratio -
30% = 高风险,10-30% = 中等风险,<10% = 低风险
标签代表历史行为,而非当前持仓。请始终通过验证。/balance-history
Step 5: Deep Dive (Optional)
步骤5:深度分析(可选)
/balance-history/balance-increase/<mint>/top-holders-snapshot/<mint>/analyze-dca-limit-orders/<mint>/cluster-wallet-connections可调用接口:、、、、
/balance-history/balance-increase/<mint>/top-holders-snapshot/<mint>/analyze-dca-limit-orders/<mint>/cluster-wallet-connectionsStep 6: Decision
步骤6:决策
Apply Bullish Checklist from .
references/decision-framework.md应用中的看多 checklist。
references/decision-framework.mdStep 7: Execute Trade
步骤7:执行交易
Use for execution — handles wallet_address injection, error checking, and journal logging.
scripts/swap.pybash
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <token_mint> 0.1
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <token_mint> <amount> --sell使用执行交易 — 该脚本处理钱包地址注入、错误检查和日志记录。
scripts/swap.pybash
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <token_mint> 0.1
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <token_mint> <amount> --sellAPI Quick Reference
API快速参考
| Endpoint | Method | Purpose |
|---|---|---|
| GET | Check tier & quota |
| GET | Scan trending tokens |
| GET | Wallet portfolio + PnL |
| POST | Build unsigned swap tx (Solana only) |
| POST | Submit signed tx (Solana only) |
| GET | Token metadata & market data |
| GET | Full cluster analysis |
| GET | Cluster ratio trends |
| POST | Time-series balance data |
| POST | Behavior labels |
| POST | Token-specific labels |
| GET | Curated accumulation signals (Pro+) |
Full request/response details: seereferences/api-reference.md
| 接口 | 请求方法 | 用途 |
|---|---|---|
| GET | 检查层级与配额 |
| GET | 扫描热门代币 |
| GET | 钱包投资组合+盈亏 |
| POST | 构建未签名的兑换交易(仅Solana) |
| POST | 提交已签名的交易(仅Solana) |
| GET | 代币元数据与市场数据 |
| GET | 完整集群分析 |
| GET | 集群占比趋势 |
| POST | 时间序列余额数据 |
| POST | 行为标签 |
| POST | 代币专属标签 |
| GET | 精选筹码收集信号(Pro+层级可用) |
完整请求/响应详情:请参阅references/api-reference.md
Multi-Chain Support
多链支持
| Chain | chain_id | Analysis | Trading |
|---|---|---|---|
| Solana | | Yes | Yes |
| BSC | | Yes | No |
| Base | | Yes | No |
| Monad | | Yes | No |
| 链 | chain_id | 分析功能 | 交易功能 |
|---|---|---|---|
| Solana | | 支持 | 支持 |
| BSC | | 支持 | 不支持 |
| Base | | 支持 | 不支持 |
| Monad | | 支持 | 不支持 |
Error Handling
错误处理
| Code | Meaning | Action |
|---|---|---|
| 400 | Bad Request | Check parameters |
| 401 | Unauthorized | Check API key |
| 402 | Quota Exceeded | Wait for daily reset or upgrade |
| 403 | Forbidden | Requires higher tier |
| 502/504 | Server error | Retry once after 10s |
| 错误码 | 含义 | 操作 |
|---|---|---|
| 400 | 请求参数错误 | '检查参数 |
| 401 | 未授权 | 检查API Key |
| 402 | 配额用尽 | 等待每日重置或升级层级 |
| 403 | 禁止访问 | 需要更高层级权限 |
| 502/504 | 服务器错误 | 10秒后重试一次 |
Operational Scripts
操作脚本
All scripts require credentials to be pre-loaded: before running.
source ~/.openclaw/workspace/.envbash
source ~/.openclaw/workspace/.env && bash scripts/portfolio.sh # Portfolio check
source ~/.openclaw/workspace/.env && bash scripts/trending.sh # Trending tokens
source ~/.openclaw/workspace/.env && bash scripts/analysis.sh # Full analysis dashboard
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <mint> 0.1 # Buy
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <mint> <amt> --sell # Sell
source ~/.openclaw/workspace/.env && bash scripts/test-api.sh # API connectivity test所有脚本都需要预先加载凭证:运行前执行
source ~/.openclaw/workspace/.envbash
source ~/.openclaw/workspace/.env && bash scripts/portfolio.sh # 查看投资组合
source ~/.openclaw/workspace/.env && bash scripts/trending.sh # 查看热门代币
source ~/.openclaw/workspace/.env && bash scripts/analysis.sh # 查看完整分析仪表盘
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <mint> 0.1 # 买入
source ~/.openclaw/workspace/.env && python3 scripts/swap.py <mint> <amt> --sell # 卖出
source ~/.openclaw/workspace/.env && bash scripts/test-api.sh # API连通性测试Learning & Adaptation
学习与自适应
The agent improves over time by recording trades, analyzing outcomes, and adjusting strategy. Every trade is logged to , losses trigger post-mortems, and periodic reviews propose parameter changes.
memory/trading-journal.jsonFor full details on the learning system, trade journal format, post-mortem process, and strategy reviews, see .
references/autonomous-trading.mdAgent会通过记录交易、分析结果和调整策略来不断改进。每笔交易都会记录到中,亏损会触发事后分析,定期复盘会提出参数调整建议。
memory/trading-journal.json有关学习系统、交易日志格式、事后分析流程和策略复盘的详细信息,请参阅。
references/autonomous-trading.mdCore Concepts
核心概念
| Concept | Key Insight |
|---|---|
| Cluster | Group of wallets controlled by same entity |
| Cluster Ratio | % of supply held by clusters. ≥30% = controlled, ≥50% = high risk |
| Developer | Deployed the token. Highest dump risk |
| Sniper | Bought within 1s of creation. Sell pressure if not cleared |
| Smart Money | Realized profit >$100K. Accumulation often precedes price moves |
| Accumulation | Cluster % rising + price consolidating = bullish |
| Distribution | Price rising + cluster % falling = bearish |
Full concepts guide: seereferences/concepts.md
| 概念 | 关键洞察 |
|---|---|
| Cluster(集群) | 由同一实体控制的钱包组 |
| Cluster Ratio(集群占比) | 集群持有的供应量占比。≥30% = 受控,≥50% = 高风险 |
| Developer(开发者) | 部署代币的主体。抛压风险最高 |
| Sniper(抢跑者) | 代币创建后1秒内买入的地址。若未离场则存在抛压 |
| Smart Money(聪明钱) | 已实现利润超过$100K的地址。其筹码收集往往预示价格上涨 |
| Accumulation(筹码收集) | 集群占比上升 + 价格盘整 = 看多 |
| Distribution(筹码派发) | 价格上涨 + 集群占比下降 = 看空 |
完整概念指南:请参阅references/concepts.md
Best Practices
最佳实践
- Always check first to confirm tier and quota
/agent/account - Always check on startup to detect existing positions
/agent/portfolio - Never expose private keys in logs, messages, or CLI arguments
- Validate price impact before submitting — abort >10%, warn >5%
- Sign and submit promptly — blockhash expires after ~60 seconds
- Persist state to after every action
memory/trading-state.json - Log every trade to journal — no exceptions
- Read before scanning — avoid repeating known bad patterns
memory/trading-lessons.md
- 始终先调用确认层级和配额
/agent/account - 会话启动时始终调用检测现有持仓
/agent/portfolio - 绝不在日志、消息或CLI参数中暴露私钥
- 提交交易前验证价格影响 — 超过10%则终止,超过5%则警告
- 及时签名并提交交易 — blockhash约60秒后过期
- 每次操作后将状态持久化到
memory/trading-state.json - 每笔交易都要记录到日志中 — 无例外
- 扫描前阅读— 避免重复已知的错误模式
memory/trading-lessons.md
File Structure
文件结构
kryptogo-meme-trader/
├── SKILL.md ← You are here
├── package.json
├── .env.example
├── references/
│ ├── api-reference.md ← Full API docs
│ ├── concepts.md ← Core concepts
│ ├── decision-framework.md ← Entry/exit strategies
│ └── autonomous-trading.md ← Autonomous mode, cron, learning system
├── scripts/
│ ├── setup.py ← First-time setup
│ ├── cron-examples.sh ← Cron configurations
│ ├── portfolio.sh / trending.sh / analysis.sh / test-api.sh
│ ├── swap.py ← Swap executor
│ └── trading-preferences.example.json
└── examples/
├── trading-workflow.py
└── deep-analysis-workflow.pykryptogo-meme-trader/
├── SKILL.md ← 当前文件
├── package.json
├── .env.example
├── references/
│ ├── api-reference.md ← 完整API文档
│ ├── concepts.md ← 核心概念
│ ├── decision-framework.md ← 入场/离场策略
│ └── autonomous-trading.md ← 自主模式、定时任务、学习系统
├── scripts/
│ ├── setup.py ← 首次设置
│ ├── cron-examples.sh ← 定时任务配置
│ ├── portfolio.sh / trending.sh / analysis.sh / test-api.sh
│ ├── swap.py ← 兑换执行脚本
│ └── trading-preferences.example.json
└── examples/
├── trading-workflow.py
└── deep-analysis-workflow.py