Hisho

Crystal Build and Test

Hisho is a command-line interface (CLI) tool inspired by Aider, designed to interact with AI models from OpenRouter.ai. Built with Crystal, Hisho aims to provide a seamless and efficient way to communicate with various AI models directly from your terminal.

Hisho Demo

Features

Installation

Prerequisites

  1. Install Crystal:

    For macOS using Homebrew:

    brew install crystal

    For Ubuntu:

    curl -fsSL https://crystal-lang.org/install.sh | sudo bash

    For other operating systems, please refer to the official Crystal installation guide.

  2. Clone the repository:

    git clone https://github.com/denislour/hisho.git
    cd hisho
  3. Install dependencies:

    shards install

Configuration

Create a .env file in the project root with your OpenRouter.ai API key and preferred model:

OPENROUTER_API_KEY=<your-openrouter-api-key>
MODEL=<your-preferred-model>

Usage

crystal build src/main.cr -o hisho
./hisho

Project Structure

Hisho has been restructured to improve maintainability and extensibility. The new structure makes it easier to add new features and modify existing ones.

TODO List

We're constantly working to improve Hisho. Here's our current TODO list:

Contributing

  1. Fork it (https://github.com/denislour/hisho/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Built with Love ❤️

Hisho is built with love and care, aiming to provide a great user experience while maintaining clean and efficient code.