Electron is powerful, easy to use command-line AI assistant inspired by J.A.R.V.I.S.
Whether you're a developer, researcher, or just someone who is looking to experiment with AI in your terminal, Electron is for you! It offers:
- Seamless natural language interaction in the terminal.
- Integration with different AI models for enhanced productivity.
- Customizable workflows tailored to your needs.
Basically, forget typing complex shell commands in your terminal and simply instruct Electron to do it for you using natural language.
Contents
- Natural Language Understanding: Communicate with Electron using natural language.
- Inbuilt Terminal Support: Send commands to your terminal using Electron.
- API Integration: Connect with various APIs and tools for enhanced functionality.
- Customizable Workflows: Tailor commands and workflows to suit your needs.
- Interaction History: View and manage past interactions with the assistant.
- Markdown Support: Displays responses in rich Markdown format for better readability.
Get a free/paid AI/ML API key from here and save it somewhere, you will need it for authenticatication while using the assistant.
Now open your terminal and:
- Clone the repository:
Or download and extract files from the latest release.
git clone https://github.com/jorexdeveloper/electron.git
- Navigate to the project directory and execute the installer:
This will interactively install everything in the repository directory, so that you can rename and move it anywhere without any conflicts.
bash electron/install.sh
Electron requires a configuration file (settings.json
) to function properly, but don't worry, a new ome with default values will be created if it's missing You can customize the following keys:
model
: The AI model to use (default:gpt-4o-mini
).api_key
: Your API key for authentication. If left empty, its got from the environment asAPI_KEY
system_message
: The assistant's context message.assistant_name
: The name of the assistant (default:Electron
).user_name
: Your name for personalized interactions.
Run the Electron assistant using the following command:
python electron.py
Once running, you can interact with Electron using natural language commands. For example:
> What is the weather today?
> Create a new file named "example.txt".
- View Interaction History:
history history 5
- Exit Commands:
Use any of the following commands to exit:
q, quit, exit, bye, close, stop
-
Missing API Key: If you see an error about a missing API key, ensure you have set it in the
settings.json
file or as an environment variable. -
Connection Errors: Check your internet connection and ensure the API endpoint is reachable.
Electron requires an API key to function. If the key is missing, you will be prompted to provide one during the first run.
Yes! You can change the assistant's name by editing the assistant_name
field in the settings.json
file.
Contributions to this project are not only welcome but also encouraged.
Here is the current TODO list:
- Add more commands and workflows for common tasks.
- Improve error handling and logging.
- Enhance the configuration process for better user experience.
Feel free to fork the repository, make your changes, and submit a pull request. Let's make Electron even better together!
Copyright (C) 2025 Jore
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.