aix  by projectdiscovery

CLI tool for LLM API interaction

Created 2 years ago
305 stars

Top 87.8% on SourcePulse

GitHubView on GitHub
Project Summary

AIx is a command-line interface tool designed for interacting with Large Language Model (LLM) APIs, specifically targeting OpenAI's GPT models. It provides a convenient way for developers and power users to query LLMs directly from their terminal, enabling tasks like content generation, data analysis, and code assistance without leaving their command-line environment.

How It Works

AIx leverages the Go programming language and directly interfaces with OpenAI's API. It supports both GPT-3.5 and GPT-4.0 models, allowing users to specify the desired model and configure parameters such as temperature and top-p. The tool offers flexible input methods, accepting prompts directly, from standard input (stdin), or from files, and can output results in various formats including plain text, JSON Lines, or streamed to stdout.

Quick Start & Requirements

  • Install using go install github.com/projectdiscovery/aix/cmd/aix@latest.
  • Requires Go 1.19+.
  • OpenAI API key must be set as the OPENAI_API_KEY environment variable.
  • Official documentation: https://github.com/projectdiscovery/aix

Highlighted Details

  • Supports GPT-3.5 and GPT-4.0 models.
  • Configurable via environment variables or command-line flags for API key, temperature, and system context.
  • Offers flexible input (string, file, stdin) and output (stdout, file, JSONL) options.
  • Includes a streaming output mode for real-time responses.

Maintenance & Community

AIx is developed by the projectdiscovery team. Community engagement is encouraged via their Discord server.

Licensing & Compatibility

Distributed under the MIT License, allowing for commercial use and integration with closed-source projects.

Limitations & Caveats

Currently, AIx only supports OpenAI APIs. The project is actively developed, and specific model versions or features might be subject to change.

Health Check
Last Commit

6 days ago

Responsiveness

Inactive

Pull Requests (30d)
7
Issues (30d)
0
Star History
4 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.