A fast and secure OpenAI Api integration plugin for your IntelliJ IDEA
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
Eris is an IntelliJ IDEA plugin that helps you to interact with OpenAI Codex, OpenAI's system that translate from natural language into code. For that, the plugin uses the provided API by OpenAI.
With this plugin we want to share a reliable solution to interact with an AI API, without inspecting your project or sending more data than needed: you can add some context to the prompt, but nothing more.
Having a plugin integrated into your IDE with the ability to add pieces of code into your context is a fast way to interact with an AI without losing your context.
Eris is not yet published into JetBrains Marketplace plugin repository, but following a couple of steps you can install and use the plugin.
- Eris plugin works on JetBrains IntelliJ IDEA Community and Ultimate editions.
- OpenAI Codex API Key (OpenAI API usage is NOT FREE).
First of all, we need an OpenAI API Key:
- Create an account in Codex.
- Once logged in go to Personal -> Manage account.
- Under User/API Keys you can generate a new Key that will be used in our plugin configuration.
- Clone the repo:
git clone https://github.com/autentia/eris
- Go to project folder, and build Eris plugin:
A .zip file is created on projectFolder/build/distributions
./gradlew buildPlugin
- Press ⌘ Comma to open the IDE settings and select Plugins.
- On the Plugins page, click button and then click Install Plugin from Disk… .
- Select the previous .zip file and click OK.
- Click OK to apply the changes and restart the IDE if prompted.
We can see that a new Eris section was added on the right panel.
- First section is the Context box. Here you can add a context for your requests. You can write something or add code from your editor:
- Select text on your code.
- Press right click button and a new action Add to Eris is shown.
- Click and the selected code will be added into your Context section.
- The middle section is your prompt, where you can write questions or ask something regarding your Context content.
- Last section is the Answer box. The AI answer is shown here.
To interact with the OpenAi API, we need to add our OpenAI Key into our Eris settings:
- Press ⌘ Comma to open the IDE settings.
- Go to Tools -> Eri Settings to add the key.
- Hide OpenAi key on settings.
- Set the focus into prompt text field when the plugin in opened.
- Create SDK UI tests.
- Extend plugin usage to other JetBrains IDE's
- WebStorm
- PyCharm
- CLion
- Rider
- DataGrip
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/feature
) - Commit your Changes (
git commit -m 'Add some feature'
) - Push to the Branch (
git push origin feature/feature
) - Open a Pull Request
Distributed under GPL 3 License. See LICENSE.txt
for more information.
Óscar Sánchez - @oskeeker - [email protected]
Project Link: https://github.com/autentia/eris