Skip to content

Repository files navigation

🚀 CodePilot

AI-Powered Code Assistant with Multi-Provider Support

License: MITPHP 8.1+Made with ❤️

A web-based AI coding IDE featuring multi-provider chat, project management, image generation, and Monaco editor.

FeaturesInstallationScreenshotsAPIContributing


✨ Features

FeatureDescription
🤖 Multi-Provider AIOllama, DeepSeek, Gemini 2.5, HuggingFace
📁 Project ManagerCreate projects with 7 starter templates
🎨 AI StudioImage generation (Imagen 3) & Vision analysis
📝 Monaco EditorVS Code's editor engine built-in
🗂️ File BrowserBrowse, edit, and save project files
🌙 Dark ThemeBeautiful glassmorphism design

🖼️ Screenshots

Chat InterfaceFunctional IDEStudioProjects
ChatIDEStudioProjects

💖 Support the Project

If you find CodePilot useful, consider supporting its development:


🚀 Installation

Requirements

  • PHP 8.1+
  • Apache with mod_rewrite (or Laragon/XAMPP)
  • API keys for your preferred providers

Quick Start

# Clone the repository
git clone https://github.com/LebToki/CodePilot.git
# Navigate to the projectcd CodePilot
# Copy environment file
cp .env.example .env
# Configure your API keys in .env

Configuration

Edit .env with your API keys:

# DeepSeekDEEPSEEK_API_KEY=your_key_here# Google GeminiGEMINI_API_KEY=your_key_here# HuggingFace (optional)HUGGINGFACE_API_KEY=your_key_here# Ollama (local)OLLAMA_API_URL=http://localhost:11434/api

Access

Open in browser: http://localhost/CodePilot/public/


📦 Project Templates

TemplateDescriptionFiles Included
🐘 PHPComposer project with PSR-4composer.json, src/App.php, tests
🐍 PythonModern Python with pyproject.tomlCLI, pytest, type hints
📦 Node.jsESM package with testspackage.json, utilities
🌐 HTMLLanding page starterHero, features, responsive CSS
🧪 FlaskPython web frameworkApp factory, blueprints
ExpressNode.js REST APIRoutes, middleware, CORS

🎨 AI Studio

Image Generation

Generate images using Imagen 3 with:

  • Multiple aspect ratios (1:1, 16:9, 9:16)
  • Style presets (photorealistic, digital art, anime, etc.)
  • Auto-saved to gallery

Vision Analysis

Upload images for AI analysis:

  • Code screenshot debugging
  • UI/UX mockup analysis
  • Diagram interpretation
  • Error message explanation

🔌 API Endpoints

EndpointMethodDescription
/api/chat.phpPOSTMulti-provider chat
/api/vision.phpPOSTImage analysis
/api/imagen.phpPOSTImage generation
/api/projects.phpGET/POSTProject management
/api/files.phpGET/POSTFile operations
/api/providers.phpGETList available models

🗂️ Project Structure

CodePilot/
├── public/
│ ├── index.php # Main chat interface
│ ├── projects.php # Project manager
│ ├── studio.php # AI Studio
│ ├── settings.php # Configuration
│ ├── api/ # API endpoints
│ ├── assets/ # CSS & JS
│ └── generated/ # Generated images
├── src/
│ └── config.php # Configuration loader
├── .env # Environment variables
└── README.md

🛠️ Supported Providers

ProviderModelsType
OllamaAny local modelLocal
DeepSeekChat, Coder, Reasoner (R1)Cloud
Gemini2.5 Pro, 2.5 Flash, 2.0, 1.5Cloud
HuggingFaceLlama 3.3, Qwen 2.5, MixtralCloud

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


👨‍💻 Author

Tarek Tarabichi


Made with ❤️ by 2TInteractive

⭐ Star this repo if you find it helpful!

About

A web-based AI coding IDE featuring multi-provider chat, project management, image generation, and Monaco editor.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages