Tools

CLI

Install

On macOS and Linux:

CLI
curl -fsSL https://antarya.ai/install.sh | sh

On Windows, in PowerShell:

CLI
irm https://antarya.ai/install.ps1 | iex

Sign in

antarya login opens your browser and saves a key on this machine. To use a key you made yourself, set ANTARYA_API_KEY instead.

CLI
antarya login

Ask a question

Put the question in quotes. The reply prints and the command ends.

CLI
antarya "Draft a reply that declines the meeting."

Pipe a file in and ask about it:

CLI
cat agreement.txt | antarya "Summarise the termination clause."

Options

NameTypeRequiredDescription
--systemtextNoInstructions that apply to the whole conversation, for example "Answer in plain English."
--jsonflagNoPrint the full response as JSON instead of only the reply text.
--filepathNoAttach a file to the question. Repeat the option to attach more than one.
CLI
antarya --file agreement.pdf --system "Answer in plain English." "What can I end this early for?"

A conversation

antarya chat opens a conversation that keeps its history in a session until you leave it with Ctrl+D. Leaving deletes the session.

CLI
antarya chat

Config and uninstall

The CLI keeps its settings in ~/.config/antarya/config.toml on macOS and Linux, and in %APPDATA%\antarya\config.toml on Windows. Delete that file to sign out.

To uninstall, run antarya uninstall. It removes the program and the config file.

Next steps