OpsPilot AI — DevOps Copilot (Beta)Enterprise DevOps Copilot — policy-driven, autonomous infrastructure automation with BYOK support
Submit infrastructure tasks in plain English. The agent plans, validates, simulates, and either executes or routes through an approval workflow — all from inside VS Code. Requirements
Step 1 — Install Ollama (free, no API key needed)Skip if you have an Anthropic or Azure OpenAI key. macOS
Windows — Download from ollama.com/download, then open PowerShell:
Linux
Verify:
Step 2 — Create your
|
| Username | Password | Role |
|---|---|---|
admin@opspilot.dev |
admin123 |
Admin — run + approve |
dev@opspilot.dev |
dev123 |
Developer — run only |
Step 6 — Run Test Tasks
Type these tasks in the extension's task input box.
Terraform — Azure VM
Create an Azure VM with a VNet and subnets for production
Expected: status: files_written — LLM generates modular Terraform structure.
Next steps in the extension:
- Click Validate Plan → runs
terraform init + plan - Review plan output inline
- Click Apply to execute
Terraform — AWS
Create an S3 bucket with versioning and lifecycle policies on AWS
Terraform — GCP
Set up a GKE cluster with a custom VPC on GCP
Kubernetes — Get pods
Get all pods in the default namespace
You can use any namespace — just mention it in the task. OpsPilot extracts it automatically. No config change needed.
Kubernetes — Scale (dev, immediate)
Scale the nginx deployment to 5 replicas in opspilot-test namespace
Kubernetes — Scale (prod, approval required)
Scale the nginx deployment to 5 replicas in opspilot-test namespace on production
Expected: status: pending_approval — approval panel appears in sidebar.
Helm — Install
Install the redis Helm chart as release opspilot-redis in the opspilot-test namespace
Helm — List releases
List all Helm releases in the opspilot-test namespace
Helm — Rollback (prod, approval required)
Rollback the opspilot-redis release to revision 1 in opspilot-test namespace on production
Dry run (simulate only, no changes)
Select Simulate mode in the extension before clicking Run Task.
Expected: status: simulated — nothing executed.
Approval Matrix
| Environment | Risk | Approvals Required |
|---|---|---|
dev |
LOW | 0 — executes immediately |
dev |
MEDIUM+ | 1 approval |
qa |
Any | 1 approval |
prod |
Any | 1 approval |
prod |
HIGH (destroy/rollback) | 2 approvals |
Troubleshooting
| Problem | Fix |
|---|---|
| Extension shows "API unreachable" | Set API URL to http://localhost:8000 (no trailing slash). Run curl http://localhost:8000/health to verify |
401 Unauthorized |
Re-run OpsPilot: Set Password — JWT expires after 60 minutes |
status: failed with LLM error |
Check API key in .env, restart: docker compose -f docker-compose.hub.yml restart api |
| Ollama not reachable | Use http://host.docker.internal:11434 not localhost for OLLAMA_BASE_URL |
| kubectl / helm not found | Install on your host machine — OpsPilot calls them via subprocess |
| Panel blank or stale | Cmd+Shift+P → Developer: Reload Window |
Beta Resources
- Docker Hub: hub.docker.com/r/dskystar/opspilot-ai
- Full Setup + Testing Guide: gist.github.com/Iam-anirudhdeshmukh/34af785c93aa730866cb16560fd77898
- Publisher: marketplace.visualstudio.com/publishers/anirudhdeshmukh