# Agilu

Agilu is a command-line agent program that reads and changes files in a project folder.
It is one program file that you run in a terminal.
It calls an Anthropic or OpenAI model with your own provider key.

## What you need

- A Windows x64 or Linux x64 computer. macOS and ARM computers are not supported.
- Windows: Windows 10 version 1809 or later, or Windows 11 (tested on Windows 11).
- Linux: a 64-bit distribution with glibc 2.39 or later (tested on Ubuntu 24.04).
- A provider key and a model id from your Anthropic or OpenAI account.
- An Agilu product key from https://agilu.cc/key.
- A terminal, so the program can ask you before it edits files or runs commands.
- Network access to your provider and to https://api.agilu.cc.

## Install

### Windows

1. Download the Windows zip file from https://agilu.cc/download.
2. Extract it to a folder you choose.
3. Optional: add that folder to your PATH so `agilu` runs from any folder.

### Linux

1. Download the Linux tar.gz file from https://agilu.cc/download.
2. Extract it to a folder you choose.
3. Optional: add that folder to your PATH so `agilu` runs from any folder.

Until the folder is on your PATH, open a terminal in the folder you extracted and type `.\agilu.exe` (Windows) or `./agilu` (Linux) wherever this file shows `agilu`.
In PowerShell, a bare `agilu` does not start the program from the current folder; run it as `.\agilu.exe`.
The program does not update itself.
For the checksum check and first-start warnings, see the quickstart at https://agilu.cc/docs.

## First commands

1. Save your product key:

   ```
   agilu key set <product key>
   ```

   Read the notice it prints, then type `y` to accept.
   Instead of saving the key, you can set the `AGILU_KEY` environment variable to your product key, together with `AGILU_PRIVACY_ACCEPTED=1`.
   The key in AGILU_KEY is used only for that run and is not saved on this computer.
   Usage counts for it are kept in a separate small file that does not contain the key.
2. Set your provider key in environment variables, as the providers section at https://agilu.cc/docs shows.
3. Check that the program finds your provider key:

   ```
   agilu --auth-status
   ```

4. Open a terminal in a project folder and run your first task, as the quickstart at https://agilu.cc/docs shows.

`agilu --help` shows common options; `agilu --help-all` shows all.
By default Agilu prints one line per tool call; use --quiet for the answer only, --verbose for everything.

## Usage counting

Agilu uses usage counting, and the free quota depends on it.
When you save your product key, the program shows a notice and asks you to accept it.
After that, it contacts https://api.agilu.cc at start-up, after a set number of tasks, and at exit when tasks are unreported.
Each report holds only these items:

- your product key
- a random install ID that is not based on your hardware
- the number of new tasks and their run time in seconds
- the program version, operating system, and CPU architecture
- a report sequence number and a one-time random value
- the protocol version and the privacy notice version you accepted

A quota check sends fewer items: the product key, install ID, version, OS, architecture, protocol version, and a one-time value.

Usage counting never sends prompts, file contents, or model output.
It also never sends code, file paths, file names, repository names, or your provider key.
Your prompts and files go directly to your model provider.
Usage counting cannot be turned off.
Read the full notice at https://agilu.cc/privacy.

## More information

- https://agilu.cc/docs: the full guide, with quickstart, provider keys, troubleshooting, and uninstall.
- https://agilu.cc/key: how to get and manage your product key.
- https://agilu.cc/limits: known limitations and the quota rules.
- https://agilu.cc/changelog: versions and the minimum-version policy.
- https://agilu.cc/privacy: the privacy notice.
- https://agilu.cc/terms: the license and terms of use.
- https://agilu.cc/feedback: report a problem or ask a question.

Files in the download:

- `agilu.exe` (Linux: `agilu`): the program.
- `README.txt`: this file.
- `LEGAL.txt`: the license and terms of use, the privacy notice, the known limitations (also at https://agilu.cc/limits) and the license notices for third-party code in the program.

## Uninstall

Run `agilu uninstall --dry-run`, then `agilu uninstall`, then delete the program folder (the folder you extracted; it holds the program file). Details are at https://agilu.cc/docs.
