Skip to content

An open-source AI agent that brings the power of Gemini directly into your terminal.

License

Notifications You must be signed in to change notification settings

tunogya/abandon-cli

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3,910 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Abandon CLI

License

Abandon CLI is a powerful cryptocurrency trading tool built on top of Gemini CLI. It leverages AI capabilities to provide intelligent trading automation for Bybit spot and futures markets.

Note: This project is forked from Gemini CLI and is being actively developed to integrate Bybit trading functionalities.

πŸš€ Why Abandon CLI?

  • πŸ“ˆ Bybit Integration: Native support for Bybit spot and futures trading.
  • πŸ€– AI-Powered: Leverages Gemini AI for intelligent trading decisions and automation.
  • 🧠 Advanced Analysis: Access to powerful AI with 1M token context window for market analysis.
  • πŸ”§ Trading Tools: Built-in tools for order execution, position management, and market data analysis.
  • πŸ’» Terminal-first: Designed for traders who prefer command-line interfaces.
  • πŸ›‘οΈ Open source: Based on Gemini CLI (Apache 2.0 licensed).

πŸ“¦ Installation

Pre-requisites

  • Node.js version 20 or higher
  • macOS, Linux, or Windows
  • Bybit account with API credentials

Quick Install

Clone and install locally

git clone https://github.com/tunogya/abandon-cli.git
cd abandon-cli
npm install
npm run build
npm link

Run the CLI

abandon

πŸ”‘ Configuration

Bybit API Setup

  1. Create API keys in your Bybit account
  2. Set up your credentials:
export BYBIT_API_KEY="your_api_key"
export BYBIT_API_SECRET="your_api_secret"

Gemini AI Authentication

Choose one of the authentication methods for AI capabilities:

# Option 1: Login with Google
abandon  # Then select "Login with Google"

# Option 2: Use Gemini API Key
export GEMINI_API_KEY="YOUR_API_KEY"
abandon

# Option 3: Use Vertex AI
export GOOGLE_API_KEY="YOUR_API_KEY"
export GOOGLE_GENAI_USE_VERTEXAI=true
abandon

πŸ“‹ Key Features

Trading Capabilities (In Development)

  • Spot Trading: Execute buy/sell orders on Bybit spot markets
  • Futures Trading: Manage positions, leverage, and risk on Bybit futures
  • Order Management: Place, modify, and cancel orders with AI assistance
  • Position Monitoring: Real-time position tracking and P&L analysis

AI-Powered Analysis

  • Market analysis using Gemini's advanced AI capabilities
  • Natural language trading commands
  • Risk assessment and trading suggestions
  • Real-time market data interpretation

Automation Features

  • Automated trading strategies (planned)
  • Portfolio management and rebalancing
  • Alert and notification system
  • Script-based trading workflows

⚠️ Disclaimer

IMPORTANT: Trading cryptocurrencies involves substantial risk of loss. This tool is provided for educational and research purposes only.

  • Always test with small amounts first
  • Never invest more than you can afford to lose
  • Past performance does not guarantee future results
  • The developers are not responsible for any trading losses
  • Use at your own risk

This is an experimental project under active development. Features may change, and bugs may exist.

πŸš€ Getting Started

Basic Usage

Start the CLI

abandon

Trading Examples

# Check account balance
/bybit balance

# Get real-time price
/bybit price BTCUSDT

# View open positions
/bybit positions

# Execute a trade (will ask for confirmation)
/bybit trade spot BTCUSDT Buy 0.001 Market

# Place a limit order
/bybit trade spot BTCUSDT Buy 0.001 Limit 50000

# Futures trading
/bybit trade linear BTCUSDT Buy 0.1 Market

# AI-assisted analysis
> Analyze the current BTC/USDT market conditions

# Natural language queries
> What's the current price of Ethereum?
> Show my trading performance today

Available Commands

Abandon CLI provides built-in trading commands:

Trading Commands (/bybit)

  • /bybit balance - Get Bybit account balance
  • /bybit price <symbol> - Get cryptocurrency price (e.g., BTCUSDT)
  • /bybit positions - View open futures positions
  • /bybit trade - Execute trades (requires confirmation)

AI & Conversation

  • /chat - Manage AI conversations
  • /memory - View conversation memory
  • /resume - Resume previous sessions
  • /model - Configure AI model settings

System & Configuration

  • /help or /? - Show available commands
  • /settings - Configure CLI settings
  • /theme - Change color theme
  • /auth - Manage authentication
  • /quit - Exit the CLI

Advanced Features

  • /mcp - Model Context Protocol server management
  • /hooks - Automation hooks
  • /agents - AI agent management
  • /extensions - Extension management
  • /skills - Skill system configuration

Development Status

βœ… Completed:

  • Bybit API integration with built-in /bybit command
  • Basic spot trading functionality (balance, price, orders)
  • Futures trading support (positions, leverage)
  • AI-powered conversation and analysis
  • Extension system for future exchange integrations

πŸ”„ In Progress:

  • Advanced trading strategies
  • Portfolio management tools
  • Risk management automation

πŸš€ Planned:

  • OKX exchange support
  • Binance exchange support
  • Automated trading bots
  • Advanced charting and technical analysis

πŸ“š Documentation

Bybit Integration

  • API connection and authentication
  • Spot trading operations
  • Futures trading and position management
  • Risk management and order types

Inherited from Gemini CLI

This project inherits the powerful CLI framework from Gemini CLI. Many of the original features are still available:

  • Command-line interface and keyboard shortcuts
  • AI conversation capabilities
  • Scripting and automation support
  • Extensibility through MCP servers

For detailed documentation on the underlying CLI framework, refer to the original Gemini CLI docs.

🀝 Contributing

Contributions are welcome! This is an open-source project built on top of Gemini CLI.

Areas where you can help:

  • Bybit API integration and testing
  • Trading strategy development
  • Risk management features
  • Documentation and examples
  • Bug reports and feature requests

Please note: This project is in early development. Breaking changes may occur frequently.

πŸ“– Resources

πŸ™ Acknowledgments

This project is built on top of Gemini CLI by Google. Special thanks to the Gemini CLI team and the open-source community.

πŸ“„ License

This project is licensed under the Apache License 2.0, inherited from Gemini CLI.


⚠️ Risk Warning: Cryptocurrency trading carries a high level of risk and may not be suitable for all investors. Before deciding to trade cryptocurrency, you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.

About

An open-source AI agent that brings the power of Gemini directly into your terminal.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.0%
  • JavaScript 1.9%
  • Other 0.1%