Skip to main content

MahanAI Finale: terminal AI agent for NVIDIA NIM (OpenAI-compatible), tools, streaming, /api-key, safety prompts.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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

  1. Environment: MAHANAI_API_KEY=...
  2. Project .env: MAHANAI_API_KEY=...
  3. Saved config (persists): inside the app run /api-key your-key or /api-key for a hidden prompt. Keys are stored under %APPDATA%\MahanAI\config.json on Windows or ~/.config/mahanai/config.json on Linux/macOS.

Environment variable overrides the saved file.

Optional

  • MAHANAI_MODEL — model id from GET https://integrate.api.nvidia.com/v1/models
  • MAHANAI_STREAM=0 — disable streaming (wait for full replies)
  • MAHANAI_CONFIG_DIR — override directory for config.json

Commands

  • /exit or /quit — leave
  • /api-key [key] — save API key (omit key for prompt)
  • /api-key clear — remove saved key from disk
  • /help — short help

Develop

pip install -e .
python -m mahanai

Publish to PyPI

pip install build twine
python -m build
python -m twine upload dist/*

Use PyPI API token for authentication.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mahanai_finale-1.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mahanai_finale-1.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file mahanai_finale-1.1.0.tar.gz.

File metadata

  • Download URL: mahanai_finale-1.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mahanai_finale-1.1.0.tar.gz
Algorithm Hash digest
SHA256 84097898d4f8e36518307ee7b9ab2888946e90087dc1bf5dbbde20535de7e31e
MD5 952983041d8e293240aeb8e885df47a7
BLAKE2b-256 9b38e7fe4d49bd26b80ff773e347d39a1b80713d8c18304a0dc9ce63e2ecb1e6

See more details on using hashes here.

File details

Details for the file mahanai_finale-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mahanai_finale-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mahanai_finale-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6c0615cd6bb45372bd9fbf33860f9f4e3fc6c8875196b9e1885caffde0112f
MD5 1421be87ff2a5b5926c4ede1f5c1efc2
BLAKE2b-256 e0e94c760a84f7dd7c196ec038bfd98d275e123f28cb4952ead36a4a606d7eac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page