What is CodeGPT?
CodeGPT is a free, open-source AI coding assistant that provides a wide range of features to enhance your coding experience while keeping privacy in mind. It offers access to state-of-the-art large language models from leading providers such as OpenAI, Anthropic, Azure, Mistral, and others, or connects to a locally hosted model for a completely offline and transparent development experience.
Core Features of CodeGPT
Code Completions
CodeGPT provides single-line or whole-function autocomplete suggestions as you type.
Chat (with Vision)
Get instant coding advice through a ChatGPT-like interface. Ask questions, seek explanations, or get guidance on your projects without leaving your IDE. CodeGPT also supports vision models and image understanding, allowing you to attach images for more context-aware assistance.
Commit Message Generation
CodeGPT can generate meaningful commit messages based on the changes made in your codebase. It analyzes the diff of your staged changes and suggests concise and descriptive commit messages, saving you time and effort.
Reference Files
CodeGPT allows you to reference specific files or documentation during your chat sessions, ensuring that responses are always relevant and accurate.
Name Suggestions
Stuck on naming a method or variable? CodeGPT offers context-aware suggestions, helping you adhere to best practices and maintain readability in your codebase.
OpenAI Compatibility
CodeGPT provides integration with most cloud providers that are OpenAI-compatible, such as Together.ai, Grok, Anyscale, and others, as well as the option to customize your own setup.
Offline Development Support
CodeGPT supports a completely offline development workflow by allowing you to connect to a locally hosted language model. This ensures that your code and data remain private and secure within your local environment, eliminating the need for an internet connection or sharing sensitive information with third-party servers.
How to Use CodeGPT
Installation
The plugin is available from JetBrains Marketplace. You can install it directly from your IDE via the File | Settings/Preferences | Plugins screen. On the Marketplace tab, simply search for CodeGPT and select the CodeGPT suggestion.
Configuration
After successful installation, configure your API key. Navigate to the plugin's settings via File | Settings/Preferences | Tools | CodeGPT. Paste your OpenAI API key into the field and click Apply/OK.
Pricing
CodeGPT is free and open-source, with optional integrations with cloud providers that may require authentication via API keys.
Helpful Tips
- CodeGPT supports a wide range of features, including code completions, chat, commit message generation, reference files, and name suggestions.
- CodeGPT is compatible with various cloud providers, including OpenAI, Anthropic, Azure, and Mistral.
- CodeGPT supports offline development, ensuring that your code and data remain private and secure within your local environment.
Frequently Asked Questions
Q: Is CodeGPT free?
A: Yes, CodeGPT is free and open-source.
Q: What are the system requirements for CodeGPT?
A: CodeGPT is compatible with IntelliJ IDEA (Ultimate, Community), Android Studio, and 17 more.
Q: Can I use CodeGPT offline?
A: Yes, CodeGPT supports a completely offline development workflow by allowing you to connect to a locally hosted language model.