opspilot-ai 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
- {opspilot_ai-0.1.1.dist-info → opspilot_ai-0.1.2.dist-info}/METADATA +154 -44
- {opspilot_ai-0.1.1.dist-info → opspilot_ai-0.1.2.dist-info}/RECORD +6 -6
- {opspilot_ai-0.1.1.dist-info → opspilot_ai-0.1.2.dist-info}/WHEEL +0 -0
- {opspilot_ai-0.1.1.dist-info → opspilot_ai-0.1.2.dist-info}/entry_points.txt +0 -0
- {opspilot_ai-0.1.1.dist-info → opspilot_ai-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {opspilot_ai-0.1.1.dist-info → opspilot_ai-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opspilot-ai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: AI-powered production incident analysis tool using multi-agent systems
|
|
5
5
|
Home-page: https://github.com/choudharikiranv15/OpsPilot-AI
|
|
6
6
|
Author: Kiran Vijaykumar Choudhari
|
|
@@ -87,86 +87,196 @@ OpsPilot-AI uses a **multi-agent AI architecture** to understand your project's
|
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
90
|
-
## 🚀 Quick Start
|
|
90
|
+
## 🚀 Quick Start (2 Minutes Setup)
|
|
91
91
|
|
|
92
|
-
###
|
|
92
|
+
### Step 1: Install OpsPilot-AI
|
|
93
93
|
|
|
94
|
-
- Python 3.8 or higher
|
|
95
|
-
- At least ONE of the following LLM providers:
|
|
96
|
-
- [Ollama](https://ollama.ai/) (local, free, recommended)
|
|
97
|
-
- Google Gemini API key (free tier)
|
|
98
|
-
- OpenRouter API key (free models available)
|
|
99
|
-
- HuggingFace API token (free tier)
|
|
100
|
-
|
|
101
|
-
### Installation
|
|
102
|
-
|
|
103
|
-
**From PyPI (Recommended):**
|
|
104
94
|
```bash
|
|
105
|
-
# Basic installation
|
|
106
95
|
pip install opspilot-ai
|
|
96
|
+
```
|
|
107
97
|
|
|
108
|
-
|
|
109
|
-
pip install opspilot-ai[redis]
|
|
98
|
+
### Step 2: Setup LLM (Choose ONE Option)
|
|
110
99
|
|
|
111
|
-
|
|
112
|
-
pip install opspilot-ai[all]
|
|
113
|
-
```
|
|
100
|
+
OpsPilot-AI needs an LLM to analyze your code. Choose **one** of these options:
|
|
114
101
|
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
# Clone repository
|
|
118
|
-
git clone https://github.com/choudharikiranv15/OpsPilot-AI.git
|
|
119
|
-
cd opspilot
|
|
102
|
+
---
|
|
120
103
|
|
|
121
|
-
|
|
122
|
-
pip install -e ".[all]"
|
|
123
|
-
```
|
|
104
|
+
#### Option A: Ollama (Recommended - Free & Private)
|
|
124
105
|
|
|
125
|
-
|
|
106
|
+
Ollama runs locally on your machine. Your code never leaves your computer.
|
|
126
107
|
|
|
127
|
-
**
|
|
108
|
+
**For macOS/Linux:**
|
|
128
109
|
```bash
|
|
129
110
|
# Install Ollama
|
|
130
111
|
curl -fsSL https://ollama.ai/install.sh | sh
|
|
131
112
|
|
|
132
|
-
# Pull
|
|
113
|
+
# Pull the AI model (one-time download, ~4GB)
|
|
133
114
|
ollama pull llama3
|
|
115
|
+
|
|
116
|
+
# Verify it's running
|
|
117
|
+
ollama list
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**For Windows:**
|
|
121
|
+
1. Download Ollama from [ollama.ai/download](https://ollama.ai/download)
|
|
122
|
+
2. Install and run the application
|
|
123
|
+
3. Open terminal and run:
|
|
124
|
+
```bash
|
|
125
|
+
ollama pull llama3
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
#### Option B: Cloud API (No Local Install Required)
|
|
131
|
+
|
|
132
|
+
Use cloud-based LLMs with free tiers. Set **one** of these environment variables:
|
|
133
|
+
|
|
134
|
+
**Google Gemini (Recommended Cloud Option):**
|
|
135
|
+
```bash
|
|
136
|
+
# Get free API key: https://makersuite.google.com/app/apikey
|
|
137
|
+
export GOOGLE_API_KEY="your-api-key-here"
|
|
134
138
|
```
|
|
135
139
|
|
|
136
|
-
**
|
|
140
|
+
**OpenRouter (100+ Models Available):**
|
|
137
141
|
```bash
|
|
138
|
-
#
|
|
139
|
-
|
|
142
|
+
# Get free API key: https://openrouter.ai/keys
|
|
143
|
+
export OPENROUTER_API_KEY="your-api-key-here"
|
|
144
|
+
```
|
|
140
145
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
#
|
|
144
|
-
|
|
146
|
+
**HuggingFace:**
|
|
147
|
+
```bash
|
|
148
|
+
# Get free token: https://huggingface.co/settings/tokens
|
|
149
|
+
export HUGGINGFACE_API_KEY="your-api-key-here"
|
|
145
150
|
```
|
|
146
151
|
|
|
147
|
-
|
|
152
|
+
**Windows Users (set environment variable):**
|
|
153
|
+
```cmd
|
|
154
|
+
set GOOGLE_API_KEY=your-api-key-here
|
|
155
|
+
```
|
|
148
156
|
|
|
149
|
-
|
|
157
|
+
---
|
|
150
158
|
|
|
151
|
-
|
|
159
|
+
### Step 3: Analyze Your Project
|
|
152
160
|
|
|
153
161
|
```bash
|
|
154
|
-
#
|
|
162
|
+
# Navigate to your project
|
|
163
|
+
cd /path/to/your/project
|
|
164
|
+
|
|
165
|
+
# Run analysis
|
|
155
166
|
opspilot analyze
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
That's it! OpsPilot-AI will analyze your project and provide diagnosis.
|
|
170
|
+
|
|
171
|
+
---
|
|
156
172
|
|
|
173
|
+
## 📖 Usage Examples
|
|
174
|
+
|
|
175
|
+
### Basic Commands
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Quick analysis (fastest)
|
|
179
|
+
opspilot analyze --mode quick
|
|
180
|
+
|
|
181
|
+
# Deep analysis (thorough, recommended)
|
|
182
|
+
opspilot analyze --mode deep
|
|
183
|
+
|
|
184
|
+
# Verbose output (see what's happening)
|
|
185
|
+
opspilot analyze --verbose
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Advanced Commands
|
|
189
|
+
|
|
190
|
+
```bash
|
|
157
191
|
# Analyze with production logs from S3
|
|
158
192
|
opspilot analyze --log-source s3://my-bucket/logs/app.log
|
|
159
193
|
|
|
160
|
-
# Analyze with deployment correlation
|
|
194
|
+
# Analyze with deployment correlation (links errors to git commits)
|
|
161
195
|
opspilot analyze --deployment-analysis --since-hours 48
|
|
162
196
|
|
|
163
|
-
# JSON output for automation
|
|
197
|
+
# JSON output for CI/CD automation
|
|
164
198
|
opspilot analyze --json --mode quick
|
|
165
199
|
|
|
166
|
-
#
|
|
200
|
+
# Analyze specific log file
|
|
201
|
+
opspilot analyze --log-source /var/log/myapp/error.log
|
|
202
|
+
|
|
203
|
+
# Full debugging output
|
|
167
204
|
opspilot analyze --verbose --debug
|
|
168
205
|
```
|
|
169
206
|
|
|
207
|
+
### Analysis Modes
|
|
208
|
+
|
|
209
|
+
| Mode | Speed | LLM Calls | Use Case |
|
|
210
|
+
|------|-------|-----------|----------|
|
|
211
|
+
| `quick` | Fast | 1 | Quick check, CI/CD pipelines |
|
|
212
|
+
| `deep` | Thorough | Up to 4 | Detailed incident analysis |
|
|
213
|
+
| `explain` | Instant | 0 | Context gathering only (no LLM) |
|
|
214
|
+
|
|
215
|
+
### Installation Options
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
# Basic (just the CLI)
|
|
219
|
+
pip install opspilot-ai
|
|
220
|
+
|
|
221
|
+
# With Redis support (remembers past incidents)
|
|
222
|
+
pip install "opspilot-ai[redis]"
|
|
223
|
+
|
|
224
|
+
# With AWS support (S3, CloudWatch logs)
|
|
225
|
+
pip install "opspilot-ai[aws]"
|
|
226
|
+
|
|
227
|
+
# With Kubernetes support (K8s pod logs)
|
|
228
|
+
pip install "opspilot-ai[k8s]"
|
|
229
|
+
|
|
230
|
+
# Everything included
|
|
231
|
+
pip install "opspilot-ai[all]"
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## 🔧 Troubleshooting
|
|
237
|
+
|
|
238
|
+
### "No LLM providers available"
|
|
239
|
+
|
|
240
|
+
You need to set up an LLM. Choose one:
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
# Option 1: Install Ollama (recommended)
|
|
244
|
+
curl -fsSL https://ollama.ai/install.sh | sh
|
|
245
|
+
ollama pull llama3
|
|
246
|
+
|
|
247
|
+
# Option 2: Set a cloud API key
|
|
248
|
+
export GOOGLE_API_KEY="your-key"
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### "Ollama connection refused"
|
|
252
|
+
|
|
253
|
+
Make sure Ollama is running:
|
|
254
|
+
```bash
|
|
255
|
+
# Start Ollama service
|
|
256
|
+
ollama serve
|
|
257
|
+
|
|
258
|
+
# In another terminal, verify it works
|
|
259
|
+
ollama list
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### "No logs found"
|
|
263
|
+
|
|
264
|
+
OpsPilot-AI looks for logs in these locations:
|
|
265
|
+
- `./logs/` directory
|
|
266
|
+
- `*.log` files in project root
|
|
267
|
+
- Files specified with `--log-source`
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
# Specify log file directly
|
|
271
|
+
opspilot analyze --log-source ./my-app/error.log
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### "Context collected: 0 env vars"
|
|
275
|
+
|
|
276
|
+
Make sure you have a `.env` file in your project directory, or environment variables set.
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
170
280
|
**Example Output:**
|
|
171
281
|
|
|
172
282
|
```
|
|
@@ -27,9 +27,9 @@ opspilot/tools/pattern_analysis.py,sha256=e6N48iMiYWwhmH_3Bbdqhr49n19jPRPrwBWv-9
|
|
|
27
27
|
opspilot/utils/__init__.py,sha256=jDlOFqPTvm9jo4RsaLBrSmanD3QYogfnIr30hTiXY7Y,36
|
|
28
28
|
opspilot/utils/llm.py,sha256=RsiBVw7iemZNxtJktUBCPpVY-E_9peImf6Gm6P81WSE,544
|
|
29
29
|
opspilot/utils/llm_providers.py,sha256=q4MkGK03Mn_TcttJQaNfoMhSgVpBn-dMLm2AmHXt5Sc,15623
|
|
30
|
-
opspilot_ai-0.1.
|
|
31
|
-
opspilot_ai-0.1.
|
|
32
|
-
opspilot_ai-0.1.
|
|
33
|
-
opspilot_ai-0.1.
|
|
34
|
-
opspilot_ai-0.1.
|
|
35
|
-
opspilot_ai-0.1.
|
|
30
|
+
opspilot_ai-0.1.2.dist-info/licenses/LICENSE,sha256=HEWOzX-yJ9Pctxca1nGhcPAg8Htk1PuJPPOPqcfHUe0,1083
|
|
31
|
+
opspilot_ai-0.1.2.dist-info/METADATA,sha256=CMzvRNJgDHWcjrtIMzIwnHrnNXDdLpbweDhm_AJC2mM,17353
|
|
32
|
+
opspilot_ai-0.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
33
|
+
opspilot_ai-0.1.2.dist-info/entry_points.txt,sha256=2nttMUdFdShzdN0EkLNgtMNbWDWdO2hHyDzdiCWZolo,46
|
|
34
|
+
opspilot_ai-0.1.2.dist-info/top_level.txt,sha256=u_uSy6eFmJW-9xWnxieGZn5LN_xjXOPMhlKu8BEscdA,9
|
|
35
|
+
opspilot_ai-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|