alsk1992 / CloddsBot

alsk1992 / CloddsBot

AI-powered trading terminal for prediction markets, crypto & futures. Claude + Odds = Clodds. Clodds CA: 2puc76ehVHyPXhZmDprtP2phDSFE4kzZKDT4JgAWpump

由人工智能驱动的预测市场、加密货币及期货交易终端。Claude + Odds = Clodds。 Clodds 合约地址 (CA): 2puc76ehVHyPXhZmDprtP2phDSFE4kzZKDT4JgAWpump

Quick Start • WebChat • Features • Channels • Markets • Launch • Forum • Docs 快速入门 • WebChat • 功能 • 渠道 • 市场 • 启动 • 论坛 • 文档

Clodds is a personal AI trading terminal for prediction markets, crypto spot, perpetual futures with leverage, token launches, and Bittensor subnet mining. Run it on your own machine, chat via any of 21 messaging platforms, trade across 10 prediction markets + 7 futures exchanges, with full Solana integration (Jupiter, Pump.fun, Raydium, Orca, Bags.fm) and EVM chains (Robinhood, Base, ETH, Arbitrum, Optimism, Polygon via Uniswap V3, 1inch, Virtuals Protocol), mine TAO on Bittensor, and manage your portfolio — all through natural conversation. Clodds 是一款个人 AI 交易终端,适用于预测市场、加密货币现货、带杠杆的永续合约、代币发行以及 Bittensor 子网挖矿。你可以在自己的机器上运行它,通过 21 个消息平台中的任意一个进行对话,在 10 个预测市场和 7 个期货交易所进行交易。它全面集成了 Solana(Jupiter, Pump.fun, Raydium, Orca, Bags.fm)和 EVM 链(通过 Uniswap V3, 1inch, Virtuals Protocol 支持 Robinhood, Base, ETH, Arbitrum, Optimism, Polygon),支持 Bittensor TAO 挖矿,并能通过自然语言对话管理你的投资组合。

Powered by Claude with 118+ trading strategies, whale tracking, arbitrage detection, copy trading, and DCA bots. 🏗️ Built for Colosseum Agent Hackathon on Solana — Developed in 12 days as a fully-featured autonomous trading agent. 由 Claude 提供支持,内置 118 种以上交易策略、巨鲸追踪、套利检测、跟单交易和 DCA(定投)机器人。🏗️ 为 Solana 上的 Colosseum Agent 黑客松而建——在 12 天内开发完成,是一个功能齐全的自主交易代理。

Quick Start

快速入门

npm install -g clodds --loglevel=error
clodds onboard

That’s it. The setup wizard walks you through everything — API key, messaging channel, and starts the gateway. WebChat opens at http://localhost:18789/webchat. 只需如此。设置向导将引导你完成所有步骤——包括 API 密钥、消息渠道,并启动网关。WebChat 将在 http://localhost:18789/webchat 打开。

From source (alternative): 从源码安装(备选):

git clone https://github.com/alsk1992/CloddsBot.git && cd CloddsBot
npm install && cp .env.example .env # Add ANTHROPIC_API_KEY to .env
npm run build && npm start

Demo

演示

30-second terminal onboarding — See Clodds in action: 30 秒终端入职演示——查看 Clodds 的实际操作:

The demo shows: 演示展示了:

  • npm install -g cloddsclodds onboard
  • Onboarding wizard walks through credentials setup
  • 入职向导引导完成凭据设置
  • Fetches live 15-minute BTC prediction markets from Polymarket (in real-time)
  • 从 Polymarket 获取实时的 15 分钟 BTC 预测市场数据
  • One command away from trading
  • 一条指令即可开始交易

After the demo: Set your env vars or input credentials, then you’re ready to trade. 演示之后:设置你的环境变量或输入凭据,即可开始交易。

WebChat

WebChat

Built-in browser interface at http://localhost:18789/webchat — no setup, no third-party dependencies. 内置浏览器界面,地址为 http://localhost:18789/webchat ——无需设置,无第三方依赖。

  • Interface: Claude-style sidebar with 4 tabs: Chats, Projects, Artifacts, Code
  • 界面: Claude 风格的侧边栏,包含 4 个标签页:聊天、项目、工件 (Artifacts)、代码
  • Create and organize conversations into project folders
  • 创建对话并将其整理到项目文件夹中
  • Artifacts and code blocks auto-extracted from chat history
  • 从聊天记录中自动提取工件和代码块
  • One-click copy for code snippets, search across all conversations
  • 代码片段一键复制,支持跨所有对话搜索
  • Thinking Indicator: Live spinner with elapsed timer while the AI generates. Replaces generic typing dots with actual status feedback.
  • 思考指示器: AI 生成时显示带有计时器的实时旋转图标。用实际的状态反馈取代了通用的输入点。
  • Unlimited History: Every message stored in a dedicated database table (append-only, one row per message). No message cap — scroll back through entire conversation history. Paginated loading so even 1000+ message chats load instantly.
  • 无限历史记录: 每条消息都存储在专门的数据库表中(仅追加,每条消息一行)。无消息上限——可回溯整个对话历史。支持分页加载,即使是 1000 条以上的聊天记录也能瞬间加载。
  • Context Compacting: Older messages automatically summarized so the AI never fully forgets what you discussed. LLM receives a compressed recap of earlier conversation + the last 20 messages. Similar to how Claude.ai and ChatGPT handle long conversations.
  • 上下文压缩: 自动总结旧消息,确保 AI 不会完全忘记你们讨论过的内容。LLM 会收到早期对话的压缩摘要 + 最近 20 条消息。类似于 Claude.ai 和 ChatGPT 处理长对话的方式。
  • Session Management: Create, rename, delete conversations via REST API. Profile menu with language selector (9 languages), help, about. Persistent across restarts (SQLite-backed).
  • 会话管理: 通过 REST API 创建、重命名、删除对话。个人资料菜单包含语言选择器(9 种语言)、帮助和关于页面。重启后数据依然持久化(基于 SQLite)。

CLI

命令行界面 (CLI)

  • clodds onboard # Interactive setup wizard (交互式设置向导)
  • clodds start # Start the gateway (启动网关)
  • clodds repl # Interactive REPL (交互式 REPL)
  • clodds doctor # System diagnostics (系统诊断)
  • clodds secure # Harden security (加强安全性)
  • clodds locale set zh # Change language (更改语言)
  • clodds mcp # Start MCP server (for Claude Desktop/Code) (启动 MCP 服务器)
  • clodds mcp install # Auto-configure Claude Desktop/Code (自动配置 Claude Desktop/Code)

See docs/USER_GUIDE.md for all commands. 查看 docs/USER_GUIDE.md 获取所有命令。

Everything We Built At a Glance

功能概览

CategoryWhat’s Included
类别包含内容
Messaging21 platforms (Telegram, Discord, WhatsApp, Slack, Teams, Signal, Matrix, iMessage, LINE, Nostr, etc.) + built-in WebChat
消息平台21 个平台(Telegram, Discord, WhatsApp, Slack, Teams, Signal, Matrix, iMessage, LINE, Nostr 等)+ 内置 WebChat
Prediction Markets10 platforms (Polymarket, Kalshi, Betfair, Smarkets, Drift, Manifold, Metaculus, PredictIt, Opinion.xyz, Predict.fun)
预测市场10 个平台(Polymarket, Kalshi, Betfair, Smarkets, Drift, Manifold, Metaculus, PredictIt, Opinion.xyz, Predict.fun)
Crypto MarketsDeep expertise in BTC/ETH/SOL/XRP binary markets — 5-min, 15-min, 1-hr, 4-hr, and daily rounds
加密市场在 BTC/ETH/SOL/XRP 二元市场拥有深厚专业知识——支持 5 分钟、15 分钟、1 小时、4 小时及每日轮次
Perpetual Futures7 exchanges (Binance, Bybit, Hyperliquid, MEXC, Drift, Percolator, Lighter) with up to 200x leverage
永续合约7 个交易所(Binance, Bybit, Hyperliquid, MEXC, Drift, Percolator, Lighter),支持高达 200 倍杠杆
Trading Strategies118+ strategies (momentum, mean reversion, whale tracking, copy trading, etc.)
交易策略118 种以上策略(动量、均值回归、巨鲸追踪、跟单交易等)
Risk ManagementUnified risk engine, VaR/CVaR, stress testing, Kelly sizing, kill switch
风险管理统一风险引擎、VaR/CVaR、压力测试、凯利公式仓位管理、紧急停止开关
Security ShieldCode scanning, scam DB, multi-chain address checking, pre-trade tx validation
安全防护代码扫描、诈骗数据库、多链地址检查、交易前验证
AI8 LLM providers, 4 specialized agents, semantic memory, 18 tools
人工智能8 个 LLM 提供商、4 个专业代理、语义记忆、18 个工具
i18n10 languages (EN, ZH, ES, JA, KO, DE, FR, PT, RU, AR)
国际化10 种语言(英、中、西、日、韩、德、法、葡、俄、阿)