Nivuus Agent is an autonomous and proactive AI assistant, powered by the OpenAI API, designed to run locally on your Linux system. Its mission: to deeply understand, maintain, and improve your system, while ensuring you remain in control.
Cette commande télécharge la dernière version de l'exécutable Linux depuis le dépôt GitHub, le rend exécutable, et le lance en passant votre clé API OpenAI. Remplacez <VOTRE_CLE_API_OPENAI>
par votre clé réelle.
curl -LJO https://github.com/maximeallanic/nivuus-agent/releases/latest/download/nivuus-agent-linux && chmod +x nivuus-agent-linux && ./nivuus-agent-linux --api-key=<VOTRE_CLE_API_OPENAI>
- Prerequisites: Node.js (v18+), npm, et une OpenAI API key.
- Clone (if needed) & Install:
git clone https://github.com/maximeallanic/nivuus-agent.git # Clone the repo cd nivuus-agent npm install
- Configure API Key:
- Recommended Method: Create a
.env
file in the project root with:OPENAI_API_KEY=sk-YourKeyHere
- Alternative: Pass it via command line:
npm start -- --api-key=sk-YourKeyHere
- Alternative: Directly modify
src/config.ts
(less secure).
- Recommended Method: Create a
- Launch the Agent:
npm start # Or: npm start -- --api-key=sk-YourKeyHere
The agent will start, potentially analyze your system, and then wait for your instructions or propose actions.
Pour utiliser Nivuus Agent, vous avez besoin d'une clé API OpenAI. Voici comment en obtenir une :
- Créez un compte OpenAI : Allez sur platform.openai.com et inscrivez-vous ou connectez-vous.
- Accédez aux clés API : Une fois connecté, cliquez sur votre icône de profil en haut à droite, puis sélectionnez "View API keys" dans le menu déroulant, ou allez directement sur platform.openai.com/api-keys.
- Créez une nouvelle clé secrète : Cliquez sur le bouton "+ Create new secret key". Donnez-lui un nom reconnaissable (par exemple, "NivuusAgentKey").
- Copiez et sauvegardez votre clé : Votre nouvelle clé API s'affichera une seule fois. Copiez-la immédiatement et conservez-la en lieu sûr. Vous ne pourrez pas la revoir après avoir fermé la fenêtre.
- Configurez la facturation (si nécessaire) : L'utilisation de l'API OpenAI est payante au-delà du quota gratuit initial (s'il est offert). Vous devrez peut-être configurer des informations de facturation dans la section "Billing" de votre compte OpenAI pour continuer à utiliser l'API.
Important : Traitez votre clé API comme un mot de passe. Ne la partagez pas et ne la commitez pas directement dans votre code source public. Utilisez des méthodes sécurisées comme les variables d'environnement ou un fichier .env
.
- Intelligent Autonomy: Explores and analyzes your system without constant intervention.
- Proactivity: Doesn't just react; it identifies potential issues (bugs, performance, security) and proposes solutions.
- User Control: No system command is executed without your explicit confirmation. You stay in charge.
- Persistent Memory: Learns and remembers key information about your system between sessions.
- Adaptability: Understands French and English.
- Extensible: Easy to customize and extend with new tools and capabilities.
- In-Depth System Discovery: Explores hardware, OS, software, network...
- Bug Detection & Correction: Identifies errors and misconfigurations, proposes fixes (with confirmation).
- Performance Optimization: Analyzes and suggests improvements (with confirmation).
- Security Enhancement: Assesses security posture and proposes hardening measures (with confirmation).
- Feature Suggestion: Proposes improvements based on analysis.
- Integrated Tools:
- Shell Command Execution (controlled and with confirmation via
run_bash_command
). - File Reading (
read_file
). - Web Search (
web_search
via DuckDuckGo). - Directory Listing (
list_directory
). - File Writing (controlled and with confirmation via
write_file
).
- Shell Command Execution (controlled and with confirmation via
- History & Memory: Retains conversation (
conversation_history.json
) and system information (agent_memory.json
). - Localization: Interface in French/English.
- Loads state (history, memory).
- Sends context (history, memory summary, system prompt, user instruction) to the OpenAI API.
- The AI analyzes and decides to:
- Respond with text.
- Autonomously use an information tool (
read_file
,list_directory
,web_search
). - Propose an action requiring confirmation (
run_bash_command
,write_file
).
- If an autonomous tool is used, the result is added to history, and the AI is called again.
- If an action with confirmation is proposed:
- The corresponding tool function (
runCommand
,writeFileWithConfirmation
) asks for your approval. - The action is executed or canceled based on your response.
- The result is added to history, and the AI is called again.
- The corresponding tool function (
- The AI generates a final text response if needed.
- The loop continues.
- Core Behavior: Modify
default_system_prompt_template
insrc/config.js
. - AI Model: Change
MODEL_NAME
insrc/config.js
. - Tools: Add/modify functions in
src/tools.js
. - Languages: Adapt
src/locales.js
.
index.js
: Entry point.package.json
: Metadata and dependencies..env
(to be created): For securely storing the API key.conversation_history.json
: Dialogue.agent_memory.json
: Persistent memory.src/
: Main logic (agent, config, locales, tools, utils).docs/
: Documentation and resources (likescreenshot.png
).
To exit the agent, type quit
or press CTRL+C
.