MahanAI: terminal AI agent for NVIDIA NIM (OpenAI-compatible), tools, streaming, /api-key, safety prompts.
Project description
MahanAI Finale
Terminal AI agent using NVIDIA NIM (integrate.api.nvidia.com) with OpenAI-compatible chat, streaming, and tools (run shell commands, read/write files, list directories).
Install
pip install mahanai-finale
mahanai
API key
- Environment:
MAHANAI_API_KEY=... - Project
.env:MAHANAI_API_KEY=... - Saved config (persists): inside the app run
/api-key your-keyor/api-keyfor a hidden prompt. Keys are stored under%APPDATA%\MahanAI\config.jsonon Windows or~/.config/mahanai/config.jsonon Linux/macOS.
Use this one for now: mai-api-91023847562910
Optional
MAHANAI_MODEL— model id fromGET https://integrate.api.nvidia.com/v1/modelsMAHANAI_STREAM=0— disable streaming (wait for full replies)MAHANAI_CONFIG_DIR— override directory forconfig.json
Commands
/exitor/quit— leave/api-key [key]— save API key (omitkeyfor prompt)/api-key clear— remove saved key from disk/help— short help
Develop
pip install -e .
python -m mahanai
Publish to PyPI
Bump version in pyproject.toml and mahanai/__init__.py, then:
pip install build twine
python -m build
python -m twine check dist/*
Upload only the new release files (example for v1.1.0):
Windows (PowerShell) — use an API token with “Entire account” or project scope:
$env:TWINE_USERNAME = "__token__"
$env:TWINE_PASSWORD = "pypi-YOUR_TOKEN_HERE"
python -m twine upload dist/mahanai_finale-1.1.0*
macOS / Linux:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=pypi-YOUR_TOKEN_HERE
python -m twine upload dist/mahanai_finale-1.1.0*
twine cannot publish without your token; keep it out of git.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mahanai-3.1.0.tar.gz.
File metadata
- Download URL: mahanai-3.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e81461ecb54c3db45b3fa9b940fa1dd87abd98f2a918406b105ed5fcfdbf169
|
|
| MD5 |
abd73361c16c5dbe08c2297185b891c5
|
|
| BLAKE2b-256 |
1954aa3a6d4e7957216629765d62bf6937c715012e564eec8ffc82059ad240e6
|
File details
Details for the file mahanai-3.1.0-py3-none-any.whl.
File metadata
- Download URL: mahanai-3.1.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff0c259798cb490dbcec941d95d2c498fab1570b3c12a300daa3b154e22daa58
|
|
| MD5 |
89e13a7685305c824dabdf6ec699a7ef
|
|
| BLAKE2b-256 |
3a5d044533de6234920d88b1756d95e19ff478189d6ce97500ac9c97528678a1
|