ops0ops0

Getting Started with Hive

Install the Hive agent and start chatting with your servers in under 2 minutes.

Quick Start

1Add Agent - Create agent in ops0 dashboard
2Install - Run one command on your server
3Chat - Start asking questions

Step 1: Add Your Server

  1. Navigate to Hive in the ops0 dashboard
  2. Click + Add Agent
  3. Name your server (e.g., "production-web-01")
  4. Copy the API key
Important
The API key is shown only once. Copy it before closing the dialog.

Step 2: Install the Agent

Run this command on your server:

curl -fsSL https://your-ops0-domain.com/api/hive/install/script | sudo bash -s -- \
  --url https://your-ops0-domain.com \
  --api-key YOUR_API_KEY

The installer will:

  • Download the Hive agent binary
  • Configure it with your API key
  • Set up systemd service for automatic startup
  • Start the agent immediately

Verify Installation

# Check if agent is running
sudo systemctl status <agent-service>

# View agent logs
sudo journalctl -u <agent-service> -f

Step 3: Start Chatting

  1. Return to the Hive dashboard
  2. Your server should show ● Online
  3. Click on your server
  4. Click AI Chat
  5. Type your first question: "Is this server healthy?"
AI CHAT - production-web-01
You:Is this server healthy?
Hive: I'll run a comprehensive health check.
✓ CPU: 23% (normal)
✓ Memory: 45% (normal)
✓ Disk: 67% (normal)
✓ Load: 0.45 (healthy)
✓ All critical services running
✓ Server is healthy. No issues detected.

System Requirements

RequirementDetails
OSLinux (Ubuntu 18.04+, CentOS 7+, Debian 9+), macOS 10.15+
Architecturex86_64 or ARM64
Memory64 MB
NetworkOutbound HTTPS (no inbound ports needed)
Network Requirements

The agent only makes outbound connections. No firewall changes or inbound ports required. Works through NAT and corporate firewalls.


Installation Options

curl -fsSL https://your-ops0-domain.com/api/hive/install/script | sudo bash -s -- \
  --url https://your-ops0-domain.com \
  --api-key YOUR_API_KEY

Custom Installation Directory

curl -fsSL https://your-ops0-domain.com/api/hive/install/script | sudo bash -s -- \
  --url https://your-ops0-domain.com \
  --api-key YOUR_API_KEY \
  --install-dir /opt/hive

Manual Installation

If you prefer to install manually:

  1. Download the binary for your platform
  2. Create the agent config file
  3. Set up the service
  4. Start the service

Managing the Agent

Service Commands

# Start agent
sudo systemctl start <agent-service>

# Stop agent
sudo systemctl stop <agent-service>

# Restart agent
sudo systemctl restart <agent-service>

# Check status
sudo systemctl status <agent-service>

# View logs
sudo journalctl -u <agent-service> -f

Uninstall

sudo systemctl stop <agent-service>
sudo systemctl disable <agent-service>
sudo rm /etc/systemd/system/<agent-service>.service
sudo rm -rf <agent-install-dir>
sudo systemctl daemon-reload

Troubleshooting

Agent Won't Connect
Check network connectivity:
curl -I https://your-ops0-domain.com/health
Agent Shows Offline
Verify the service is running:
sudo systemctl status <agent-service>
Permission Denied

The install script requires root/sudo access. Make sure you're running with sudo.

AI Chat Not Responding

Verify the agent shows "Online" in the dashboard. Try refreshing the page or sending a simple command like "show hostname".


Next Steps