A web-based AI coding IDE featuring multi-provider chat, project management, image generation, and Monaco editor.
Features โข Installation โข Screenshots โข API โข Contributing
| Feature | Description |
|---|---|
| ๐ค Multi-Provider AI | Ollama, DeepSeek, Gemini 2.5, HuggingFace |
| ๐ Project Manager | Create projects with 7 starter templates |
| ๐จ AI Studio | Image generation (Imagen 3) & Vision analysis |
| ๐ Monaco Editor | VS Code's editor engine built-in |
| ๐๏ธ File Browser | Browse, edit, and save project files |
| ๐ Dark Theme | Beautiful glassmorphism design |
If you find CodePilot useful, consider supporting its development:
- Buy Me A Coffee: LebToki
- Paypal: Donate via Paypal
- PHP 8.1+
- Apache with mod_rewrite (or Laragon/XAMPP)
- API keys for your preferred providers
# Clone the repository git clone https://github.com/LebToki/CodePilot.git # Navigate to the project cd CodePilot # Copy environment file cp .env.example .env # Configure your API keys in .env
Edit .env with your API keys:
# DeepSeek DEEPSEEK_API_KEY=your_key_here # Google Gemini GEMINI_API_KEY=your_key_here # HuggingFace (optional) HUGGINGFACE_API_KEY=your_key_here # Ollama (local) OLLAMA_API_URL=http://localhost:11434/api
Open in browser: http://localhost/CodePilot/public/
| Template | Description | Files Included |
|---|---|---|
| ๐ PHP | Composer project with PSR-4 | composer.json, src/App.php, tests |
| ๐ Python | Modern Python with pyproject.toml | CLI, pytest, type hints |
| ๐ฆ Node.js | ESM package with tests | package.json, utilities |
| ๐ HTML | Landing page starter | Hero, features, responsive CSS |
| ๐งช Flask | Python web framework | App factory, blueprints |
| โก Express | Node.js REST API | Routes, middleware, CORS |
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
Upload images for AI analysis:
- Code screenshot debugging
- UI/UX mockup analysis
- Diagram interpretation
- Error message explanation
| Endpoint | Method | Description |
|---|---|---|
/api/chat.php |
POST | Multi-provider chat |
/api/vision.php |
POST | Image analysis |
/api/imagen.php |
POST | Image generation |
/api/projects.php |
GET/POST | Project management |
/api/files.php |
GET/POST | File operations |
/api/providers.php |
GET | List available models |
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
| Provider | Models | Type |
|---|---|---|
| Ollama | Any local model | Local |
| DeepSeek | Chat, Coder, Reasoner (R1) | Cloud |
| Gemini | 2.5 Pro, 2.5 Flash, 2.0, 1.5 | Cloud |
| HuggingFace | Llama 3.3, Qwen 2.5, Mixtral | Cloud |
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Tarek Tarabichi
- Website: 2tinteractive.com
- GitHub: @LebToki
Made with โค๏ธ by 2TInteractive
โญ Star this repo if you find it helpful!



