Fast-Track Setup for Autonomous AI Agents | 5-Minute Installation
Version: 1.0.0
Organization: https-quantumblockchainai-atlassian-net
# 1. Clone
git clone https://github.com/https-quantumblockchainai-atlassian-net/AgentGPT.git
cd AgentGPT
# 2. Install
npm install
# 3. Configure
echo "OPENAI_API_KEY=sk_test_your_key_here" > .env.local
echo "NEXTAUTH_SECRET=$(openssl rand -base64 32)" >> .env.local
echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local
# 4. Run
npm run dev
# 5. Access
open http://localhost:3000AgentGPT allows you to:
- 🔧 Configure autonomous AI agents
- 🎨 Name your custom AI agent
- 🚀 Define any goal imaginable
- 🧠 Let the agent think, execute, and learn
The agent will:
- Think - Break down goals into tasks
- Execute - Perform actions using tools
- Learn - Adjust based on results
# Check Node.js version
node --version # Should be >= 16.0.0 (18+ recommended)
npm --version # Should be >= 8.0.0
# Check Git
git --version
# Verify OpenAI API access (get key from https://platform.openai.com)
# You'll need an OpenAI API key| Component | Requirement |
|---|---|
| Node.js | >= 16.0.0 (18+ LTS recommended) |
| NPM | >= 8.0.0 |
| RAM | >= 4GB |
| Disk Space | >= 500MB |
| Internet | Required (API calls) |
# Clone the repository
git clone https://github.com/https-quantumblockchainai-atlassian-net/AgentGPT.git
cd AgentGPT
# Install dependencies
npm install
# This will take 2-3 minutes on first install
# Alternative with faster package manager
pnpm install # or yarn install# Copy environment template
cp .env.example .env.local
# Edit .env.local with your keys
nano .env.local
# or
open .env.local
# or
code .env.localRequired Variables:
# API Configuration
OPENAI_API_KEY=sk_test_your_actual_key_here
# NextAuth Configuration
NEXTAUTH_SECRET=your_secret_key_here
# Generate: openssl rand -base64 32
NEXTAUTH_URL=http://localhost:3000
# Database (SQLite for local development)
DATABASE_URL=file:./db.sqlite# Setup database
npx prisma db push
# Start development server
npm run dev
# Server starts on http://localhost:3000- Go to OpenAI Platform
- Sign up or log in
- Navigate to API keys → Create new secret key
- Copy the key to your
.env.local
# Verify your key works
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY"# Generate a random secret
openssl rand -base64 32
# Or use Node.js
node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"npm run devOutput:
> next dev
> AgentGPT dev server running on http://localhost:3000
# Open in browser
open http://localhost:3000
# or
xdg-open http://localhost:3000
# or
start http://localhost:3000Changes to code automatically reload the browser. No need to restart!
- Navigate to http://localhost:3000
- Name your agent (e.g., "DataAnalyzer", "CodeBot", "ContentCreator")
- Set Goal - Be specific! Examples:
- "Analyze the sentiment of customer reviews"
- "Generate a marketing plan for my SaaS"
- "Create a weekly meal plan for 4 people"
- Click Deploy - Watch your agent work!
The agent can:
- ✅ Research information
- ✅ Break down complex tasks
- ✅ Execute multiple steps
- ✅ Learn from results
- ✅ Provide detailed reporting
"Create a comprehensive guide on machine learning for beginners"
"Analyze competitor pricing and suggest our optimal price point"
"Generate SEO recommendations for my blog"
"Create a project timeline for developing a mobile app"
"Write and optimize a LinkedIn profile summary"
# Development
npm run dev # Start dev server (http://localhost:3000)
# Production
npm run build # Build for production
npm run start # Start production server
# Testing & Quality
npm run test # Run tests (if configured)
npm run lint # Check code quality
npm run type-check # Run TypeScript checks
# Database
npx prisma studio # Open Prisma Studio (database GUI)
npx prisma db push # Sync database schema
# Utilities
npm run clean # Clean build artifacts
npm run format # Format code with Prettier# Build image
docker build -t agentgpt .
# Run container
docker run -p 3000:3000 \
-e OPENAI_API_KEY=sk_test_your_key \
-e NEXTAUTH_SECRET=your_secret \
agentgptversion: '3.8'
services:
agentgpt:
build: .
ports:
- "3000:3000"
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
NEXTAUTH_URL: http://localhost:3000
DATABASE_URL: file:./db.sqlite
volumes:
- ./db:/app/db# Run with Docker Compose
docker-compose up# Check .env.local
cat .env.local
# Verify file exists
ls -la .env.local
# Re-create if needed
cp .env.example .env.local
nano .env.local# Kill process on port 3000
lsof -ti:3000 | xargs kill -9
# Or use different port
PORT=3001 npm run dev# Clean install
rm -rf node_modules package-lock.json
npm install
npm run dev# Reset database
npx prisma db push --force-reset
# Or regenerate client
npx prisma generate# Use legacy peer dependencies flag
npm install --legacy-peer-depsAgentGPT/
├── src/
│ ├── pages/ # Next.js pages
│ ├── components/ # React components
│ ├── server/ # Backend API (tRPC)
│ ├── env/ # Environment validation
│ └── styles/ # TailwindCSS
├── prisma/
│ └── schema.prisma # Database schema
├── public/ # Static assets
├── .env.local # Your local config
├── .eslintrc.json # Linting rules
├── tsconfig.json # TypeScript config
└── package.json # Dependencies
| Layer | Technology | Purpose |
|---|---|---|
| Framework | Next.js 13 | React framework with server components |
| Language | TypeScript | Type-safe JavaScript |
| Styling | TailwindCSS | Utility-first CSS |
| UI Library | HeadlessUI | Unstyled accessible components |
| Database | Prisma + Supabase | Type-safe ORM |
| API | tRPC | Type-safe RPC framework |
| Auth | NextAuth.js | Authentication |
| Validation | Zod | Schema validation |
# Install Vercel CLI
npm install -g vercel
# Deploy
vercel
# Set environment variables in Vercel dashboard
# - OPENAI_API_KEY
# - NEXTAUTH_SECRET
# - NEXTAUTH_URL (your production URL)
# - DATABASE_URL (if using cloud database)OPENAI_API_KEY=sk_live_your_production_key
NEXTAUTH_SECRET=your_production_secret_key
NEXTAUTH_URL=https://yourdomain.com
DATABASE_URL=postgresql://user:pass@host/db
NODE_ENV=production# Never commit .env.local
echo ".env.local" >> .gitignore
# Use different keys for dev/prod
# DEV: Use sk_test_* keys
# PROD: Use sk_* keys (production)
# Rotate keys regularly
# Check for exposed keys: git-secrets, gitleaks# Use environment variable management service
# - GitHub Secrets
# - Vercel Environment Variables
# - HashiCorp Vault
# - AWS Secrets Manager
# Enable HTTPS only
# Use Content Security Policy
# Enable CORS properly# Enable debug mode
DEBUG=* npm run dev
# View server logs
tail -f .next/server.log# Monitor with Vercel Analytics
# or use service like:
# - Sentry (error tracking)
# - Datadog (monitoring)
# - LogRocket (session replay)# 1. Fork repository
# 2. Create feature branch
git checkout -b feature/my-feature
# 3. Make changes and commit
git add .
git commit -m "feat: description of changes"
# 4. Push and create PR
git push origin feature/my-feature| Task | Time |
|---|---|
| Install Node.js | 5-10 min |
| Clone repo | 1-2 min |
| npm install | 2-3 min |
| Environment setup | 2-3 min |
| Database setup | 1-2 min |
| Start dev server | 30 sec |
| Total | 15-20 min |
- Node.js 18+ installed
- Repository cloned
- Dependencies installed (
npm install) -
.env.localcreated and filled - OpenAI API key verified
- Database initialized (
npx prisma db push) - Dev server running (
npm run dev) - Can access http://localhost:3000
- Can create and run an agent
- Check logs - Run
npm run devand read error messages - Clear cache -
rm -rf node_modules package-lock.json && npm install - Check environment -
cat .env.local - Search issues - GitHub Issues
- Ask community - Discord
# Enable verbose logging
DEBUG=* npm run dev
# TypeScript strict mode
npm run type-check
# Lint check
npm run lint- Create an agent - Set a goal and run it!
- Explore API - Check tRPC endpoints in
/src/server/api/routers - Customize UI - Modify components in
/src/components - Read code - Understand the structure
- Deploy - Push to production on Vercel
- Contribute - Help improve AgentGPT!
| Channel | Link |
|---|---|
| GitHub Issues | Open Issue |
| Discord | Join Community |
| @asimdotshrestha | |
| Website | agentgpt.reworkd.ai |
Happy agent building! 🚀
Last Updated: May 20, 2026
Version: 1.0.0
Status: ✅ Current & Maintained
OMNI-333 Initiative