Skip to content

yusufadeagbo/Forge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”§ Forge - Self-Hosted AI Developer Platform

Production-grade infrastructure for building AI coding assistants. An open-source alternative to Cursor/Devin with good security and self-hosting capabilities.

License: MIT TypeScript PRs Welcome

🎯 What is Forge?

Forge is a 75% complete platform for building AI-powered developer tools with features that existing solutions lack:

  • 🏠 Self-Hosted - Deploy on-premises for compliance (HIPAA, SOC2, etc.)
  • πŸ€– Multi-LLM - OpenAI, Anthropic, or bring your own model
  • πŸ”’ Security - RBAC, policy engine, secrets detection
  • πŸ“Š Complete Audit Trails - Track every AI interaction
  • 🐳 Production-Ready - Docker, PostgreSQL, Redis, Weaviate

πŸš€ Quick Start

# Clone repository
git clone https://github.com/yusufadeagbo/Forge.git
cd Forge

# Copy environment file
cp .env.example .env
# Edit .env and add your API keys:
# - OPENAI_API_KEY (required)
# - ANTHROPIC_API_KEY (optional)

# Start infrastructure (PostgreSQL, Redis, Weaviate, MinIO)
docker-compose up -d

# Install dependencies
npm install

# Build all packages
npm run build

# Run database migrations
cd packages/memory && npx prisma migrate dev && cd ../..

# Start API server
./start-api.sh

# In another terminal, verify it works:
curl http://localhost:3000/api/v1/health
# Should return: {"status":"healthy",...}

See docs/GETTING_STARTED.md for detailed setup.

✨ Features

βœ… Completed (75%)

  • Core Infrastructure

    • REST API with Express
    • PostgreSQL + Prisma ORM
    • Redis caching
    • Weaviate vector database
    • MinIO object storage
    • Docker Compose orchestration
  • AI Integration

    • Multi-LLM routing (OpenAI, Anthropic)
    • Intelligent fallback logic
    • Token usage tracking
    • Spec generation from natural language
    • Job orchestration system
  • Security & Compliance

    • Role-based access control (RBAC)
    • Policy engine for approval workflows
    • Secrets detection in code
    • Complete audit trails
  • Developer Tools

    • CLI for project management
    • Code indexing with tree-sitter
    • GitHub PR integration structure
    • VS Code extension structure

🚧 In Progress (20%)

  • Docker sandbox execution
  • Actual code generation
  • Test running & validation
  • Diff generation
  • GitHub PR creation

πŸ“‹ Planned (5%)

  • VS Code extension completion
  • Multi-repository support
  • Cost tracking dashboard
  • Web UI for management

πŸ—οΈ Architecture

Monorepo with 12 packages:

packages/
β”œβ”€β”€ api/          # REST API server (Express + TypeScript)
β”œβ”€β”€ cli/          # Command-line interface
β”œβ”€β”€ executor/     # Docker sandbox manager
β”œβ”€β”€ indexer/      # Code indexing (tree-sitter)
β”œβ”€β”€ memory/       # Database repositories (Prisma)
β”œβ”€β”€ model-router/ # LLM routing & fallback logic
β”œβ”€β”€ monitoring/   # Prometheus metrics
β”œβ”€β”€ planner/      # Spec & job generation
β”œβ”€β”€ pr-manager/   # GitHub/GitLab integration
β”œβ”€β”€ safety/       # Security & secrets detection
β”œβ”€β”€ shared/       # Common types & utilities
└── vscode/       # VS Code extension (WIP)

Tech Stack: TypeScript Β· Node.js Β· Docker Β· PostgreSQL Β· Redis Β· Weaviate Β· Prisma Β· Express

πŸ“– Documentation

🀝 Contributing

I welcome contributions! See CONTRIBUTING.md for guidelines.

Areas I need help with:

  • βœ… Completing executor integration
  • πŸ§ͺ Test coverage improvements
  • πŸ“š Documentation enhancements
  • 🎨 VS Code extension development
  • πŸ› Bug fixes and optimizations

πŸ’‘ Why Forge?

Existing AI coding tools (Cursor, Devin, GitHub Copilot) are excellent but have limitations:

Requirement Cursor/Devin Copilot Forge
Self-hosted ❌ No ❌ No βœ… Yes
Multi-LLM ❌ No ❌ No βœ… Yes
Advanced RBAC ⚠️ Basic ⚠️ Basic βœ… Built-in
Policy Engine ❌ No ❌ No βœ… Yes
Audit Trails ⚠️ Limited ⚠️ Limited βœ… Complete
Secrets Detection ⚠️ Limited ⚠️ Limited βœ… Built-in
Compliance Ready ❌ No ❌ No βœ… Yes

Forge was built to solve these problems with production-grade, self-hosted architecture.

πŸ›‘οΈ Security

  • Secrets Detection - Automatically scans code for API keys, tokens, passwords
  • Policy Engine - Define approval workflows for sensitive operations
  • RBAC - Fine-grained role-based access control
  • Audit Logs - Complete tracking of all operations

Found a security issue? Email yusufadeagbo100@gmail.com or see SECURITY.md.

πŸ“Š Project Status

Metric Value
Completion 75%
Production Code 10,119 lines (5,651 prod + 4,468 tests)
Packages 12/12 building successfully
Test Coverage Partial (expanding)
Build Status βœ… Passing

See ROADMAP.md for detailed status and upcoming features.

πŸŽ“ Use Cases

1. Compliance-First Organizations

Banks, healthcare, and government contractors that can't send code to external APIs.

2. Multi-Repository Teams

Large organizations managing dozens of microservices that need coordinated changes.

3. Custom LLM Integration

Teams using proprietary or specialized language models (finance-tuned, medical-tuned, etc.).

4. Junior Developer Support

Agencies that need approval workflows before AI-generated code goes to production.

πŸ“œ License

MIT License - see LICENSE for details.

Free to use, modify, and distribute. No restrictions for commercial use.

πŸ™ Acknowledgments

Built with excellent open source tools:

πŸ“ž Contact & Support

Author: Yusuf Adeagbo
GitHub: @yusufadeagbo
Email: yusufadeagbo100@gmail.com LinkedIn: https://www.linkedin.com/in/yusufadeagbo/

πŸ’Ό Available for consulting on AI developer tools and integrations

πŸ€” FAQ

Q: Can I use this in production?
A: It's 75% complete. Core platform works, but executor integration is in progress. Suitable for evaluation and contribution.

Q: What LLMs are supported?
A: OpenAI (GPT-4, GPT-3.5) and Anthropic (Claude). Easy to add more via the model router.

Q: Is this really better than Cursor?
A: Different use case. Cursor is great for individual developers. Forge is for teams that need self-hosting, compliance, and controls.

Q: How can I help?
A: Check CONTRIBUTING.md and look for issues labeled good-first-issue or help-wanted.


⭐ If you find this project interesting, please star the repository!

Made with ❀️ by developers who believe in open, secure, and AI tools.

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors