Development Setup
Prerequisites
Environment Setup
1. Clone the Repository
git clone https://github.com/your-org/bill-agent.git
cd bill-agent2. Install Dependencies
# Install all dependencies using Bun
bun install
# Navigate to agent directory and install
cd agent
bun install
# Install website dependencies
cd ../clients/website
bun install
# Install API server dependencies
cd ../bill-api-server
bun install3. Environment Variables
4. Database Setup
Create Supabase Project
Run Database Migrations
5. Twitter Authentication
6. Telegram Bot Setup
Running the Project
Development Mode
1. Start All Services (Recommended)
2. Individual Services
Testing
Project Structure
Common Development Tasks
Adding a New Tool
Creating a Workflow
Testing Context Pipeline
Troubleshooting
Common Issues
1. "Cannot find module" errors
2. Database connection errors
3. Twitter authentication fails
4. LLM errors
5. WebSocket connection issues
Debug Commands
Production Deployment
Railway (API Server)
Vercel (Website)
Database
Additional Resources
Support
Last updated