Skip to content

OGODEVO/reki-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REKI BETA 0.8 ⌨️

REKI is a Python-based AI assistant with two modes: an interactive CLI for text to text Fx market analysis use and an automated trading system for FX markets also.


🎯 REKI-CLI (Interactive Mode)

A rich terminal interface for conversing with an AI model, featuring real-time streaming responses and visual enhancements.

Demo

REKI-CLI.mp4

Features

  • Rich Terminal Interface: Uses the rich library to display a stylized intro, formatted prompts, and Markdown-rendered AI responses.
  • Streaming Responses: Real-time chat experience with token-by-token streaming.
  • Performance Metrics: Displays response time and characters per second (CPS) for each response.
  • Custom API Endpoint: Connects to OpenAI-compatible APIs (Novita AI, xAI Grok).
  • Model: Uses gpt-5.1 by default.

How to Run (CLI Mode)

# Development Mode (Auto-reload)
python run_dev.py

# Direct Run
python reki/main.py

📊 REKI AUTO (Trading Bot)

An autonomous trading agent that analyzes FX markets every any time frame minutes and executes trades based on technical indicators and adaptive aggression strategies.

Demo

REKI-AUTO.mp4

Features

  • Autonomous 15-Minute Cycles: Analyzes markets and executes trades automatically.
  • Adaptive Aggression: Adjusts trading strategy based on market tempo (High/Low).
  • MT5 Integration: Direct connectivity to MetaTrader 5 for real-time execution.
  • Technical Analysis Tools: Candlestick data, MACD, RSI, EMA indicators for all FX pairs.
  • Position Management: Automatic Stop Loss and Take Profit handling.
  • Performance Analytics: XAI-powered log analysis for trade review.

How to Run (Auto Trader)

# Start the automated trading scheduler
python trading_scheduler.py

MT5 Service Setup

Important: The MT5 service must run on Windows because MetaTrader 5 only supports Windows.

For Mac/Linux Users:

  • You need a Windows VPS (Virtual Private Server) to run the MT5 service
  • Install MT5 on your Windows VPS
  • Run the MT5 service on the VPS:
    cd mt5_service
    install requirements.txt
     python main.py
  • Set MT5_API_URL in your .env to point to your VPS (e.g., http://YOUR_VPS_IP:8000)

For Windows Users:

  • You can run the MT5 service directly on your local machine
  • Install MT5 on your Windows PC
  • Run the MT5 service locally:
    cd mt5_service
    install requirements.txt
    python main.py
  • Set MT5_API_URL in your .env to http://localhost:8000

📁 Project Structure

/root/reki-cli/
├── .gitignore
├── pyproject.toml
├── README.md
├── reki/                      # CLI agent code
│   ├── agent.py
│   ├── main.py
│   ├── system_prompt.txt
│   └── trading_system_prompt.txt
├── tools/                     # Trading and market tools
├── mt5_service/              # MT5 API service (runs on Windows)
├── trading_scheduler.py      # Auto trader entry point
├── trading_logs/             # Trading session logs
└── venv/

⚙️ Setup

  1. Install Dependencies:

    uv pip install .
    # OR
    pip install .
  2. Create a .env file: See .env.example for required API keys.

    Required Environment Variables:

    Variable Description
    OPENAI_API_KEY API key for OpenAI (used for main agent)
    BRAVE_API_KEY API key for Brave Search
    POLYGON_API_KEY API key for Polygon.io (market data)
    XAI_API_KEY API key for xAI (Grok model)
    XAI_API_BASE_URL Base URL for xAI API (default: https://api.x.ai/v1)
    XAI_MODEL Model name for xAI (e.g., grok-4-fast-reasoning)
    NOVITA_API_KEY API key for Novita AI
    NOVITA_API_BASE_URL Base URL for Novita AI (default: https://api.novita.ai/openai)
    NOVITA_MODEL Model name for Novita AI (e.g., deepseek/deepseek-v3.2-exp)
    SERPAPI_API_KEY API key for SerpApi (Google Finance)
    FOREXRATE_API_KEY API key for ForexRateAPI (optional)
    MT5_API_URL URL of your Windows VPS running MT5 API service (e.g., http://YOUR_VPS_IP:8000)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published