opspilot-ai 0.1.0__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.0.dist-info → opspilot_ai-0.1.2.dist-info}/METADATA +180 -53
- {opspilot_ai-0.1.0.dist-info → opspilot_ai-0.1.2.dist-info}/RECORD +6 -6
- {opspilot_ai-0.1.0.dist-info → opspilot_ai-0.1.2.dist-info}/WHEEL +0 -0
- {opspilot_ai-0.1.0.dist-info → opspilot_ai-0.1.2.dist-info}/entry_points.txt +0 -0
- {opspilot_ai-0.1.0.dist-info → opspilot_ai-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {opspilot_ai-0.1.0.dist-info → opspilot_ai-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
Home-page: https://github.com/choudharikiranv15/
|
|
5
|
+
Home-page: https://github.com/choudharikiranv15/OpsPilot-AI
|
|
6
6
|
Author: Kiran Vijaykumar Choudhari
|
|
7
7
|
Author-email: Kiran Vijaykumar Choudhari <choudharikiranv2003@gmail.com>
|
|
8
8
|
License: MIT
|
|
9
|
-
Project-URL: Homepage, https://github.com/choudharikiranv15/
|
|
10
|
-
Project-URL: Documentation, https://github.com/choudharikiranv15/
|
|
11
|
-
Project-URL: Repository, https://github.com/choudharikiranv15/
|
|
12
|
-
Project-URL: Bug Tracker, https://github.com/choudharikiranv15/
|
|
13
|
-
Project-URL: Changelog, https://github.com/choudharikiranv15/
|
|
9
|
+
Project-URL: Homepage, https://github.com/choudharikiranv15/OpsPilot-AI
|
|
10
|
+
Project-URL: Documentation, https://github.com/choudharikiranv15/OpsPilot-AI#readme
|
|
11
|
+
Project-URL: Repository, https://github.com/choudharikiranv15/OpsPilot-AI
|
|
12
|
+
Project-URL: Bug Tracker, https://github.com/choudharikiranv15/OpsPilot-AI/issues
|
|
13
|
+
Project-URL: Changelog, https://github.com/choudharikiranv15/OpsPilot-AI/releases
|
|
14
14
|
Keywords: ai,mlops,devops,incident-analysis,sre,production-monitoring,agentic-ai,multi-agent,llm,observability,incident-response,automation
|
|
15
15
|
Classifier: Development Status :: 3 - Alpha
|
|
16
16
|
Classifier: Intended Audience :: Developers
|
|
@@ -57,17 +57,21 @@ Dynamic: home-page
|
|
|
57
57
|
Dynamic: license-file
|
|
58
58
|
Dynamic: requires-python
|
|
59
59
|
|
|
60
|
-
# OpsPilot 🤖
|
|
60
|
+
# OpsPilot-AI 🤖
|
|
61
|
+
|
|
62
|
+
[](https://pypi.org/project/opspilot-ai/)
|
|
63
|
+
[](https://www.python.org/downloads/)
|
|
64
|
+
[](https://opensource.org/licenses/MIT)
|
|
61
65
|
|
|
62
66
|
> An intelligent agentic AI CLI tool for automated incident analysis and error resolution
|
|
63
67
|
|
|
64
|
-
OpsPilot is your AI-powered Site Reliability Engineer that analyzes your projects, identifies runtime issues, and suggests safe fixes—all through a simple command-line interface.
|
|
68
|
+
OpsPilot-AI is your AI-powered Site Reliability Engineer that analyzes your projects, identifies runtime issues, and suggests safe fixes—all through a simple command-line interface.
|
|
65
69
|
|
|
66
70
|
---
|
|
67
71
|
|
|
68
|
-
## 🎯 What is OpsPilot?
|
|
72
|
+
## 🎯 What is OpsPilot-AI?
|
|
69
73
|
|
|
70
|
-
OpsPilot uses a **multi-agent AI architecture** to understand your project's context, form hypotheses about runtime issues, and provide evidence-based fix recommendations. Think of it as having an experienced SRE on your team, available 24/7.
|
|
74
|
+
OpsPilot-AI uses a **multi-agent AI architecture** to understand your project's context, form hypotheses about runtime issues, and provide evidence-based fix recommendations. Think of it as having an experienced SRE on your team, available 24/7.
|
|
71
75
|
|
|
72
76
|
### Key Capabilities
|
|
73
77
|
|
|
@@ -83,86 +87,203 @@ OpsPilot uses a **multi-agent AI architecture** to understand your project's con
|
|
|
83
87
|
|
|
84
88
|
---
|
|
85
89
|
|
|
86
|
-
## 🚀 Quick Start
|
|
87
|
-
|
|
88
|
-
### Prerequisites
|
|
89
|
-
|
|
90
|
-
- Python 3.8 or higher
|
|
91
|
-
- At least ONE of the following LLM providers:
|
|
92
|
-
- [Ollama](https://ollama.ai/) (local, free, recommended)
|
|
93
|
-
- Google Gemini API key (free tier)
|
|
94
|
-
- OpenRouter API key (free models available)
|
|
95
|
-
- HuggingFace API token (free tier)
|
|
90
|
+
## 🚀 Quick Start (2 Minutes Setup)
|
|
96
91
|
|
|
97
|
-
###
|
|
92
|
+
### Step 1: Install OpsPilot-AI
|
|
98
93
|
|
|
99
94
|
```bash
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
cd opspilot
|
|
95
|
+
pip install opspilot-ai
|
|
96
|
+
```
|
|
103
97
|
|
|
104
|
-
|
|
105
|
-
pip install -e .
|
|
98
|
+
### Step 2: Setup LLM (Choose ONE Option)
|
|
106
99
|
|
|
107
|
-
|
|
108
|
-
pip install -e ".[redis]"
|
|
100
|
+
OpsPilot-AI needs an LLM to analyze your code. Choose **one** of these options:
|
|
109
101
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
#### Option A: Ollama (Recommended - Free & Private)
|
|
113
105
|
|
|
114
|
-
|
|
106
|
+
Ollama runs locally on your machine. Your code never leaves your computer.
|
|
115
107
|
|
|
116
|
-
**
|
|
108
|
+
**For macOS/Linux:**
|
|
117
109
|
```bash
|
|
118
110
|
# Install Ollama
|
|
119
111
|
curl -fsSL https://ollama.ai/install.sh | sh
|
|
120
112
|
|
|
121
|
-
# Pull
|
|
113
|
+
# Pull the AI model (one-time download, ~4GB)
|
|
122
114
|
ollama pull llama3
|
|
115
|
+
|
|
116
|
+
# Verify it's running
|
|
117
|
+
ollama list
|
|
123
118
|
```
|
|
124
119
|
|
|
125
|
-
**
|
|
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:
|
|
126
124
|
```bash
|
|
127
|
-
|
|
128
|
-
|
|
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:
|
|
129
133
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
#
|
|
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):**
|
|
141
|
+
```bash
|
|
142
|
+
# Get free API key: https://openrouter.ai/keys
|
|
143
|
+
export OPENROUTER_API_KEY="your-api-key-here"
|
|
144
|
+
```
|
|
137
145
|
|
|
138
|
-
|
|
146
|
+
**HuggingFace:**
|
|
147
|
+
```bash
|
|
148
|
+
# Get free token: https://huggingface.co/settings/tokens
|
|
149
|
+
export HUGGINGFACE_API_KEY="your-api-key-here"
|
|
150
|
+
```
|
|
139
151
|
|
|
140
|
-
|
|
152
|
+
**Windows Users (set environment variable):**
|
|
153
|
+
```cmd
|
|
154
|
+
set GOOGLE_API_KEY=your-api-key-here
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### Step 3: Analyze Your Project
|
|
141
160
|
|
|
142
161
|
```bash
|
|
143
|
-
#
|
|
162
|
+
# Navigate to your project
|
|
163
|
+
cd /path/to/your/project
|
|
164
|
+
|
|
165
|
+
# Run analysis
|
|
144
166
|
opspilot analyze
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
That's it! OpsPilot-AI will analyze your project and provide diagnosis.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 📖 Usage Examples
|
|
145
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
|
|
146
191
|
# Analyze with production logs from S3
|
|
147
192
|
opspilot analyze --log-source s3://my-bucket/logs/app.log
|
|
148
193
|
|
|
149
|
-
# Analyze with deployment correlation
|
|
194
|
+
# Analyze with deployment correlation (links errors to git commits)
|
|
150
195
|
opspilot analyze --deployment-analysis --since-hours 48
|
|
151
196
|
|
|
152
|
-
# JSON output for automation
|
|
197
|
+
# JSON output for CI/CD automation
|
|
153
198
|
opspilot analyze --json --mode quick
|
|
154
199
|
|
|
155
|
-
#
|
|
200
|
+
# Analyze specific log file
|
|
201
|
+
opspilot analyze --log-source /var/log/myapp/error.log
|
|
202
|
+
|
|
203
|
+
# Full debugging output
|
|
156
204
|
opspilot analyze --verbose --debug
|
|
157
205
|
```
|
|
158
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
|
+
|
|
159
280
|
**Example Output:**
|
|
160
281
|
|
|
161
282
|
```
|
|
162
283
|
Similar issues detected from past runs:
|
|
163
284
|
- Redis connection issue caused by network or Redis server downtime (confidence 0.8)
|
|
164
285
|
|
|
165
|
-
OpsPilot initialized
|
|
286
|
+
OpsPilot-AI initialized
|
|
166
287
|
Project detected: /your/project
|
|
167
288
|
|
|
168
289
|
Planner Agent reasoning...
|
|
@@ -200,7 +321,7 @@ Enable connection pooling and reasonable timeouts to improve reliability.
|
|
|
200
321
|
|
|
201
322
|
## 🏗️ Architecture
|
|
202
323
|
|
|
203
|
-
OpsPilot implements a **multi-agent agentic architecture** with four specialized agents:
|
|
324
|
+
OpsPilot-AI implements a **multi-agent agentic architecture** with four specialized agents:
|
|
204
325
|
|
|
205
326
|
1. **Planner Agent** - Analyzes project context and forms hypotheses about root causes
|
|
206
327
|
2. **Verifier Agent** - Collects evidence and validates hypotheses with confidence scoring
|
|
@@ -225,7 +346,7 @@ See [ARCHITECTURE.md](ARCHITECTURE.md) for detailed design documentation.
|
|
|
225
346
|
## 🧩 How It Works
|
|
226
347
|
|
|
227
348
|
### 1. Context Collection
|
|
228
|
-
OpsPilot gathers information from multiple sources:
|
|
349
|
+
OpsPilot-AI gathers information from multiple sources:
|
|
229
350
|
- **Logs**: Recent error logs and exceptions
|
|
230
351
|
- **Environment**: Environment variables and configurations
|
|
231
352
|
- **Dependencies**: Project dependencies (requirements.txt, package.json)
|
|
@@ -254,7 +375,7 @@ If confidence ≥ 0.6, the Fixer agent:
|
|
|
254
375
|
- **Never auto-applies changes** (dry-run only for safety)
|
|
255
376
|
|
|
256
377
|
### 5. Learning from History
|
|
257
|
-
OpsPilot maintains Redis-based memory of past issues:
|
|
378
|
+
OpsPilot-AI maintains Redis-based memory of past issues:
|
|
258
379
|
- Stores hypotheses, confidence scores, and evidence with automatic TTL
|
|
259
380
|
- User-isolated storage using project path hashing
|
|
260
381
|
- Detects similar issues in future runs with sub-second lookups
|
|
@@ -406,3 +527,9 @@ For questions or feedback, please open an issue on GitHub.
|
|
|
406
527
|
---
|
|
407
528
|
|
|
408
529
|
**Built with ❤️ using agentic AI principles**
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
## 📦 PyPI
|
|
534
|
+
|
|
535
|
+
This package is available on PyPI: [opspilot-ai](https://pypi.org/project/opspilot-ai/)
|
|
@@ -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
|