This AI-powered IDE is a free and open-source code editor and compiler that allows users to write, run, and debug code in different programming languages. It features an integrated AI chat assistant, providing real-time coding support—similar to Cursor.
This IDE is a fork of the Judge0 IDE. It retains all the core features of the Judge0 IDE, such as support for multiple programming languages and a user-friendly interface for a seamless coding experience.
- Multi-language Support: Write and execute code in various programming languages including C++, Java, Python, and more.
- Integrated AI Chat Assistant: Receive real-time assistance and suggestions from an AI chatbot—accessible inline or via the side panel.
- Multi-LLM Support: Choose from various large language models (LLMs) to power the AI, tailoring responses to meet your specific needs.
- Code Execution: Run your code directly in the browser and view the output instantly.
- File Management: Open and save files easily with a simple interface.
- Customizable Themes: Switch between light and dark themes for a personalized coding environment.
To set up the project, ensure you have Node.js and npm installed on your machine. Then, follow these steps:
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install the required backend dependencies:
cd backend npm install
-
Create a
.env
file in the backend directory and add your API keys:OPENROUTER_API_KEY=your_openrouter_api_key
-
Start the backend server:
node server.js
-
In a new terminal window, serve the frontend using a local development server:
- Using Node.js (Cross-platform)
npx http-server .
- Using Python On MacOS/Linux:
python3 -m http.server 8000
- Using Python On Windows:
python -m http.server 8000
- Using Node.js (Cross-platform)
-
Navigate to the appropriate localhost URL based on your chosen serving method:
- Node.js http-server: http://localhost:8080
- Python http.server: http://localhost:8000
-
Select a programming language from the dropdown menu.
-
Write your code in the provided editor.
-
Use the AI chat assistant to ask questions or get help with your code.
-
Click the "Run Code" button to execute your code and view the output.
- backend/server.js: The server-side code that handles API requests and manages code execution.
- js/ai.js: JavaScript file containing the AI chat assistant logic and interactions.
- js/theme.js: Handles theme management and user interface styling.
- index.html: The main HTML file serving as the front-end of the web application.
- css/ide.css: Stylesheet for the IDE layout and components.
- Express: For building the web server and handling HTTP requests.
- CORS: For enabling Cross-Origin Resource Sharing in the server.
- dotenv: For loading environment variables from the
.env
file.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
The following section contains the original README content from Judge0.
Judge0 IDE is a free and open-source online code editor that allows you to write and execute code from a rich set of languages. It's perfect for anybody who just wants to quickly write and run some code without opening a full-featured IDE on their computer. Moreover, it is also useful for teaching and learning or just trying out a new language.
Judge0 IDE is using Judge0 for executing the user's source code.
Visit https://ide.judge0.com, and enjoy happy coding. :)
Do you have a question, feature request, or something else on your mind? Or do you want to follow Judge0 news?
- Subscribe to Judge0 newsletter
- Join our Discord server
- Watch asciicasts
- Report an issue
- Contact us
- Schedule an online meeting with us
Judge0 IDE was created by Herman Zvonimir Došilović.
Thanks a lot to all contributors for their contributions to this project.
Judge0 IDE is licensed under the MIT License.