Getting Started

The Metaphori CLI is a powerful command-line tool for compressing AI prompts while maintaining quality and coherence. Built with Go for maximum performance and cross-platform compatibility.

Installation

macOS (Homebrew)

The recommended way to install Metaphori CLI on macOS is via Homebrew:

# One-line installation (recommended)
brew install metaphori-ai/metaphori/metaphori

# Or, using tap (alternative method)
brew tap metaphori-ai/metaphori
brew install metaphori

# Update to the latest version
brew update && brew upgrade metaphori

Direct Download

You can also download the CLI directly for your platform:

macOS

Linux

Windows

Manual Installation

After downloading the appropriate archive for your platform:

# Extract the archive
tar -xzf metaphori-v0.4.3-<platform>.tar.gz

# Move to a directory in your PATH
sudo mv metaphori /usr/local/bin/

# Verify installation
metaphori --version

Configuration

Before using the CLI, you'll need to configure your API credentials:

# Set your API key
metaphori config set api-key YOUR_API_KEY

# Verify configuration
metaphori config list

You can obtain your API key from the Metaphori Dashboard.

First Compression

Let's compress your first prompt:

# Compress a prompt from a file
metaphori compress -f prompt.txt

# Compress a prompt directly
metaphori compress -p "Your long prompt here..."

# View compression details
metaphori list

Next Steps