@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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +106 -112
  3. package/package.json +3 -2
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024
3
+ Copyright (c) 2026 Harshil
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
  [![npm version](https://img.shields.io/npm/v/@iamharshil/aix-cli.svg)](https://www.npmjs.com/package/@iamharshil/aix-cli)
6
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
9
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org/)
10
+ [![GitHub Release](https://img.shields.io/github/v/release/iamharshil/aix-cli)](https://github.com/iamharshil/aix-cli/releases)
11
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/iamharshil/aix-cli/ci)](https://github.com/iamharshil/aix-cli/actions)
12
+ [![Total Downloads](https://img.shields.io/npm/dt/@iamharshil/aix-cli)](https://www.npmjs.com/package/@iamharshil/aix-cli)
13
+
14
+ </div>
15
+
16
+ ---
8
17
 
9
- **AIX** lets you use locally running AI models from LM Studio directly with Claude Code. No API keys, no cloud dependencies, complete privacy.
18
+ ## Overview
10
19
 
11
- ## Features
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
- - **Privacy-first**: All processing happens locally on your machine
14
- - **Permission-based**: Never makes system changes without asking
15
- - **Interactive model selection**: Browse and choose from your downloaded models
16
- - **Seamless Claude Code integration**: Just run `aix-cli run` and code
17
- - **Cross-platform**: macOS, Linux, and Windows support
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 install
23
- - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) - Install via `npm install -g @anthropic-ai/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 AIX CLI
41
+ # Install
29
42
  npm install -g @iamharshil/aix-cli
30
43
 
31
- # Check if everything is set up
44
+ # Verify setup
32
45
  aix-cli doctor
33
46
 
34
- # Start using (will prompt for model selection)
47
+ # Run with interactive model selection
35
48
  aix-cli run
36
49
  ```
37
50
 
38
51
  ## Installation
39
52
 
40
- ### Using npm (recommended)
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 source
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 setup:
85
+ Verify your environment is properly configured:
73
86
 
74
87
  ```bash
75
88
  aix-cli doctor
76
89
  ```
77
90
 
78
- Output:
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
- Select and load a model from your local LM Studio models:
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
- ```bash
99
+ # Specific model
102
100
  aix-cli init -m llama-3-8b
103
101
  ```
104
102
 
105
- ### Run Claude Code with a Model
103
+ ### Run Claude Code
106
104
 
107
- Start an interactive Claude Code session with your selected model:
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 a specific model:
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
- ```bash
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
- - **macOS**: `~/Library/Application Support/aix-cli/`
138
- - **Linux**: `~/.config/aix-cli/`
139
- - **Windows**: `%APPDATA%\aix-cli\`
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
- ## How It Works
155
+ ## Architecture
161
156
 
162
157
  ```
163
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
164
- β”‚ AIX Flow β”‚
165
- β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
166
- β”‚ β”‚
167
- β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
168
- β”‚ β”‚ User │────▢│ LM Studio │────▢│ Models β”‚ β”‚
169
- β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
170
- β”‚ β”‚ β”‚ β”‚
171
- β”‚ β”‚ β–Ό β”‚
172
- β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
173
- β”‚ β”‚ β”‚ Local API β”‚ β”‚
174
- β”‚ β”‚ β”‚ (port 1234) β”‚ β”‚
175
- β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
176
- β”‚ β”‚ β”‚ β”‚
177
- β”‚ β–Ό β–Ό β”‚
178
- β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
179
- β”‚ β”‚ Claude Code β”‚ β”‚
180
- β”‚ β”‚ --model lmstudio/model-id β”‚ β”‚
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
- ### "LM Studio server is not running"
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
- 1. Open LM Studio
200
- 2. Go to the **Search** tab
201
- 3. Download a model (e.g., Llama 3, Mistral, Phi-3)
202
- 4. Wait for download to complete
203
- 5. Run `aix init` or `aix run` again
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
- ### "Claude Code is not installed"
192
+ ### No models found
206
193
 
207
194
  ```bash
208
- npm install -g @anthropic-ai/claude-code
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
- ### "Connection refused" on port 1234
202
+ ### Connection refused on port 1234
212
203
 
213
- The default port might be in use. Check LM Studio's server tab for the correct port, then update your config if needed.
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 on your machine
218
- - No data is sent to external servers
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) before submitting PRs.
216
+ Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md).
226
217
 
227
- ### Development Setup
218
+ ### Development
228
219
 
229
220
  ```bash
230
- # Clone the repository
231
- git clone https://github.com/your-username/aix.git
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
- # Run in development mode
226
+ # Development mode
238
227
  npm run dev
239
228
 
240
229
  # Run tests
241
230
  npm test
242
231
 
243
- # Build for production
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 License - see [LICENSE](LICENSE) for details.
253
+ [MIT](LICENSE) - Β© 2024 Harshil
262
254
 
263
255
  ## Support
264
256
 
265
- - [Issue Tracker](https://github.com/your-username/aix/issues) - Report bugs or request features
266
- - [Discussions](https://github.com/your-username/aix/discussions) - Ask questions and share ideas
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
- <p align="center">
271
- Made with ❀️ for developers who value privacy
272
- </p>
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.2",
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",