Skip to content

hackerai-tech/hackerai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

920 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackerAI Logo

HackerAI

Your AI-Powered Penetration Testing Assistant

License Website

Getting started

Prerequisites

You'll need the following accounts:

Required:

  • OpenRouter - AI model provider
  • OpenAI - Content moderation
  • E2B - Sandbox environment for secure code execution in agent mode
  • Convex - Database and backend
  • WorkOS - Authentication and user management
  • Trigger.dev - Required durable runtime for agent tasks

Optional:

Clone the repo

git clone https://github.com/hackerai-tech/hackerai.git

Navigate to the project directory

cd hackerai

Install dependencies

pnpm install

Run the setup script

pnpm run setup

Start the development server

This runs both Next.js and Convex dev servers:

pnpm run dev

Or run them separately in two terminals:

pnpm run dev:next
pnpm run dev:convex

Run the Trigger.dev worker

Agent mode runs the agent loop on a Trigger.dev task. To use the agent locally:

  1. Create a project at https://cloud.trigger.dev and copy your dev secret key (tr_dev_…) into .env.local as TRIGGER_SECRET_KEY.

  2. In the Trigger.dev dashboard → your project → Environment Variables, add the env vars the task needs to run (these live on the worker, not on Vercel): NEXT_PUBLIC_CONVEX_URL, CONVEX_SERVICE_ROLE_KEY, OPENROUTER_API_KEY, OPENAI_API_KEY, E2B_API_KEY, plus any keys you use (PERPLEXITY_API_KEY, JINA_API_KEY, S3, etc.).

  3. Start the worker in a third terminal:

    npx trigger.dev@latest dev