Skip to main content

arey

Arey (अरे, sanskrit) — ind. Interjection of calling.

Arey is a simple large language model playground in your terminal.

  • ✨ Command line interface, works everywhere python is available.
  • 🤖 Use any llama.cpp, ollama model or an openai compatible endpoint.
  • 💬 Chat with your favorite local models. CPU friendly 🍀
  • 🙋 Ask anything to AI models with a single command.
  • 📋 Supercharged prompt fine-tuning workflow ❤️ Edit your prompt in any editor and arey will generate a completion on save.
  • 🔓 No telemetry, no internet, nothing to sell.

See Get Started or notes below for a quick guide.

https://github.com/codito/arey/assets/28766/6b886e49-6124-4256-84d9-20449c783a34

🚧 See Roadmap below.

Installation

# Install pipx if needed: `pip install pipx`
# Ensure ~/.local/bin is available in system PATH
pipx install arey

Windows troubleshooting notes are here.

Usage

❯ arey --help
Usage: arey [OPTIONS] COMMAND [ARGS]...

  Arey - a simple large language model app.

Options:
  -v, --verbose BOOLEAN  Show verbose logs.
  --help                 Show this message and exit.

Commands:
  ask   Run an instruction and generate response.
  chat  Chat with an AI model.
  play  Watch FILE for model, prompt and generate response on edit.

On the first run, arey will create a configuration file in following location:

  • ~/.config/arey/arey.yml for Linux or Mac systems.
  • ~/.arey/arey.yml for Windows.

Please update the models section in the config yml to your local model path.

1. Ask Arey something!

arey ask "Who is Seneca? Tell me one of his teachings"

2. Chat with Arey

arey chat

3. Run Arey in play mode

Use to fine-tune a prompt in your editor while arey keeps completing your prompt on every save.

❯ arey play /tmp/arey_playzl9igj3d.md

Welcome to arey play! Edit the play file below in your favorite editor and I'll generate a
response for you. Use `Ctrl+C` to abort play session.

Watching `/tmp/arey_playzl9igj3d.md` for changes...

───────────────────────────────────── 2024-01-21 17:20:01 ──────────────────────────────────────
✓ Model loaded. 0.57s.

Life is short because it passes by quickly and can end at any moment. We should make the most of
our time here on earth and live a virtuous life according to stoicism.

◼ Canceled.

Watching `/tmp/arey_playzl9igj3d.md` for changes...

Development

See https://apps.codito.in/arey/contribute.

Roadmap

  • Chat and task modes for interactive or batch queries
  • Define new tasks with only a prompt, no code. See docs/samples directory for examples.
  • Markdown formatting for chat mode.
  • Ollama support.
  • OpenAI server support.
  • Command support in chat. E.g., logs, change model, copy, clear, etc.
  • Discover prompts from user directory
  • Manage prompts and create new interactively
  • Download models and manage them
  • Release v0.1
  • Add textfx
  • Add offline knowledge bases and RAG. See https://library.kiwix.org/#lang=eng

License

MIT

Metadata

Release files for arey 0.0.6

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

Source distribution (sdist)

Source distribution for arey 0.0.6
File Size Uploaded Provenance
arey-0.0.6.tar.gz 24.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 54.7 kB

Release files / arey-0.0.6.tar.gz

Download URL arey-0.0.6.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
632afcdf2e6a2fbf632f75100ecf16b65170eff3df7988bbba9ffa934a6b9d96
BLAKE2b-256 checksum
How to use checksums
9c07062937fdb38ab88d04625007a0e4c36f2b8c201c987846cf33fc1019397c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / arey-0.0.6-py3-none-any.whl

Download URL arey-0.0.6-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ac4e834c3eea805f80ebce6ec23a6f434462b1e4d4d77956650eb10ef589660
BLAKE2b-256 checksum
How to use checksums
2acfc4f12a0188158d468ffa073e0a389d33b8eab5eb505df695d263a854229a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Security for arey 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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