Coder Social home page Coder Social logo

pluja / maestro Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 3.0 2.14 MB

Turn natual language into commands. Your CLI tasks, now as easy as a conversation. Run it 100% offline, or use OpenAI's models.

Go 100.00%
ai assistant bash cli golang llama llm openai terminal

maestro's Introduction

maestro banner

maestro converts natural language instructions into cli commands. It's designed for both offline use with Ollama and online integration with ChatGPT API.

Key Features

  • Ease of Use: Simply type your instructions and press enter.
  • Direct Execution: Use the -e flag to directly execute commands with a confirmation prompt for safety.
  • Context Awareness: Maestro understands your system's context, including the current directory, system, and user.
  • Support for Multiple LLM Models: Choose from a variety of models for offline and online usage.
  • Lightweight: Maestro is a single small binary with no dependencies.

Installation

  1. Download the latest binary from the releases page.
  2. Execute ./maestro -h to start.

Tip: Place the binary in a directory within your $PATH and rename it to maestro for global access, e.g., sudo mv ./maestro /usr/local/bin/maestro.

Offline Usage with Ollama

Important

You need at least Ollama v0.1.24 or greater

  1. Install Ollama from here (or use ollama's docker image).
  2. Download models using ollama pull <model-name>.
    • Note: If you haven't changed it, you will need to pull the default model: ollama pull dolphin-mistral:latest
  3. Start the Ollama server with ollama serve.
  4. Configure Maestro to use Ollama with ./maestro -set-ollama-url <ollama-url>, for example, ./maestro -set-ollama-url http://localhost:8080.

Online Usage with OpenAI's API

  1. Obtain an API token from OpenAI.
  2. Set the token using ./maestro -set-openai-token <your-token>.
  3. Choose between GPT4-Turbo with -4 flag and GPT3.5-Turbo with -3 flag.
    • Example: ./maestro -4 <prompt>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.