DimeAI

"Dime AI" is like a "Tell me, AI", translated from Spanish.

DimeAI is a command-line interface (CLI) tool for interacting with LLM models. It allows users to send prompts and receive responses directly from the terminal.

There are several other similar projects, including:

Many of these projects are better than this one; they offer more features, better support, and larger communities that provide timely fixes. However, they all have one significant drawback—they are not developed by me. This one I feel fomfortable for me, may be will be useful for someone else.

Features

Planned Features

While the current feature set meets my needs, I plan to add the following in the future if inspiration or necessity arises:

Build from Source

  1. Ensure you have Crystal installed on your system.
  2. Clone this repository:
    git clone https://github.com/yourusername/dimeai.git
    cd dimeai
  3. Build the project:
    shards build --static --release
    The resulting binary will be located in ./bin/dimeai.

Installation

This app is a statically linked binary. The easiest way to install it is to download the binary for your architecture from the GitHub releases page, git execution access to it and place it in /usr/local/bin.

Usage

(Optional) Initialize the Default Profile

./dimeai --init

This command will create a default profile in $XDG_CONFIG_HOME/dimeai/profiles/ (or ~/.config/dimeai/profiles/ if XDG_CONFIG_HOME is not set).

App works without profile as well, if OPENAI_API_KEY env is set. In that case it will use default settings.

Send a Prompt

./dimeai Your prompt here

or

./dimeai "Prompt & with special? * bash symbols"

or

echo "Your prompt here" | ./dimeai

Configuration

DimeAI uses configuration profiles stored in JSON format. The default profile is located at $XDG_CONFIG_HOME/dimeai/profiles/default.json (or ~/.config/dimeai/profiles/default.json).

Environment Variables

Contributing

Contributions are welcome! Feel free to submit a pull request.