Quick Start Guide
Get your first application deployed in under 5 minutes with OpsAgent.
That's it! OpsAgent automatically detects your language, framework, dependencies, and configures everything for optimal deployment.
Installation
Prerequisites
- Node.js 18+ or npm 8+
- A supported cloud account (AWS, GCP, or Azure)
- OpsAgent account (free tier available)
Install via npm
Verify Installation
Login to OpsAgent
Configuration
When you run ops init, OpsAgent's AI analyzes your codebase and generates an opsagent.ymlconfiguration file.
AI-Detected Configuration
What Gets Detected
| Feature | Detection Method |
|---|---|
| Language | package.json, requirements.txt, go.mod |
| Framework | Dependency analysis (Next.js, Express, Django, etc.) |
| Services | Database drivers, cache clients, API integrations |
| Resources | Dependency count, framework requirements |
Deploying Your Application
Basic Deploy
Deploy to Specific Environment
Dry Run (Preview Changes)
Deployment Strategies
💡 Pro Tip: Use
--dry-run to preview what OpsAgent will deploy before making changes.Monitoring & Observability
OpsAgent automatically configures monitoring for every deployment:
Default Alert Rules
- CPU Usage > 80% - Triggers scale-up or alert
- Memory Usage > 85% - Potential memory leak warning
- Error Rate > 1% - Application health issue
- P99 Latency > 500ms - Performance degradation
View Logs
View Metrics
Security
Automatic Security Features
- SSL/TLS: Automatic certificate provisioning
- Secrets: Encrypted storage, never in plain text
- Scanning: Vulnerability detection in dependencies
- Compliance: SOC2, HIPAA-ready configurations
Managing Secrets
API Reference
OpsAgent provides a REST API for programmatic access to all features.
Authentication
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/projects | List all projects |
| POST | /v1/projects | Create new project |
| POST | /v1/projects/:id/deploy | Trigger deployment |
| GET | /v1/deployments | List deployments |
| GET | /v1/metrics | Get metrics |
| GET | /v1/logs | Stream logs |