Skip to main content

A CLI Agent powered by Gemini AI

Project description

andro-cli

PyPI version

An AI-powered CLI agent built on Google's Gemini API with a beautiful Textual TUI.
Chat with an AI assistant directly from your terminal — with file operations, command execution, and more.


DANGER: This tool executes shell commands and file operations based are done on local machine. Use with caution and only check the source code.

⚠️ Requirements


📦 Installation

pip install androincli

Or with uv:

uv tool install androincli

🚀 Usage

andro

Config is stored in ~/.cli_agent/config.json:

{
  "GEMINI_API_KEY": "your_api_key_here"
}

First Run

If no API key is found, you'll be prompted in the terminal:

⚠️  No Gemini API key found.
Get your key at: https://aistudio.google.com/app/apikey

Enter your GEMINI_API_KEY: ••••••••••••••••
✅ API key saved!

Using API key: AIza****

The key is saved to ~/.cli_agent/config.json for future runs.

Alternatively, set via environment variable:

Linux / macOS:

export GEMINI_API_KEY="your_api_key_here"

Windows (PowerShell):

$env:GEMINI_API_KEY="your_api_key_here"

🖥️ TUI Interface

Once launched, you'll see a full-screen chat interface:

┌─ andro-cli ─ AI-powered CLI assistant ──────────────────────────────┐
│                                                                       │
│  🤖 Andro                                                             │
│  Welcome! How can I help you today?                                   │
│                                                                       │
│  👤 You                                                               │
│  Create a file called hello.txt                                       │
│                                                                       │
│  🤖 Andro                                                             │
│  Creating hello.txt...                                                │
│                                                                       │
├───────────────────────────────────────────────────────────────────────┤
│ Type a message... (Enter to send, Ctrl+q to quit)      [Send ↵]      │
└──────────[Ctrl+q] Quit  [Ctrl+L] Clear  [Esc] Focus Input────────────┘

Keybindings

Key Action
Enter Send message
Ctrl+q Quit
Ctrl+L Clear chat
Escape Focus input

🛠️ Features

  • 🤖 Gemini AI — powered by gemini-2.0-flash
  • 🖥️ Textual TUI — beautiful full-screen terminal UI
  • 💬 Chat bubbles — distinct user/bot message styling
  • 🔧 Tools — file ops, shell commands, network checks
  • 🔑 API key management — prompt on first run, saved locally
  • 🎨 Rich formatting — styled output with Rich

📄 License

MIT License. See LICENSE for details.

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

androincli-0.1.8.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

androincli-0.1.8-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file androincli-0.1.8.tar.gz.

File metadata

  • Download URL: androincli-0.1.8.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for androincli-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c346544c629af6b9d8c442b5cd65ecc0c9509066591c9f70746f9ea0132d69d2
MD5 7c8bf4a1df4e514560e1bbe390354fba
BLAKE2b-256 8082a0206d630851c9849188f53df6cc9094ffe6181b730905ed569d6bc22654

See more details on using hashes here.

File details

Details for the file androincli-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: androincli-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for androincli-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 674d078ddce5d791411297ed28a59629f1bd6b8e16e3aff745c6c4e33dde5231
MD5 dd64433768561bebcdeb873d1618d7d5
BLAKE2b-256 f383f5a1b18dcad43e80d78eac7241b401caa29e6f519eb93d2070ec09e17010

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