Local Setup

Install and run Hyperagent directly on your machine for development.

Installation

Terminal
# Clone repository
git clone https://github.com/Hyperkit-Labs/hyperagent.git
cd hyperagent

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Database Setup

Set up PostgreSQL database:

Terminal
# Create database
createdb hyperagent

# Run migrations
alembic upgrade head

Running the Server

Terminal
# Set environment variables
export DATABASE_URL=postgresql://user:pass@localhost/hyperagent
export GEMINI_API_KEY=your_key

# Start development server
uvicorn hyperagent.api.main:app --reload