@iamharshil/aix-cli 1.0.2 β 1.1.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.
- package/LICENSE +1 -1
- package/README.md +106 -112
- package/package.json +3 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,43 +1,56 @@
|
|
|
1
1
|
# AIX CLI
|
|
2
2
|
|
|
3
|
-
> AI CLI tool that integrates LM Studio with Claude Code for enhanced development assistance
|
|
3
|
+
> AI-powered CLI tool that integrates LM Studio with Claude Code for enhanced local development assistance
|
|
4
|
+
|
|
5
|
+
<div align="center">
|
|
4
6
|
|
|
5
7
|
[](https://www.npmjs.com/package/@iamharshil/aix-cli)
|
|
6
8
|
[](https://opensource.org/licenses/MIT)
|
|
7
9
|
[](https://nodejs.org/)
|
|
10
|
+
[](https://github.com/iamharshil/aix-cli/releases)
|
|
11
|
+
[](https://github.com/iamharshil/aix-cli/actions)
|
|
12
|
+
[](https://www.npmjs.com/package/@iamharshil/aix-cli)
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
---
|
|
8
17
|
|
|
9
|
-
|
|
18
|
+
## Overview
|
|
10
19
|
|
|
11
|
-
|
|
20
|
+
**AIX CLI** enables you to use locally-running AI models from [LM Studio](https://lmstudio.ai) directly with [Claude Code](https://docs.anthropic.com/en/docs/claude-code). No API keys, no cloud dependencies, complete privacy.
|
|
12
21
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
### Why AIX?
|
|
23
|
+
|
|
24
|
+
| Feature | Description |
|
|
25
|
+
| -------------------- | ---------------------------------------------- |
|
|
26
|
+
| π **Privacy-First** | All processing happens locally on your machine |
|
|
27
|
+
| π **No API Keys** | No external services or subscriptions |
|
|
28
|
+
| π **Fast** | Local inference with your GPU |
|
|
29
|
+
| π‘οΈ **Secure** | Your code never leaves your machine |
|
|
30
|
+
| π§ **Simple** | Just run `aix-cli run` and start coding |
|
|
18
31
|
|
|
19
32
|
## Prerequisites
|
|
20
33
|
|
|
21
34
|
- [Node.js](https://nodejs.org/) 18.0.0 or higher
|
|
22
|
-
- [LM Studio](https://lmstudio.ai) - Download and
|
|
23
|
-
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) -
|
|
35
|
+
- [LM Studio](https://lmstudio.ai) - Download and run local AI models
|
|
36
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) - AI coding assistant
|
|
24
37
|
|
|
25
38
|
## Quick Start
|
|
26
39
|
|
|
27
40
|
```bash
|
|
28
|
-
# Install
|
|
41
|
+
# Install
|
|
29
42
|
npm install -g @iamharshil/aix-cli
|
|
30
43
|
|
|
31
|
-
#
|
|
44
|
+
# Verify setup
|
|
32
45
|
aix-cli doctor
|
|
33
46
|
|
|
34
|
-
#
|
|
47
|
+
# Run with interactive model selection
|
|
35
48
|
aix-cli run
|
|
36
49
|
```
|
|
37
50
|
|
|
38
51
|
## Installation
|
|
39
52
|
|
|
40
|
-
### Using npm (
|
|
53
|
+
### Using npm (Recommended)
|
|
41
54
|
|
|
42
55
|
```bash
|
|
43
56
|
npm install -g @iamharshil/aix-cli
|
|
@@ -55,7 +68,7 @@ yarn global add @iamharshil/aix-cli
|
|
|
55
68
|
pnpm add -g @iamharshil/aix-cli
|
|
56
69
|
```
|
|
57
70
|
|
|
58
|
-
### From
|
|
71
|
+
### From Source
|
|
59
72
|
|
|
60
73
|
```bash
|
|
61
74
|
git clone https://github.com/iamharshil/aix-cli.git
|
|
@@ -69,56 +82,36 @@ npm link
|
|
|
69
82
|
|
|
70
83
|
### System Check
|
|
71
84
|
|
|
72
|
-
Verify your
|
|
85
|
+
Verify your environment is properly configured:
|
|
73
86
|
|
|
74
87
|
```bash
|
|
75
88
|
aix-cli doctor
|
|
76
89
|
```
|
|
77
90
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
System Check
|
|
82
|
-
ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
83
|
-
β LM Studio: Running
|
|
84
|
-
β Claude Code: Installed
|
|
85
|
-
|
|
86
|
-
Configuration
|
|
87
|
-
ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
88
|
-
βΈ LM Studio URL: http://localhost:1234
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Initialize & Load a Model
|
|
91
|
+
### Initialize Model
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
Load a model from your local LM Studio models:
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
|
+
# Interactive selection
|
|
96
97
|
aix-cli init
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
With a specific model:
|
|
100
98
|
|
|
101
|
-
|
|
99
|
+
# Specific model
|
|
102
100
|
aix-cli init -m llama-3-8b
|
|
103
101
|
```
|
|
104
102
|
|
|
105
|
-
### Run Claude Code
|
|
103
|
+
### Run Claude Code
|
|
106
104
|
|
|
107
|
-
Start
|
|
105
|
+
Start coding with Claude Code and your local model:
|
|
108
106
|
|
|
109
107
|
```bash
|
|
108
|
+
# Interactive session
|
|
110
109
|
aix-cli run
|
|
111
|
-
```
|
|
112
110
|
|
|
113
|
-
With
|
|
114
|
-
|
|
115
|
-
```bash
|
|
111
|
+
# With specific model
|
|
116
112
|
aix-cli run -m llama-3-8b
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
With additional Claude Code arguments:
|
|
120
113
|
|
|
121
|
-
|
|
114
|
+
# With arguments
|
|
122
115
|
aix-cli run -m llama-3-8b -- "Write a hello world in Python"
|
|
123
116
|
```
|
|
124
117
|
|
|
@@ -132,16 +125,18 @@ aix-cli status
|
|
|
132
125
|
|
|
133
126
|
## Configuration
|
|
134
127
|
|
|
128
|
+
### Config Location
|
|
129
|
+
|
|
135
130
|
AIX CLI stores configuration in your system's app data directory:
|
|
136
131
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
132
|
+
| Platform | Path |
|
|
133
|
+
| -------- | ---------------------------------------- |
|
|
134
|
+
| macOS | `~/Library/Application Support/aix-cli/` |
|
|
135
|
+
| Linux | `~/.config/aix-cli/` |
|
|
136
|
+
| Windows | `%APPDATA%\aix-cli\` |
|
|
140
137
|
|
|
141
138
|
### Config File
|
|
142
139
|
|
|
143
|
-
The config is stored as `config.json`:
|
|
144
|
-
|
|
145
140
|
```json
|
|
146
141
|
{
|
|
147
142
|
"lmStudioUrl": "http://localhost",
|
|
@@ -157,90 +152,87 @@ The config is stored as `config.json`:
|
|
|
157
152
|
| ---------------- | --------------------- | ------- |
|
|
158
153
|
| `LM_STUDIO_PORT` | LM Studio server port | `1234` |
|
|
159
154
|
|
|
160
|
-
##
|
|
155
|
+
## Architecture
|
|
161
156
|
|
|
162
157
|
```
|
|
163
|
-
|
|
164
|
-
β
|
|
165
|
-
|
|
166
|
-
β
|
|
167
|
-
β ββββββββββββ ββββββββββββββββ
|
|
168
|
-
β β User ββββββΆβ LM Studio
|
|
169
|
-
β ββββββββββββ ββββββββββββββββ
|
|
170
|
-
β β β
|
|
171
|
-
β β βΌ
|
|
172
|
-
β β ββββββββββββββββ
|
|
173
|
-
β β β Local API β
|
|
174
|
-
β β β (port 1234) β
|
|
175
|
-
β β ββββββββββββββββ
|
|
176
|
-
β β β
|
|
177
|
-
β βΌ βΌ
|
|
178
|
-
β
|
|
179
|
-
β β
|
|
180
|
-
β β
|
|
181
|
-
β
|
|
182
|
-
β
|
|
183
|
-
|
|
158
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
159
|
+
β AIX Flow β
|
|
160
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
|
161
|
+
β β
|
|
162
|
+
β ββββββββββββ ββββββββββββββββ β
|
|
163
|
+
β β User ββββββΆβ LM Studio β β
|
|
164
|
+
β ββββββββββββ ββββββββββββββββ β
|
|
165
|
+
β β β β
|
|
166
|
+
β β βΌ β
|
|
167
|
+
β β ββββββββββββββββ β
|
|
168
|
+
β β β Local API β β
|
|
169
|
+
β β β (port 1234) β β
|
|
170
|
+
β β ββββββββββββββββ β
|
|
171
|
+
β β β β
|
|
172
|
+
β βΌ βΌ β
|
|
173
|
+
β βββββββββββββββββββββββββββββββββββ β
|
|
174
|
+
β β Claude Code β β
|
|
175
|
+
β β --model lmstudio/model β β
|
|
176
|
+
β βββββββββββββββββββββββββββββββββββ β
|
|
177
|
+
β β
|
|
178
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
184
179
|
```
|
|
185
180
|
|
|
186
181
|
## Troubleshooting
|
|
187
182
|
|
|
188
|
-
###
|
|
189
|
-
|
|
190
|
-
1. Open LM Studio
|
|
191
|
-
2. Go to the **Server** tab (left sidebar)
|
|
192
|
-
3. Click **Start Server**
|
|
193
|
-
4. Run `aix run` again
|
|
194
|
-
|
|
195
|
-
Or let AIX start it for you (it will ask for permission).
|
|
196
|
-
|
|
197
|
-
### "No models found"
|
|
183
|
+
### LM Studio server not running
|
|
198
184
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
185
|
+
```bash
|
|
186
|
+
# 1. Open LM Studio
|
|
187
|
+
# 2. Go to Server tab (left sidebar)
|
|
188
|
+
# 3. Click Start Server
|
|
189
|
+
# 4. Run: aix-cli run
|
|
190
|
+
```
|
|
204
191
|
|
|
205
|
-
###
|
|
192
|
+
### No models found
|
|
206
193
|
|
|
207
194
|
```bash
|
|
208
|
-
|
|
195
|
+
# 1. Open LM Studio
|
|
196
|
+
# 2. Go to Search tab
|
|
197
|
+
# 3. Download a model (e.g., Llama 3, Mistral)
|
|
198
|
+
# 4. Wait for download to complete
|
|
199
|
+
# 5. Run: aix-cli init
|
|
209
200
|
```
|
|
210
201
|
|
|
211
|
-
###
|
|
202
|
+
### Connection refused on port 1234
|
|
212
203
|
|
|
213
|
-
|
|
204
|
+
Check LM Studio's server tab for the correct port and update your config.
|
|
214
205
|
|
|
215
|
-
## Privacy
|
|
206
|
+
## Security & Privacy
|
|
216
207
|
|
|
217
|
-
- All AI processing happens locally
|
|
218
|
-
- No data
|
|
219
|
-
- No telemetry or analytics
|
|
220
|
-
- No API keys required
|
|
221
|
-
- Your code stays on your machine
|
|
208
|
+
- β
All AI processing happens locally
|
|
209
|
+
- β
No data sent to external servers
|
|
210
|
+
- β
No telemetry or analytics
|
|
211
|
+
- β
No API keys required
|
|
212
|
+
- β
Your code stays on your machine
|
|
222
213
|
|
|
223
214
|
## Contributing
|
|
224
215
|
|
|
225
|
-
Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md)
|
|
216
|
+
Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md).
|
|
226
217
|
|
|
227
|
-
### Development
|
|
218
|
+
### Development
|
|
228
219
|
|
|
229
220
|
```bash
|
|
230
|
-
# Clone
|
|
231
|
-
git clone https://github.com/
|
|
232
|
-
cd aix
|
|
233
|
-
|
|
234
|
-
# Install dependencies
|
|
221
|
+
# Clone and setup
|
|
222
|
+
git clone https://github.com/iamharshil/aix-cli.git
|
|
223
|
+
cd aix-cli
|
|
235
224
|
npm install
|
|
236
225
|
|
|
237
|
-
#
|
|
226
|
+
# Development mode
|
|
238
227
|
npm run dev
|
|
239
228
|
|
|
240
229
|
# Run tests
|
|
241
230
|
npm test
|
|
242
231
|
|
|
243
|
-
#
|
|
232
|
+
# Lint
|
|
233
|
+
npm run lint
|
|
234
|
+
|
|
235
|
+
# Build
|
|
244
236
|
npm run build
|
|
245
237
|
```
|
|
246
238
|
|
|
@@ -258,15 +250,17 @@ npm run build
|
|
|
258
250
|
|
|
259
251
|
## License
|
|
260
252
|
|
|
261
|
-
MIT
|
|
253
|
+
[MIT](LICENSE) - Β© 2024 Harshil
|
|
262
254
|
|
|
263
255
|
## Support
|
|
264
256
|
|
|
265
|
-
- [
|
|
266
|
-
- [Discussions](https://github.com/
|
|
257
|
+
- π [Issues](https://github.com/iamharshil/aix-cli/issues) - Report bugs
|
|
258
|
+
- π¬ [Discussions](https://github.com/iamharshil/aix-cli/discussions) - Ask questions
|
|
267
259
|
|
|
268
260
|
---
|
|
269
261
|
|
|
270
|
-
<
|
|
271
|
-
|
|
272
|
-
|
|
262
|
+
<div align="center">
|
|
263
|
+
|
|
264
|
+
Built with β€οΈ for privacy-conscious developers
|
|
265
|
+
|
|
266
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iamharshil/aix-cli",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "AI CLI tool that integrates LM Studio with Claude Code for enhanced development assistance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"test:watch": "vitest",
|
|
43
43
|
"lint": "eslint src --ext .ts",
|
|
44
44
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
45
|
-
"typecheck": "tsc --noEmit"
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"audit": "node scripts/audit.js"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"chalk": "^5.3.0",
|