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.
- π 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).
- Node.js version 20 or higher
- macOS, Linux, or Windows
- Bybit account with API credentials
git clone https://github.com/tunogya/abandon-cli.git
cd abandon-cli
npm install
npm run build
npm linkabandon- Create API keys in your Bybit account
- Set up your credentials:
export BYBIT_API_KEY="your_api_key"
export BYBIT_API_SECRET="your_api_secret"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- 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
- Market analysis using Gemini's advanced AI capabilities
- Natural language trading commands
- Risk assessment and trading suggestions
- Real-time market data interpretation
- Automated trading strategies (planned)
- Portfolio management and rebalancing
- Alert and notification system
- Script-based trading workflows
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.
abandon# 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 todayAbandon CLI provides built-in trading commands:
/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)
/chat- Manage AI conversations/memory- View conversation memory/resume- Resume previous sessions/model- Configure AI model settings
/helpor/?- Show available commands/settings- Configure CLI settings/theme- Change color theme/auth- Manage authentication/quit- Exit the CLI
/mcp- Model Context Protocol server management/hooks- Automation hooks/agents- AI agent management/extensions- Extension management/skills- Skill system configuration
β Completed:
- Bybit API integration with built-in
/bybitcommand - 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
- API connection and authentication
- Spot trading operations
- Futures trading and position management
- Risk management and order types
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.
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.
- GitHub Repository - Source code
- GitHub Issues - Report bugs or request features
- Bybit API Documentation - Official Bybit API docs
- Original Gemini CLI - Upstream project
This project is built on top of Gemini CLI by Google. Special thanks to the Gemini CLI team and the open-source community.
This project is licensed under the Apache License 2.0, inherited from Gemini CLI.