You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/extensions/extensions/providers-quota-extension/README.md
+83-23Lines changed: 83 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,16 @@
1
1
# Providers Quota Extension
2
2
3
-
Displays API quota information for **Synthetic** and **Z.AI** providers in the AiderDesk task status bar. The extension automatically shows the relevant quota based on the active agent profile's provider.
3
+
Displays API quota information for **Synthetic**, **Z.AI**, and **Neuralwatt** providers in the AiderDesk task status bar. The extension automatically shows the relevant quota based on the active agent profile's provider.
4
4
5
5
## Features
6
6
7
7
-**Synthetic Provider**: Shows used/limit with percentage and progress bar
8
8
-**Z.AI Provider**: Shows 5-hour and weekly usage percentages with progress bars
9
+
-**Neuralwatt Provider**: Shows quota based on account type:
10
+
-**Subscription**: kWh used/included with percentage and renewal date
11
+
-**Pay-as-you-go**: Credits remaining/total with percentage
12
+
- API keys are automatically loaded from AiderDesk provider settings
13
+
- Optional `.env` file to override API keys
9
14
- Automatic provider detection based on active agent profile
10
15
- Quota data cached for 1 minute to minimize API calls
11
16
@@ -16,46 +21,42 @@ Displays API quota information for **Synthetic** and **Z.AI** providers in the A
If the agent profile's provider doesn't match a configured provider, no quota is displayed.
43
43
44
44
## Configuration
45
45
46
-
### Environment Variables
46
+
### API Keys
47
47
48
-
Create a `.env` file in the extension folder (`~/.aider-desk/extensions/providers-quota-extension/.env`):
48
+
API keys are **automatically loaded from AiderDesk provider settings** — no manual configuration required. Simply ensure your API keys are set in the AiderDesk Providers settings page.
49
+
50
+
To override the API keys from AiderDesk settings, create a `.env` file in the extension folder (`~/.aider-desk/extensions/providers-quota-extension/.env`):
49
51
50
52
```env
51
-
# For Synthetic provider (optional)
53
+
# Override API keys (optional — only needed to override AiderDesk settings)
52
54
SYNTHETIC_API_KEY=your_synthetic_api_key
53
-
54
-
# For Z.AI provider (optional)
55
55
ZAI_API_KEY=your_zai_api_key
56
+
NEURALWATT_API_KEY=your_neuralwatt_api_key
56
57
```
57
58
58
-
You can configure either or both providers. Only configure the ones you use.
59
+
You can configure any combination of providers. Only configure the ones you use.
59
60
60
61
### Multiple Environment Files
61
62
@@ -112,12 +113,53 @@ The extension supports multiple `.env` files loaded in priority order (later fil
0 commit comments