@hemansubedi/aether-ai 1.0.0

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.
Files changed (90) hide show
  1. package/.gitattributes +3 -0
  2. package/.github/workflows/live-stats.yml +42 -0
  3. package/.github/workflows/publish.yml +34 -0
  4. package/.github/workflows/update-preview.yml +41 -0
  5. package/INSTALL.md +59 -0
  6. package/LICENSE +21 -0
  7. package/README.md +397 -0
  8. package/assets/aether-arena.svg +72 -0
  9. package/assets/aether-banner.svg +62 -0
  10. package/assets/aether-router.svg +129 -0
  11. package/dist/agent.js +125 -0
  12. package/dist/arena.js +486 -0
  13. package/dist/checkpoint.js +105 -0
  14. package/dist/client.js +95 -0
  15. package/dist/combos.js +176 -0
  16. package/dist/commands.js +483 -0
  17. package/dist/config.js +104 -0
  18. package/dist/cost.js +176 -0
  19. package/dist/git.js +52 -0
  20. package/dist/health.js +81 -0
  21. package/dist/index.js +272 -0
  22. package/dist/keys.js +128 -0
  23. package/dist/memory.js +98 -0
  24. package/dist/modes.js +68 -0
  25. package/dist/providers/index.js +32 -0
  26. package/dist/providers/ollama.js +206 -0
  27. package/dist/providers/openai-compat.js +181 -0
  28. package/dist/providers/openrouter.js +189 -0
  29. package/dist/providers/registry.js +211 -0
  30. package/dist/router-engine.js +200 -0
  31. package/dist/router.js +171 -0
  32. package/dist/server.js +210 -0
  33. package/dist/session.js +97 -0
  34. package/dist/settings.js +97 -0
  35. package/dist/skills.js +100 -0
  36. package/dist/tokensaver.js +50 -0
  37. package/dist/tools/filesystem.js +243 -0
  38. package/dist/tools/git.js +53 -0
  39. package/dist/tools/glob.js +175 -0
  40. package/dist/tools/grep.js +193 -0
  41. package/dist/tools/registry.js +39 -0
  42. package/dist/tools/vision.js +140 -0
  43. package/dist/tools/websearch.js +118 -0
  44. package/dist/tui.js +562 -0
  45. package/dist/types.js +8 -0
  46. package/docs/preview.txt +51 -0
  47. package/docs/screenshots.md +110 -0
  48. package/docs/stats.md +5 -0
  49. package/install.ps1 +170 -0
  50. package/install.sh +196 -0
  51. package/package.json +34 -0
  52. package/scripts/generate-stats-card.ts +62 -0
  53. package/scripts/patch_index.ps1 +17 -0
  54. package/scripts/release.sh +7 -0
  55. package/src/agent.ts +146 -0
  56. package/src/arena.ts +584 -0
  57. package/src/checkpoint.ts +111 -0
  58. package/src/client.ts +172 -0
  59. package/src/combos.ts +199 -0
  60. package/src/commands.ts +973 -0
  61. package/src/config.ts +122 -0
  62. package/src/cost.ts +206 -0
  63. package/src/git.ts +68 -0
  64. package/src/health.ts +90 -0
  65. package/src/index.ts +281 -0
  66. package/src/keys.ts +135 -0
  67. package/src/memory.ts +101 -0
  68. package/src/modes.ts +84 -0
  69. package/src/providers/index.ts +59 -0
  70. package/src/providers/ollama.ts +222 -0
  71. package/src/providers/openai-compat.ts +188 -0
  72. package/src/providers/openrouter.ts +198 -0
  73. package/src/providers/registry.ts +223 -0
  74. package/src/router-engine.ts +214 -0
  75. package/src/router.ts +195 -0
  76. package/src/server.ts +242 -0
  77. package/src/session.ts +111 -0
  78. package/src/settings.ts +125 -0
  79. package/src/skills.ts +106 -0
  80. package/src/tokensaver.ts +57 -0
  81. package/src/tools/filesystem.ts +258 -0
  82. package/src/tools/git.ts +53 -0
  83. package/src/tools/glob.ts +180 -0
  84. package/src/tools/grep.ts +192 -0
  85. package/src/tools/registry.ts +54 -0
  86. package/src/tools/vision.ts +152 -0
  87. package/src/tools/websearch.ts +130 -0
  88. package/src/tui.ts +664 -0
  89. package/src/types.ts +77 -0
  90. package/tsconfig.json +16 -0
package/.gitattributes ADDED
@@ -0,0 +1,3 @@
1
+ * text=auto
2
+ *.bat text eol=crlf
3
+ *.ps1 text eol=crlf
@@ -0,0 +1,42 @@
1
+ name: live-stats
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 */6 * * *"
6
+ push:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: write
11
+
12
+ jobs:
13
+ live-stats:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Setup Node
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: "20"
23
+
24
+ - name: Install dependencies
25
+ run: npm install
26
+
27
+ - name: Generate stats
28
+ run: npm run stats > docs/stats.txt
29
+
30
+ - name: Generate providers
31
+ run: npx tsx src/index.ts /providers > docs/providers.txt
32
+
33
+ - name: Generate stats card
34
+ run: npx tsx scripts/generate-stats-card.ts
35
+
36
+ - name: Commit stats
37
+ run: |
38
+ git config user.name "github-actions[bot]"
39
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
40
+ git add docs/stats.txt docs/providers.txt docs/stats.md
41
+ git commit -m "Update live stats" || echo "No changes to commit"
42
+ git push
@@ -0,0 +1,34 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+ id-token: write
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Setup Node
21
+ uses: actions/setup-node@v4
22
+ with:
23
+ node-version: 20
24
+ registry: 'https://registry.npmjs.org/'
25
+
26
+ - name: Install dependencies
27
+ run: npm ci
28
+
29
+ - name: Build
30
+ run: npm run build
31
+
32
+ - name: Publish
33
+ # Trusted Publishing: no NPM_TOKEN needed, OIDC id-token handles auth.
34
+ run: npm publish --access public
@@ -0,0 +1,41 @@
1
+ name: update-preview
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 */6 * * *"
6
+ push:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: write
11
+
12
+ jobs:
13
+ preview:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Setup Node
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: "20"
23
+
24
+ - name: Install dependencies
25
+ run: npm install
26
+
27
+ - name: Capture /help
28
+ run: npx tsx src/index.ts /help > docs/preview.txt
29
+
30
+ - name: Append /stats
31
+ run: |
32
+ printf '\n\n=== /stats ===\n' >> docs/preview.txt
33
+ npx tsx src/index.ts /stats >> docs/preview.txt
34
+
35
+ - name: Commit preview
36
+ run: |
37
+ git config user.name "github-actions[bot]"
38
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39
+ git add docs/preview.txt
40
+ git commit -m "Update docs/preview.txt" || echo "No changes to commit"
41
+ git push
package/INSTALL.md ADDED
@@ -0,0 +1,59 @@
1
+ # Install Aether
2
+
3
+ Aether is a free LLM CLI agent with multi-provider routing, failover, and agentic tool use.
4
+ Install it with one command on Windows, macOS, or Linux.
5
+
6
+ ## One-command install
7
+
8
+ | OS | Command |
9
+ |---|---|
10
+ | Windows | `powershell -ExecutionPolicy Bypass -File install.ps1` |
11
+ | macOS / Linux | `bash install.sh` |
12
+
13
+ Both scripts accept a non-interactive flag so you can run them headless:
14
+
15
+ | OS | Non-interactive |
16
+ |---|---|
17
+ | Windows | `powershell -ExecutionPolicy Bypass -File install.ps1 -Yes` |
18
+ | macOS / Linux | `bash install.sh --yes` |
19
+
20
+ ## Manual install
21
+
22
+ 1. Ensure you have **Node.js >= 20** installed.
23
+ 2. Clone the repo:
24
+
25
+ ```bash
26
+ git clone https://github.com/hemansubedi10/aether.git
27
+ cd aether
28
+ ```
29
+
30
+ 3. Install dependencies:
31
+
32
+ ```bash
33
+ npm install typescript tsx @types/node
34
+ ```
35
+
36
+ 4. Run it directly:
37
+
38
+ ```bash
39
+ npx tsx src/index.ts "your prompt here"
40
+ ```
41
+
42
+ Or start the HTTP server:
43
+
44
+ ```bash
45
+ npx tsx src/server.ts
46
+ ```
47
+
48
+ ## Requirements
49
+
50
+ - Node.js **>= 20**
51
+ - (Optional) An API key for your preferred provider, configured via `/connect` or `/keys` inside the CLI.
52
+
53
+ ## Verify
54
+
55
+ After installing, confirm the CLI is on your PATH:
56
+
57
+ ```bash
58
+ aether --version
59
+ ```
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Heman Subedi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,397 @@
1
+ # Aether
2
+
3
+ <p align="center"><img src="assets/aether-banner.svg" alt="Aether Banner" width="100%"></p>
4
+
5
+ [![GitHub stars](https://img.shields.io/github/stars/hemansubedi10/aether?style=for-the-badge&color=blue)](https://github.com/hemansubedi10/aether)
6
+ [![GitHub forks](https://img.shields.io/github/forks/hemansubedi10/aether?style=for-the-badge&color=green)](https://github.com/hemansubedi10/aether)
7
+ [![GitHub issues](https://img.shields.io/github/issues/hemansubedi10/aether?style=for-the-badge&color=red)](https://github.com/hemansubedi10/aether)
8
+ [![GitHub workflow status](https://img.shields.io/github/actions/workflow/status/hemansubedi10/aether/update-preview.yml?style=for-the-badge&color=blueviolet)](https://github.com/hemansubedi10/aether/actions)
9
+ [![Node version](https://img.shields.io/node/v?style=for-the-badge&color=yellow)](https://nodejs.org)
10
+ [![License](https://img.shields.io/github/license/hemansubedi10/aether?style=for-the-badge&color=orange)](https://github.com/hemansubedi10/aether/blob/main/LICENSE)
11
+
12
+ **The free, unlimited, multi-provider LLM CLI -- install like KiloCode, run like Claude Code.**
13
+
14
+ <p align="center"><img src="assets/aether-router.svg" alt="Multi-provider routing with automatic failover" width="100%"></p>
15
+
16
+ Aether is a Claude Code / Kilo-class AI agent for your terminal. It unifies every model behind one interface -- local Ollama models, OpenRouter free-tier, and any OpenAI-compatible endpoint -- so you can switch models on the fly without changing your workflow. It runs fully local with **zero token limits and zero cost**, tracks provider health with a circuit breaker, and drives real tools (read, write, edit, glob, grep, bash, git, web search, and vision) in an agentic loop. No API keys required to get started.
17
+
18
+ ## What is Aether?
19
+
20
+ Aether is a TypeScript CLI agent that turns your terminal into an autonomous coding assistant. At its heart is a **router** that keeps a priority-ordered list of providers and automatically fails over when one degrades. A **health tracker** opens a circuit breaker on repeated failures, so bad providers get skipped instead of blocking you. Everything streams through a ChatGPT-style TUI, and sessions, costs, checkpoints, and custom skills all persist on disk.
21
+
22
+ ## Features
23
+
24
+ <p align="center"><img src="assets/aether-arena.svg" alt="Live Model Arena" width="100%"></p>
25
+
26
+ | Feature | Description |
27
+ |---------|-------------|
28
+ | Multi-provider routing | One unified interface over Ollama, OpenRouter free-tier, and any OpenAI-compatible endpoint. Switch with `/model` and `/provider`. |
29
+ | Automatic failover | If a provider throws, the router records the failure and moves to the next enabled provider. A single consolidated error is yielded only if every provider is down. |
30
+ | Circuit breaker health tracking | Per-provider health state: failures, last check, circuit open/closed, and cooldown. `/providers` shows live status. |
31
+ | Agentic tool loop | The model drives tools until it stops requesting them: `read_file`, `write_file`, `edit_file`, `list_dir`, `bash`, `glob`, `grep`, `web_search`, `vision`, and `git`. |
32
+ | Streaming TUI | A ChatGPT-style terminal interface with streaming output, conversation history, regenerate, and side-by-side model comparison. |
33
+ | Persistent memory | Long-term memory stored on disk so the agent remembers you across sessions. |
34
+ | Plan / Yolo modes | `--plan` for step-by-step approval, `--yolo` for autonomous execution. |
35
+ | Token & cost tracker | Per-provider, per-model request, input/output token counts, and estimated USD cost. `/cost` and `/reset-cost`. |
36
+ | Tournament arena with Elo | Blind A/B voting between models with Elo ranking and a leaderboard. `/arena`. |
37
+ | Custom slash commands (skills) | Drop `.md` files in `~/.aether/skills/` to define reusable commands. `/skills` and `/skill <name>`. |
38
+ | Checkpoint / undo | Snapshot file state before edits so you can roll back. |
39
+ | Session persistence | Save, load, list, and clear named sessions as JSON under `~/.aether/sessions/`. |
40
+ | Named combos | Group providers into named combos and switch between them in one step. `/combo`. |
41
+ | One repo, two tools | The same routing engine powers both the CLI agent and an HTTP server (`npx tsx src/server.ts`). |
42
+ ## The CLI
43
+
44
+ Aether installs like KiloCode and runs like Claude Code. One line, no setup beyond Node.js 20+.
45
+
46
+ ### Install
47
+
48
+ | Platform | Command |
49
+ |----------|---------|
50
+ | Windows | `irm install.ps1 | iex` |
51
+ | macOS / Linux | `curl -fsSL install.sh | bash` |
52
+ | Manual | `git clone https://github.com/hemansubedi10/aether && cd aether && npx tsx src/index.ts` |
53
+
54
+ The installers drop `aether` and `aether-server` on your `PATH`, install dependencies, and verify Node.js 20+.
55
+
56
+ ### Zero install for a try
57
+
58
+ `npx` runs the source directly -- no clone, no install:
59
+
60
+ ```text
61
+ $ npx tsx src/index.ts "explain this repo"
62
+ Aether is a TypeScript CLI agent that turns your terminal into an
63
+ autonomous coding assistant. At its heart is a router that keeps a
64
+ priority-ordered list of providers and automatically fails over when
65
+ one degrades...
66
+ ```
67
+
68
+ ## Visual Demo
69
+
70
+ ```text
71
+ $ npx tsx src/index.ts
72
+
73
+ +- Aether --------------------------------------------------+
74
+ | |
75
+ | ollama-local · qwen2.5:7b |
76
+ | |
77
+ | ? Build a REST API in Node.js with CRUD endpoints |
78
+ | |
79
+ | ? [tool: read_file] src/index.ts |
80
+ | ? [tool: glob] src/**/*.ts |
81
+ | ? [tool: edit_file] src/routes/users.ts |
82
+ | ? |
83
+ | Here's a complete REST API with CRUD endpoints... |
84
+ | |
85
+ | ? Created src/routes/users.ts |
86
+ | ? Created src/routes/posts.ts |
87
+ | ? Created tests/routes/users.test.ts |
88
+ | |
89
+ | ? _ |
90
+ +-----------------------------------------------------------+
91
+ ```
92
+
93
+ Arena output:
94
+
95
+ ```text
96
+ $ npx tsx src/index.ts /arena
97
+
98
+ ? Prompt: write a hello world server
99
+ ? Running 3 models in parallel...
100
+ ? [Model A] ollama-local · qwen2.5:7b
101
+ ? [Model B] openrouter-free · llama-3.1-8b:free
102
+ ? [Model C] groq · llama-3.1-8b-instant
103
+ ? Voting...
104
+ ? Winner: Model A (Elo +12)
105
+
106
+ ELO LEADERBOARD
107
+ 1. Model A 1240 ████████████
108
+ 2. Model B 1215 ██████████
109
+ 3. Model C 1142 ████████
110
+ ```
111
+
112
+ Session stats:
113
+
114
+ ```text
115
+ $ npx tsx src/index.ts /stats
116
+
117
+ Aether Stats
118
+ ------------
119
+ Requests: 47
120
+ Input tokens: 182,431
121
+ Output tokens: 41,092
122
+ Est. cost: $0.00 (all free providers)
123
+
124
+ Provider health
125
+ ollama-local healthy 0 failures
126
+ openrouter-free healthy 0 failures
127
+ groq healthy 0 failures
128
+ ```
129
+
130
+ ## Features
131
+
132
+ | Feature | Description |
133
+ |---------|-------------|
134
+ | Multi-provider routing | One interface over Ollama, OpenRouter free-tier, and any OpenAI-compatible endpoint. `/model` and `/provider`. |
135
+ | Automatic failover | On error the router moves to the next enabled provider. One consolidated error only if every provider is down. |
136
+ | Circuit breaker | 3 failures open the circuit for 60s; the provider is skipped instead of blocking you. |
137
+ | Agentic tool loop | `read_file`, `write_file`, `edit_file`, `list_dir`, `bash`, `glob`, `grep`, `web_search`, `vision`, `git`. |
138
+ | Streaming TUI | ChatGPT-style interface with streaming, history, regenerate, and model comparison. |
139
+ | Persistent memory | Long-term memory on disk -- the agent remembers you across sessions. |
140
+ | Plan / Yolo | `--plan` for step-by-step approval, `--yolo` for autonomous execution. |
141
+ | Cost tracker | Per-provider, per-model input/output token counts and USD estimates. `/cost`, `/reset-cost`. |
142
+ | Arena with Elo | Blind A/B voting between models with Elo ranking. `/arena`. |
143
+ | Custom skills | Drop `.md` files in `~/.aether/skills/`. `/skills`, `/skill <name>`. |
144
+ | Checkpoint / undo | Snapshot file state before edits so you can roll back. |
145
+ | Sessions | Save, load, list, and clear named sessions as JSON. |
146
+ | Combos | Named groups of providers -- create and switch in one step. |
147
+ | HTTP server | Same engine as a server (`npx tsx src/server.ts`) for embedding. |
148
+
149
+ ## Commands
150
+
151
+ | Command | Description |
152
+ |---------|-------------|
153
+ | `/help` | Show all available commands |
154
+ | `/model <name>` | Switch the active model |
155
+ | `/provider <name>` | Switch the active provider |
156
+ | `/models` | List all available models across providers |
157
+ | `/providers` | Show provider health status |
158
+ | `/combo list | create <name> [provider...] | select <name> | delete <name>` | Manage named provider/model combos |
159
+ | `/session save [name] | load <name> | list | clear` | Manage sessions |
160
+ | `/arena` | Enter arena mode (compare models) |
161
+ | `/cost` | Show token usage and estimated cost summary |
162
+ | `/reset-cost` | Reset cost and token counters |
163
+ | `/settings [set <key> <value> | reset]` | View or modify settings |
164
+ | `/stats` | Show session stats, cost summary, and provider health |
165
+ | `/skills` | List available custom skills |
166
+ | `/skill <name> [args]` | Run a custom skill |
167
+ | `/connect <provider> <api_key>` | Connect an API key (saved to `~/.aether/keys.json`) |
168
+ | `/keys` | List which providers have API keys configured |
169
+ | `/disconnect <provider>` | Remove an API key |
170
+ | `/exit` (or `/quit`) | Exit the TUI |
171
+
172
+ ## How It Works
173
+
174
+ Your prompt flows from the CLI, through the Router, and out to whichever provider is best right now.
175
+
176
+ ```text
177
+ Your Prompt
178
+ v
179
+ +-------------+
180
+ | Aether CLI | <- streaming TUI, tools, memory, arena
181
+ +------^-------+
182
+ v
183
+ +-------------+
184
+ | Router | <- priority order, circuit breaker, automatic failover
185
+ +------^-------+
186
+ v v v v v v v
187
+ +---+---+---+---+---+---+---+
188
+ |Ollama|OpenRouter|Groq|Gemini|Mistral|...| <- 17 free providers
189
+ +---+---+---+---+---+---+---+
190
+ ```
191
+
192
+ - **CLI** -- the streaming TUI (`npx tsx src/index.ts`) plus the one-shot runner. It holds your tools, memory, sessions, and skills.
193
+ - **Router** (`src/router-engine.ts`) -- keeps a priority-ordered list of providers, runs a circuit breaker, and fails over automatically when one degrades. API keys live in the `KeyManager` (`src/keys.ts`).
194
+ - **Providers** -- local Ollama, OpenRouter free-tier, and any OpenAI-compatible endpoint. Each is wrapped behind one interface so the router never cares which one is speaking.
195
+
196
+ ## Combos
197
+
198
+ Combos are named groups of providers/models that you create once and switch between in a single step -- no more juggling `/provider` and `/model` separately. Combos persist to `~/.aether/combos.json`.
199
+
200
+ Two built-ins ship with every install:
201
+
202
+ - `local` -- Ollama only (priority 1, truly unlimited, no key)
203
+ - `cloud` -- every enabled cloud provider
204
+
205
+ ```text
206
+ # Create a fast combo: Ollama + Groq
207
+ npx tsx src/index.ts /combo create fast ollama-local groq
208
+
209
+ # Select it (sets the active provider + model in one step)
210
+ npx tsx src/index.ts /combo select fast
211
+
212
+ # List all combos
213
+ npx tsx src/index.ts /combo list
214
+
215
+ # Delete a custom combo
216
+ npx tsx src/index.ts /combo delete fast
217
+ ```
218
+
219
+ Combos are unique to Aether: they let you define a "mode" once -- `fast`, `cheap`, `max-quality`, `local-only` -- and flip between them instantly.
220
+
221
+ ## The Providers
222
+
223
+ Aether is **one repo, two tools**. The same routing engine powers the CLI agent and an HTTP server, so you can embed Aether into any app, gateway, or proxy.
224
+
225
+ ## Install the Provider Server
226
+
227
+ Run the server and it becomes an OpenAI-compatible API backed by all 17 free providers with automatic failover.
228
+
229
+ ```text
230
+ $ npx tsx src/server.ts
231
+ Aether free-model server running at http://localhost:31415
232
+ Endpoints:
233
+ GET /health
234
+ GET /v1/models
235
+ POST /v1/chat/completions
236
+ POST /v1/chat
237
+ GET /providers
238
+ POST /reset-health
239
+ Providers: 17 configured
240
+ ```
241
+
242
+ Set a custom port with `AETHER_PORT=8080 npx tsx src/server.ts`.
243
+
244
+ | Method & Path | Description |
245
+ |---------------|-------------|
246
+ | `GET /health` | Overall status: provider count and healthy count |
247
+ | `GET /v1/models` | OpenAI-compatible model list across all providers |
248
+ | `GET /providers` | Live health status for every provider |
249
+ | `POST /v1/chat/completions` | OpenAI-compatible chat (streaming + non-streaming) |
250
+ | `POST /v1/chat` | Aether-native chat (includes `provider`, `attempts`) |
251
+ | `POST /reset-health` | Reset the circuit breaker for all providers |
252
+
253
+ ```text
254
+ # Any OpenAI client now talks to Aether:
255
+ $ curl -s http://localhost:31415/v1/models | jq '.data[].id' | head
256
+ llama-3.1-8b-instant
257
+ mistral-small-latest
258
+ deepseek-chat
259
+ ```
260
+
261
+ ## Provider List
262
+
263
+ All 17 providers ship in the registry (`src/providers/registry.ts`). Priority 1 is local Ollama -- truly unlimited and key-free.
264
+
265
+ | # | Provider | Type | Free | Priority |
266
+ |---|----------|------|------|----------|
267
+ | 1 | **ollama-local** | Ollama | free, unlimited | 1 |
268
+ | 2 | **openrouter-free** | OpenRouter | free tier | 2 |
269
+ | 3 | **groq** | OpenAI-compat | 1M tokens/day | 3 |
270
+ | 4 | **mistral** | OpenAI-compat | free tier | 4 |
271
+ | 5 | **cohere** | OpenAI-compat | free tier | 5 |
272
+ | 6 | **huggingface** | OpenAI-compat | free | 6 |
273
+ | 7 | **fireworks** | OpenAI-compat | free tier | 7 |
274
+ | 8 | **together** | OpenAI-compat | free tier | 8 |
275
+ | 9 | **deepseek** | OpenAI-compat | pay-as-you-go | 9 |
276
+ | 10 | **gemini** | OpenAI-compat | free tier | 10 |
277
+ | 11 | **xai** | OpenAI-compat | free tier | 11 |
278
+ | 12 | **perplexity** | OpenAI-compat | free tier | 12 |
279
+ | 13 | **cerebras** | OpenAI-compat | free tier | 13 |
280
+ | 14 | **nvidia** | OpenAI-compat | free tier | 14 |
281
+ | 15 | **jina** | OpenAI-compat | free | 15 |
282
+ | 16 | **parasail** | OpenAI-compat | free tier | 16 |
283
+ | 17 | **featherless** | OpenAI-compat | free tier | 17 |
284
+
285
+ Disabled by default (need a custom base URL): `openai-compatible`, `cloudflare`, `voyage`. Enable them by setting a base URL in `~/.aether/config.json`.
286
+
287
+ ## Connect Cloud Providers
288
+
289
+ Two methods -- env vars for a quick session, `/connect` for permanent keys saved to `~/.aether/keys.json`.
290
+
291
+ ```text
292
+ # Method A: environment variables (temporary, per-session)
293
+ export OPENROUTER_API_KEY="sk-or-..."
294
+ export GROQ_API_KEY="gsk_..."
295
+ npx tsx src/index.ts "ask groq something"
296
+
297
+ # Method B: /connect command (permanent, saved to ~/.aether/keys.json)
298
+ npx tsx src/index.ts /connect openrouter-free sk-or-...
299
+ npx tsx src/index.ts /connect groq gsk_...
300
+ npx tsx src/index.ts /keys # list what is connected
301
+
302
+ # Remove a key
303
+ npx tsx src/index.ts /disconnect groq
304
+ ```
305
+
306
+ Keys are stored locally in `~/.aether/keys.json` and are never uploaded.
307
+
308
+ ## Health & Failover
309
+
310
+ Aether never blocks on a bad provider. The router (`src/health.ts`) runs a **circuit breaker**:
311
+
312
+ - Each provider tracks `failures`, `lastCheck`, `circuitOpen`, and `cooldownUntil`.
313
+ - After **3 failures** the circuit opens and the provider is skipped for **60 seconds**.
314
+ - After cooldown the circuit goes half-open: one probe request is allowed. If it succeeds, the circuit closes; if it fails, the cooldown restarts.
315
+ - Requests always try providers in **priority order** and automatically fail over. A single consolidated error is returned only if every enabled provider is down.
316
+
317
+ ```text
318
+ $ npx tsx src/index.ts /providers
319
+
320
+ Provider Status Failures Circuit
321
+ ollama-local healthy 0 closed
322
+ openrouter-free healthy 0 closed
323
+ groq warning 3 open (42s left)
324
+ mistral healthy 0 closed
325
+ ```
326
+
327
+ Use `/reset-health` (or `POST /reset-health` on the server) to clear the circuit breaker at any time.
328
+
329
+ ## Free API Keys
330
+
331
+ No credit card required for any of these:
332
+
333
+ - **OpenRouter** (openrouter.ai) -- free tier, no card, many free models. Sign up in 10 seconds.
334
+ - **Groq** (groq.com) -- 1M tokens/day free, great speed.
335
+ - **HuggingFace** (huggingface.co) -- free inference API, no card.
336
+ - **Cohere** (cohere.ai) -- free tier for `command-r`.
337
+ - **Mistral** (mistral.ai) -- free tier for `mistral-small`.
338
+ - **DeepSeek** (deepseek.com) -- pay-as-you-go, very cheap (not free, but near-zero cost).
339
+
340
+ Local Ollama needs **no key at all** -- just `ollama serve` running.
341
+
342
+ ---
343
+
344
+ ## Wrap-Up
345
+
346
+ Aether is the CLI that installs like KiloCode and runs like Claude Code, with two unique ideas that no other agent has:
347
+
348
+ 1. **Combos** -- named groups of providers you create and switch between in one step (`/combo`).
349
+ 2. **Circuit breaker** -- providers that fail get blacklisted temporarily, so they never block you.
350
+
351
+ Add in local-first Ollama (priority 1, zero cost), zero-install one-shot mode (`npx tsx src/index.ts "prompt"`), and one repo powering both a CLI and an HTTP server, and you have the free, unlimited, multi-provider LLM agent.
352
+
353
+ [MIT License](LICENSE) -- built by [Hemansubedi10](https://github.com/hemansubedi10).
354
+
355
+ Full docs: [docs/aether.md](docs/aether.md) | [INSTALL.md](INSTALL.md) | [Report an issue](https://github.com/hemansubedi10/aether/issues)
356
+ ## Install via npm
357
+
358
+ ```bash
359
+ npm install -g aether-ai
360
+ aether-ai "your prompt"
361
+ ```
362
+
363
+ The package is published on npm: [npmjs.com/package/aether](https://www.npmjs.com/package/aether-ai).
364
+
365
+ ## Install
366
+
367
+ Install the Aether CLI globally:
368
+
369
+ bash
370
+ npm install -g aether-ai
371
+
372
+
373
+
374
+ ## Publishing
375
+
376
+ Aether is published on npm as **`aether-ai`**. Install it globally with:
377
+
378
+ ```bash
379
+ npm install -g aether-ai
380
+ aether-ai "your prompt"
381
+ ```
382
+
383
+ Package page: [npmjs.com/package/aether-ai](https://www.npmjs.com/package/aether-ai).
384
+
385
+ ### Trusted Publishing (OIDC � no token needed)
386
+
387
+ New versions are published automatically by a GitHub Actions workflow using npm **Trusted Publishing**. There is no npm token to manage � GitHub Actions authenticates to npm via OpenID Connect.
388
+
389
+ To release a new version:
390
+
391
+ ```bash
392
+ ./scripts/release.sh patch # or minor / major
393
+ ```
394
+
395
+ That script bumps the version, commits, tags (e.g. `v1.0.1`), and pushes. Pushing a `v*` tag triggers the `publish.yml` workflow, which builds and runs `npm publish --access public` with no token.
396
+
397
+ You can also trigger a publish manually from the Actions tab.
@@ -0,0 +1,72 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 260" width="1200" height="260">
3
+ <defs>
4
+ <linearGradient id="bg" x1="0%" y1="0%" x2="0%" y2="100%">
5
+ <stop offset="0%" stop-color="#0a0e1a"/>
6
+ <stop offset="100%" stop-color="#0f1525"/>
7
+ </linearGradient>
8
+ <linearGradient id="cardGrad" x1="0%" y1="0%" x2="0%" y2="100%">
9
+ <stop offset="0%" stop-color="#1e293b"/>
10
+ <stop offset="100%" stop-color="#0f172a"/>
11
+ </linearGradient>
12
+ <linearGradient id="barGrad" x1="0%" y1="0%" x2="100%" y2="0%">
13
+ <stop offset="0%" stop-color="#22c55e"/>
14
+ <stop offset="100%" stop-color="#16a34a"/>
15
+ </linearGradient>
16
+ <filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
17
+ <feGaussianBlur stdDeviation="3" result="blur"/>
18
+ <feMerge>
19
+ <feMergeNode in="blur"/>
20
+ <feMergeNode in="SourceGraphic"/>
21
+ </feMerge>
22
+ </filter>
23
+ </defs>
24
+
25
+ <rect width="1200" height="260" fill="url(#bg)"/>
26
+
27
+ <text x="600" y="36" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="20" font-weight="bold" fill="#ffffff">
28
+ Live Model Arena &#183; Blind A/B Voting &#183; Elo Ranking
29
+ </text>
30
+
31
+ <g>
32
+ <rect x="40" y="60" width="200" height="140" rx="12" ry="12" fill="url(#cardGrad)" stroke="#334155" stroke-width="1"/>
33
+ <text x="140" y="92" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="bold" fill="#e2e8f0">Model A</text>
34
+ <circle cx="80" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0s" repeatCount="indefinite"/></circle>
35
+ <circle cx="100" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0.466s" repeatCount="indefinite"/></circle>
36
+ <circle cx="120" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0.933s" repeatCount="indefinite"/></circle>
37
+ </g>
38
+
39
+ <g>
40
+ <rect x="300" y="60" width="200" height="140" rx="12" ry="12" fill="url(#cardGrad)" stroke="#334155" stroke-width="1"/>
41
+ <text x="400" y="92" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="bold" fill="#e2e8f0">Model B</text>
42
+ <circle cx="340" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0s" repeatCount="indefinite"/></circle>
43
+ <circle cx="360" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0.466s" repeatCount="indefinite"/></circle>
44
+ <circle cx="380" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0.933s" repeatCount="indefinite"/></circle>
45
+ </g>
46
+
47
+ <g>
48
+ <rect x="560" y="60" width="200" height="140" rx="12" ry="12" fill="url(#cardGrad)" stroke="#334155" stroke-width="1"/>
49
+ <text x="660" y="92" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="bold" fill="#e2e8f0">Model C</text>
50
+ <circle cx="600" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0s" repeatCount="indefinite"/></circle>
51
+ <circle cx="620" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0.466s" repeatCount="indefinite"/></circle>
52
+ <circle cx="640" cy="130" r="5" fill="#94a3b8"><animate attributeName="opacity" values="0.2;1;0.2" dur="1.4s" begin="0.933s" repeatCount="indefinite"/></circle>
53
+ </g>
54
+
55
+ <g font-family="Arial, Helvetica, sans-serif" font-size="14" fill="#e2e8f0">
56
+ <text x="820" y="50" font-size="13" font-weight="bold" fill="#94a3b8">ELO LEADERBOARD</text>
57
+ <text x="820" y="80">Model A</text>
58
+ <text x="900" y="80" fill="#94a3b8">1240</text>
59
+ <rect x="960" y="68" width="0" height="10" rx="5" fill="url(#barGrad)"><animate attributeName="width" from="0" to="80" dur="1.5s" begin="0s" repeatCount="indefinite"/></rect>
60
+ <text x="820" y="110">Model B</text>
61
+ <text x="900" y="110" fill="#94a3b8">1215</text>
62
+ <rect x="960" y="98" width="0" height="10" rx="5" fill="url(#barGrad)"><animate attributeName="width" from="0" to="60" dur="1.5s" begin="0.5s" repeatCount="indefinite"/></rect>
63
+ <text x="820" y="140">Model C</text>
64
+ <text x="900" y="140" fill="#94a3b8">1142</text>
65
+ <rect x="960" y="128" width="0" height="10" rx="5" fill="url(#barGrad)"><animate attributeName="width" from="0" to="40" dur="1.5s" begin="1s" repeatCount="indefinite"/></rect>
66
+ </g>
67
+
68
+ <g filter="url(#glow)">
69
+ <circle cx="1140" cy="120" r="8" fill="#22c55e"><animate attributeName="opacity" values="1;0.3;1" dur="2s" repeatCount="indefinite"/></circle>
70
+ <circle cx="1140" cy="120" r="8" fill="#22c55e" opacity="0.6"><animateTransform attributeName="transform" type="scale" values="1;2.5;1" dur="2s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.6;0;0.6" dur="2s" repeatCount="indefinite"/></circle>
71
+ </g>
72
+ </svg>