@aiiware/aii 0.28.9 → 0.28.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -58
- package/bin/aii +993 -992
- package/package.json +12 -10
package/README.md
CHANGED
|
@@ -1,78 +1,61 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://aiiware.
|
|
2
|
+
<img src="https://aiiware.com/aii-logo-240.png" width="120" alt="Aii" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center">Aii — AI
|
|
5
|
+
<h1 align="center">Aii — AI coding agent for your terminal</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
|
|
8
|
+
Reads your files, runs commands, searches the web and writes code. Start free with no API key, or use your own key or a ChatGPT or Grok subscription.
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
|
-
<p align="center">
|
|
12
|
-
<strong>npm:</strong> <code>@aiiware/aii</code> · <strong>Version:</strong> 0.28.7 · <strong>Node.js:</strong> >= 20
|
|
13
|
-
</p>
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Accounts and subscriptions
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
aii login # Sign into Aii Cloud
|
|
21
|
-
aii connect # Choose ChatGPT or Grok
|
|
22
|
-
aii connect chatgpt # Connect a ChatGPT subscription
|
|
23
|
-
aii connect grok # Connect a Grok subscription
|
|
24
|
-
aii disconnect grok # Remove only the Grok subscription connection
|
|
25
|
-
aii connections # Inspect local connection state
|
|
26
|
-
aii connections --json # Structured local inventory
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
If a subscription connection is already saved, connecting asks `Reconnect? [y/N]` before opening authentication. Declining keeps your connection and model. Connecting asks whether to make the service your local default. Accept to choose an available model; decline to keep the current model. Your inference route stays separate. `aii cloud login` remains a Cloud sign-in alias.
|
|
30
|
-
|
|
31
|
-
For server inference, connected subscriptions take priority over API keys. Intentional disconnect permits your configured API-key access; a failed connected subscription requires explicit API-billing consent before paid dispatch. Credential and model availability remain provider-dependent. Cloud inference has its own routing and billing.
|
|
32
|
-
|
|
33
|
-
Old ChatGPT/Grok `aii login --provider ...` actions now show the replacement command without executing. Legacy status/about and GLM plan-key management remain available. Slack, Gemini and Claude subscription connections are not offered.
|
|
34
|
-
|
|
35
|
-
## Quick Start
|
|
36
|
-
|
|
37
|
-
### Install (one command)
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
curl -fsSL https://aiiware.com/install.sh | bash
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Installs Node.js and the Aii CLI — no Docker required to get started. (Prefer npm? `npm install -g @aiiware/aii`.)
|
|
11
|
+
<p align="center"><code>npm install -g @aiiware/aii</code> · Node.js 20 or newer</p>
|
|
44
12
|
|
|
45
13
|
<p align="center">
|
|
46
|
-
<
|
|
47
|
-
<img src="https://img.youtube.com/vi/LKIfLpYUeJc/maxresdefault.jpg" width="600" alt="Aii CLI Install Demo" />
|
|
48
|
-
</a>
|
|
49
|
-
<br/>
|
|
50
|
-
<em>Full end-to-end install on a clean Linux machine</em>
|
|
14
|
+
<img src="https://aiiware.com/cli-demo.gif" alt="Aii reading a project and fixing a bug in it, in a terminal" />
|
|
51
15
|
</p>
|
|
52
16
|
|
|
53
|
-
|
|
17
|
+
## Get started
|
|
54
18
|
|
|
55
19
|
```bash
|
|
20
|
+
npm install -g @aiiware/aii
|
|
56
21
|
aii login
|
|
57
|
-
aii --inference cloud "
|
|
22
|
+
aii --inference cloud "explain how this codebase is structured"
|
|
58
23
|
```
|
|
59
24
|
|
|
60
|
-
Sign in with Google or GitHub
|
|
25
|
+
Sign in with Google or GitHub. Your first answers run free on Aii Cloud, within a daily free budget and with no card required.
|
|
61
26
|
|
|
62
|
-
|
|
27
|
+
No Node.js yet? `curl -fsSL https://aiiware.com/install.sh | bash` installs Node.js and Aii together.
|
|
63
28
|
|
|
64
|
-
|
|
29
|
+
## Why Aii
|
|
30
|
+
|
|
31
|
+
- **Start free, no API key.** `aii login`, then `--inference cloud`: a daily free budget, no card.
|
|
32
|
+
- **Any model, on your bill.** Your API key, your ChatGPT or Grok plan, or local models through Ollama.
|
|
33
|
+
- **Your models, continued in the browser.** `aii --remote-control --inference server` runs on your own Aii server; pick the conversation up on cloud.aiiware.com.
|
|
34
|
+
- **One command, no session.** Pipe anything in and get an answer: `cat main.go | aii --inference cloud "explain this file"`. With your own Aii server, `aii run git commit` writes the commit message from your diff.
|
|
35
|
+
- **Works until it is done.** `/goal make the tests pass --verify "npm test"` keeps going until your check passes.
|
|
36
|
+
- **Loops with guardrails.** `/loop "fix all TypeScript errors" --max 10 --verify "npm test"` repeats the task until it passes or hits the limit.
|
|
37
|
+
- **Runs from Telegram.** With your own Aii server and a bot token from `@BotFather`, `aii telegram start mybot` puts the same agent in a chat after a one-time `aii telegram pair`; pick the conversation up in the terminal later.
|
|
38
|
+
- **Yours to extend.** Skills, MCP servers, hooks, subagents and `AGENTS.md`.
|
|
39
|
+
- **And more.** Git worktrees, memory, personas, themes and saved conversations: see [Key Features](#key-features).
|
|
40
|
+
|
|
41
|
+
## What it does
|
|
65
42
|
|
|
66
43
|
```bash
|
|
67
|
-
aii
|
|
68
|
-
aii --inference
|
|
44
|
+
git diff | aii --inference cloud review these changes for bugs
|
|
45
|
+
cat error.log | aii --inference cloud "what went wrong?"
|
|
46
|
+
aii --inference cloud # interactive session
|
|
69
47
|
```
|
|
70
48
|
|
|
71
|
-
|
|
49
|
+
## Ways to run it
|
|
72
50
|
|
|
73
|
-
|
|
51
|
+
| | Start with | What to know |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| **Aii Cloud** | `aii login`, then add `--inference cloud` | A free daily budget, no card. Credits for more. |
|
|
54
|
+
| **Your API key** | `aii config apikey anthropic <your-key>` | Your provider bills you, with no Aii limit. Uses your Aii server, which runs locally in Docker by default. |
|
|
55
|
+
| **Your subscription** | `aii connect chatgpt` or `aii connect grok` | Uses your ChatGPT or Grok plan through your Aii server, which runs locally in Docker by default. |
|
|
56
|
+
| **Local models** | `aii config provider ollama` | Models run on your machine through Ollama and your local Aii server (Docker). |
|
|
74
57
|
|
|
75
|
-
##
|
|
58
|
+
## More examples
|
|
76
59
|
|
|
77
60
|
### Talk to it
|
|
78
61
|
|
|
@@ -113,6 +96,8 @@ aii --remote-control --inference server
|
|
|
113
96
|
|
|
114
97
|
Open the printed AiiCloud link to continue the same conversation and respond to tool approvals. The running Aii process also makes its declared workspaces available for new web conversations. It must remain running on your computer or VPS.
|
|
115
98
|
|
|
99
|
+
The link appears in terminal history after the welcome banner, followed by `Type /remote to show this URL and status again.` Run `/remote` at any time to retrieve the complete URL and remote-control status.
|
|
100
|
+
|
|
116
101
|
`--remote-control` controls browser access. `--inference server` uses your configured Aii Server, whether local or remote; `--inference cloud` uses AiiCloud inference. Signing in for remote control does not change your inference preference. Omit `--inference` to use your saved preference, or the original conversation's settings when resuming.
|
|
117
102
|
|
|
118
103
|
```bash
|
|
@@ -198,6 +183,64 @@ The agent loops until your verification command passes or a limit is hit — see
|
|
|
198
183
|
|
|
199
184
|
---
|
|
200
185
|
|
|
186
|
+
## Install details
|
|
187
|
+
|
|
188
|
+
### Install (one command)
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
curl -fsSL https://aiiware.com/install.sh | bash
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Installs Node.js and the Aii CLI — no Docker required to get started. (Prefer npm? `npm install -g @aiiware/aii`.)
|
|
195
|
+
|
|
196
|
+
<p align="center">
|
|
197
|
+
<a href="https://youtu.be/LKIfLpYUeJc">
|
|
198
|
+
<img src="https://img.youtube.com/vi/LKIfLpYUeJc/maxresdefault.jpg" width="600" alt="Aii CLI Install Demo" />
|
|
199
|
+
</a>
|
|
200
|
+
<br/>
|
|
201
|
+
<em>Full end-to-end install on a clean Linux machine</em>
|
|
202
|
+
</p>
|
|
203
|
+
|
|
204
|
+
### Start free — no Docker, no API key
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
aii login
|
|
208
|
+
aii --inference cloud "what can you do?"
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Sign in with Google or GitHub and your first answer lands in seconds — free on AiiCloud (a daily free budget, no card required). Point it at a project and it reads your files, runs the tools it needs, and gets to work.
|
|
212
|
+
|
|
213
|
+
### Go unlimited — your own key, your own budget
|
|
214
|
+
|
|
215
|
+
Prefer no daily limit and full local control? Point Aii at your own provider key and it runs a local AI server (via Docker) that your provider bills directly — no Aii limit.
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
aii config apikey anthropic <your-key>
|
|
219
|
+
aii --inference server "refactor this module and run the tests"
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Supported providers include Anthropic, OpenAI, Google, and more. No key yet? Just run `aii "…"` and the setup wizard walks you through provider, model, and key. This is the home for heavy, sustained use.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Accounts and subscriptions
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
aii login # Sign into Aii Cloud
|
|
230
|
+
aii connect # Choose ChatGPT or Grok
|
|
231
|
+
aii connect chatgpt # Connect a ChatGPT subscription
|
|
232
|
+
aii connect grok # Connect a Grok subscription
|
|
233
|
+
aii disconnect grok # Remove only the Grok subscription connection
|
|
234
|
+
aii connections # Inspect local connection state
|
|
235
|
+
aii connections --json # Structured local inventory
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
If a subscription connection is already saved, connecting asks `Reconnect? [y/N]` before opening authentication. Declining keeps your connection and model. Connecting asks whether to make the service your local default. Accept to choose an available model; decline to keep the current model. Your inference route stays separate. `aii cloud login` remains a Cloud sign-in alias.
|
|
239
|
+
|
|
240
|
+
For server inference, connected subscriptions take priority over API keys. Intentional disconnect permits your configured API-key access; a failed connected subscription requires explicit API-billing consent before paid dispatch. Credential and model availability remain provider-dependent. Cloud inference has its own routing and billing.
|
|
241
|
+
|
|
242
|
+
Old ChatGPT/Grok `aii login --provider ...` actions now show the replacement command without executing. Legacy status/about and GLM plan-key management remain available. Slack, Gemini and Claude subscription connections are not offered.
|
|
243
|
+
|
|
201
244
|
## Providers
|
|
202
245
|
|
|
203
246
|
**8 LLM providers**, switch anytime with `aii config provider <name>`:
|
|
@@ -620,7 +663,7 @@ aii "review the staged diff for correctness bugs" \
|
|
|
620
663
|
--bare --max-turns 12 --max-budget-usd 1.00 --output-format json | jq -r '.result'
|
|
621
664
|
```
|
|
622
665
|
|
|
623
|
-
`--max-turns` bounds cost server-side; `--bare` keeps stdout pipe-clean for `RESULT=$(aii "…" --bare)`; on a single one-shot turn, `--max-budget-usd` adds an advisory `over_budget` flag (pair with `--max-turns` to hard-bound cost). Ready-to-use **GitHub Actions** recipes
|
|
666
|
+
`--max-turns` bounds cost server-side; `--bare` keeps stdout pipe-clean for `RESULT=$(aii "…" --bare)`; on a single one-shot turn, `--max-budget-usd` adds an advisory `over_budget` flag (pair with `--max-turns` to hard-bound cost). Ready-to-use **GitHub Actions** recipes ship with Aii's documentation — they use the `pull_request` trigger (never `pull_request_target` with a PR checkout), reference `AII_API_KEY` via `secrets.`, and consume Aii output as data (never `eval`).
|
|
624
667
|
|
|
625
668
|
### Connection drops
|
|
626
669
|
|
|
@@ -642,6 +685,12 @@ aii "run the full test suite and summarize failures" --reconnect-window 60
|
|
|
642
685
|
|
|
643
686
|
Only *transport* failures retry — provider/server errors classified permanent exit immediately, window or not. Retry chatter is stderr-only, so `--bare`/`--output-format` stdout stays pipe-clean; with `--output-format json`, a multi-attempt run adds an `attempts` field and `tokens`/`cost` report the completed turn's server totals (the session trace's `usage` events carry the full spend record). With `--bare`, an active window buffers stdout and writes the result once on completion (live token streaming resumes when the window is 0/off) — so a dead attempt's partial output never duplicates into `RESULT=$(…)`. Exit code on an exhausted window stays `1`.
|
|
644
687
|
|
|
688
|
+
### Fetched web sources
|
|
689
|
+
|
|
690
|
+
WebFetch retains the complete extracted Markdown temporarily in your runtime configuration directory under `web-artifacts` (normally `~/.aii/web-artifacts`). The agent keeps compact references in conversation history and can reread the stored source for follow-up questions. Tool rows distinguish network fetches and local stored reads. Sources expire after 24 hours or may be evicted earlier by storage limits.
|
|
691
|
+
|
|
692
|
+
Agent output budgets default to the selected model’s capability, subject to remaining context estimates, provider and account limits. Set a lower ceiling with `aii config set llm.max_output_tokens 32768`; restore automatic selection with `aii config set llm.max_output_tokens auto`. Unknown models use an 8,192-token fallback. New servers report the effective budget; ChatGPT subscription caps are advisory because that transport has no native output-limit parameter. Older servers remain usable.
|
|
693
|
+
|
|
645
694
|
---
|
|
646
695
|
|
|
647
696
|
## Troubleshooting
|
|
@@ -668,9 +717,3 @@ Run `aii doctor` for automated diagnostics.
|
|
|
668
717
|
---
|
|
669
718
|
|
|
670
719
|
**License:** Proprietary — Copyright 2025-present AiiWare.com. All rights reserved.
|
|
671
|
-
|
|
672
|
-
### Fetched web sources
|
|
673
|
-
|
|
674
|
-
WebFetch retains the complete extracted Markdown temporarily in your runtime configuration directory under `web-artifacts` (normally `~/.aii/web-artifacts`). The agent keeps compact references in conversation history and can reread the stored source for follow-up questions. Tool rows distinguish network fetches and local stored reads. Sources expire after 24 hours or may be evicted earlier by storage limits.
|
|
675
|
-
|
|
676
|
-
Agent output budgets default to the selected model’s capability, subject to remaining context estimates, provider and account limits. Set a lower ceiling with `aii config set llm.max_output_tokens 32768`; restore automatic selection with `aii config set llm.max_output_tokens auto`. Unknown models use an 8,192-token fallback. New servers report the effective budget; ChatGPT subscription caps are advisory because that transport has no native output-limit parameter. Older servers remain usable.
|