Code.AI is an online code editor designed to supercharge your coding experience with the power of AI. It helps you write code faster, refactor inline code efficiently, and resolve bugs with an integrated chat area.
- AI-Powered Code Assistance: Leverage any AI model by using your API key to get real-time coding assistance.
- Inline Code Refactorization: Automatically refactor your code inline, making your development process cleaner and faster.
- Bug Assistance Chat Area: Use the built-in chat to get help with bug fixing and troubleshooting.
- An API key for the AI model of your choice (e.g., OpenAI, GPT-4, etc.).
-
Clone the repository
-
Install the required dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and go to
http://localhost:3000
to start using Code.AI locally.
-
Set Up Your API Key:
- Once you login you can see an option to select your model.
- Select your preferred model and enter your API key to connect the AI model.
-
Write Code:
- Start typing your code in the editor. The AI will provide suggestions and code completions in real-time.
-
Refactor Code:
- Highlight any block of code, and the inline refactorization tool will suggest optimizations and improvements.
-
Chat for Bug Fixes:
- Use the chat area to describe any bugs or issues you're facing, and the AI will assist you in debugging.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-branch-name
. - Submit a pull request.