An AI-powered CLI tool to automate coursework on the Mentari academic platform.
- Secure License System: Authenticates with a remote server to ensure only authorized users can operate the tool.
- AI-Powered Answers: Integrates with Google's Gemini AI to provide intelligent, context-aware answers for quizzes.
- Interactive Course Selection: A clean interface to select one or more courses to process.
- Standalone Executable: Packaged into a single
.exefile that runs on Windows without needing Node.js installed. - External Configuration: Easily update your credentials by editing a simple
config.txtfile, no rebuilding required. - Real-Time Logging: Colorful, easy-to-read logs show the bot's progress and actions as they happen.
- Runtime: Node.js
- Language: JavaScript (ES6 Modules)
- CLI Interface: Inquirer, Chalk
- AI: Google Gemini API
- Authentication: Custom License Server (Node.js, Express, Supabase)
- Build Process: esbuild, pkg
-
Obtain a License Key: This is a paid tool. To get a valid license key, please contact the author.
-
Download: Download the latest
mentari-ai-p2c.zipfile from the Releases page. -
Extract: Unzip the downloaded file into a new folder anywhere on your computer.
-
Configure: In the same folder, create a new text file named
config.txt. Open it and paste the following, replacing the placeholders with your actual credentials:# Your unique license key provided upon purchase LICENSE_KEY=your-unique-license-key-here # Your personal bearer token from the Mentari platform MENTARI_TOKEN=your_long_bearer_token_from_the_mentari_platform # Your personal Google Gemini API key GEMINI_API_KEY=your_google_gemini_api_key
-
Run: Double-click the
mentari-ai-p2c.exefile. The application will first validate your license key online and then start.
- Open Mentari website and login to your account.
- Open Inspect Element (Right click > Inspect).
- Copy this code.
try {
console.log(JSON.parse(localStorage.getItem('access'))?.[0]?.token || 'Token not found.');
} catch {
console.error('Invalid access data.');
}
- Paste into Console.
- Click Enter.

- Now, you have obtained your bearer token (
eyJhbGciOiJIUzI1NiIsInR5cCI6Ik...). - Paste it into
config.txt. Set it as the value of theMENTARI_TOKENvariable.
- Go to https://aistudio.google.com/prompts/new_chat
- Click
Get API Key.
- Click
Create API Key.
- Select a project from your existing Google Cloud projects.

- Click
Create API Key in existing project. - Your API Key successfuly generated.

- Copy and paste into
config.txt
Copyright © 2025 aritlhq. All Rights Reserved.
