An autonomous crypto trading agent that references market decisions and then uses near intents to execute trades across many chains via a single near account
Deploy to Vercel instantly, by clicking this button you will be taken to a page where you can fill in the required environment variables and then click deploy, this will also automatically setup the database for you
No manual DB setup. Just click and go.
You'll need these 4 environment variables:
BITTE_API_KEY=your_bitte_api_key_here # Bitte AI API Key - Get from https://bitte.ai
NEXT_PUBLIC_ACCOUNT_ID=your-account.near # Create a near account https://wallet.intear.tech/
NEAR_PK=your_near_private_key_here # Export your private key from wallet settings
CRON_SECRET=your_random_secret_string_here # Create a random secret so that only you can call your agent- Fund Wallet: Add USDC to your NEAR intents wallet
- First Run: Database and tables are automatically created on initial API call
- Analysis: Agent analyzes current portfolio and market conditions
- Decision: AI agent determines optimal trading action using Bitte AI
- Execution:
- Trade: Executes buy/sell orders via NEAR intents wallet
- Hold: Waits for better market opportunities
- Recording: All trades and decisions are stored with full context
- Snapshot: Portfolio state is captured for performance tracking
- Manual:
GET /api/tradeendpoint (protected byCRON_SECRET) - Automated: Scheduled via Vercel cron (every 45 minutes)
- Current Value: Live portfolio valuation with 2x goal tracking
- Performance Metrics: Accrued yield, percentage gains, progress visualization
- Asset Distribution: Interactive pie chart showing current holdings
- Trade Log: Complete history with entry/exit prices, quantities, and P&L
- Agent Reasoning: AI decision-making process for each trade
- Market Analysis: Context behind trading decisions
- Realized P&L: FIFO-based profit/loss calculations
- Performance Chart: Portfolio value over time with trend analysis
- Live Updates: Auto-refreshing data every 60 seconds
- Trade Details: Drill-down into individual trade reasoning and context
- Responsive Design: Works seamlessly on desktop and mobile
- Real-time Status: Live trading indicator with countdown to next execution
- Error Handling: Graceful fallbacks for network/data issues
