Skip to main content

InfraAI

A minimalistic AI assistant designed to assist infrastructure engineers and developers with various tasks related to infrastructure management, deployment, and development.

🔭 InfraAI is a command-line tool designed to provide immediate concise responses. It leverages the capabilities of Google's Gemini models to deliver precise commands tailored to various operating systems and environments.

Features 🌟

  • Streamlined Command Assistance: Get specific commands for your operating system without unnecessary clutter.
  • Support for Multiple Gemeini Models: Choose between different Gemini models
  • Easy Configuration: Simple commands to set your API key and preferred Gemini model.

Installation 🛠️

To install InfraAI, simply use pip. Ensure you have Python 3.9 or later installed.

pip install infraai

Configuration 🔧

Before you start using InfraAI, you need to configure your Google Gemini API key.

Setting the API Key

infra --setkey

When prompted, enter your Google Gemini API key. This key will be saved and used for future requests.

Setting the Gemini Model

If you want to use a different model than the default Gemini-pro, you can set it as follows:

infra --set-model gemini-1.5-flash

This command will save your model choice and use it for all future inquiries.

Usage 📝

To use InfraAI, simply type infra followed by the command or query you need help with. Here’s how it works:

infra infra how to list docker containers
response

Examples

Here are a few examples of how you can use InfraAI to get help with common infrastructure tasks:

  • Setting up nginx:
infra setup nginx webserver
  • Initializing a Git repository:
infra how to initialize git repository
  • Creating a Python virtual environment:
infra create python virtual environment

Metadata

Release files for infraai 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for infraai 0.2.3
File Interpreter ABI Platform
infraai-0.2.3-py3-none-any.whl Python 3 none any Details

Release files / infraai-0.2.3-py3-none-any.whl

Download URL infraai-0.2.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
100f6b94aff23875152d4727a1ad77d3e930d8f89bc1f74633bde92f517cf03c
BLAKE2b-256 checksum
How to use checksums
cc6e4ccc6253fee4884c62dbd3c842fa40e61c0a345bc115fe0eff61a8d941d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page