An enterprise AI Agent workflow visual builder, execution engine, and automated adversarial red-teaming lab powered by Gemini and TypeScript.
- Node.js: v18.0.0 or higher
- npm or pnpm
- Gemini API Key: Get a free API key from Google AI Studio
# Clone the repository
git clone https://github.com/YOUR_USERNAME/agentforge.git
cd agentforge
# Install packages
npm installCreate a .env file in the root directory:
cp .env.example .envInside .env, add your Gemini API Key:
GEMINI_API_KEY=your_gemini_api_key_here
PORT=3000npm run devOpen http://localhost:3000 in your browser.
To build the optimized client bundle and server bundle:
# Build frontend and compile backend
npm run build
# Launch production server
npm startThe server will bind to 0.0.0.0:3000 (or the PORT environment variable) serving both the REST APIs and static SPA.
- In Google Cloud Console or using
gcloud:
gcloud run deploy agentforge \
--source . \
--platform managed \
--region us-central1 \
--allow-unauthenticated \
--set-env-vars GEMINI_API_KEY="your_api_key_here"- Connect your GitHub repository to Render or Railway.
- Set the Build Command:
npm install && npm run build - Set the Start Command:
npm start
- Add the Environment Variable
GEMINI_API_KEYin your provider's dashboard.
server.ts- Express backend proxying Gemini API calls, executing dynamic workflows, and providing/api/v1/agents/:id/runREST endpoints and/api/v1/security/evaluate-probetest runner.src/components/Canvas.tsx- Interactive visual node canvas for building multi-agent DAGs.src/components/SecurityAttackLab.tsx- Automated Red-Team adversarial attack lab mapped to OWASP LLM Top 10 & NIST AI RMF.src/components/DeployModal.tsx- Production deployment console with live cURL testing and webhook endpoints.