MAHORAGA  by ygwyg

AI-powered autonomous trading agent

Created 2 weeks ago

New!

676 stars

Top 50.1% on SourcePulse

GitHubView on GitHub
Project Summary

MAHORAGA is an autonomous, LLM-powered trading agent designed for 24/7 operation, leveraging social sentiment analysis and AI to learn and adapt. It targets developers and power users interested in algorithmic trading, offering a sophisticated framework for executing trades across cryptocurrencies and options via Alpaca, with flexible AI model integration.

How It Works

The agent runs on Cloudflare Workers and Durable Objects for persistent, 24/7 execution without local hardware. It monitors social sentiment from StockTwits, Reddit, and Twitter, then uses AI models (OpenAI, Anthropic, Google, xAI, DeepSeek) via AI SDK or Cloudflare AI Gateway for signal analysis. Trades are executed through Alpaca. Key architectural choices include state persistence, automatic restarts, and staleness detection for adaptive trading.

Quick Start & Requirements

  • Requirements: Node.js 18+, Cloudflare account, Alpaca account, LLM API key or Cloudflare AI Gateway credentials.
  • Setup: Clone repo, npm install, configure Cloudflare resources (D1, KV) via wrangler, and set secrets for API keys and tokens.
  • Deployment: Deploy using npx wrangler deploy.
  • Operation: Enable/monitor agent via authenticated curl commands to API endpoints.
  • Docs: Customization details in docs/harness.html.

Highlighted Details

  • 24/7 Cloudflare Operation: No local machine required.
  • **Multi-LLM & Multi
Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
26
Issues (30d)
4
Star History
706 stars in the last 18 days

Explore Similar Projects

Feedback? Help us improve.