First Deployment
Install the CLI and deploy your first OpsSquad.ai node
This guide walks you through installing the OpsSquad CLI, deploying your first node, and linking it to an agent.
Prerequisites
Before starting, ensure you have:
- An OpsSquad.ai account with a squad created (Account Setup)
- Your Node ID and Token from the dashboard
- A server running Linux, macOS, or Windows
- Network access to
socket.opssquad.ai:9000
Install the CLI
The fastest way to install the OpsSquad CLI is using the automated installation script:
curl -fsSL https://install.opssquad.ai/install.sh | bashThe script automatically:
- Detects your operating system and architecture
- Downloads the latest CLI version
- Installs to the appropriate location
- Adds
opssquadto your PATH
Note: For manual installation options or building from source, see the CLI Installation Guide.
Verify Installation
Confirm the CLI is installed correctly:
opssquad --versionYou should see output like:
opssquad version 1.0.0 (abc1234)Deploy Your Node
With the CLI installed, deploy a node using your credentials from the dashboard:
opssquad node install \
--node-id="your-node-id" \
--token="your-token"Replace your-node-id and your-token with the credentials you saved when creating your node in the dashboard.
What Happens During Installation
The installation process:
- Registers the node with the OpsSquad.ai platform
- Downloads the connectivity layer binary
- Creates configuration files in the appropriate locations
- Starts the node service (systemd on Linux, or background process)
Verify Your Node
Check that your node is running and connected:
opssquad node statusYou should see output indicating the node is Active and Connected:
Node Status: Active
Connection: Connected
Version: 1.0.0
Uptime: 2m 34sView Node Logs
Monitor your node's activity in real-time:
opssquad node logs --followThis shows:
- Connection events
- Task assignments
- Command executions
- Any errors or warnings
Press Ctrl+C to stop following logs.
Create and Link an Agent
Now that your node is deployed and connected, you need to create an agent and link it to your node:
1. Create an Agent in the Dashboard
- Navigate to the Agents page in the dashboard
- Click "Create Agent"
- Select your Squad from the dropdown
- Fill in the agent's name, description, and system prompt
- Click "Create Agent"
2. Link the Agent to Your Node
- On the agent detail page, locate the "Link to Node" section
- Select your deployed node from the dropdown
- Click "Link Node"
The agent is now linked to your node and ready to receive commands.
Connect via Chat
Now that your agent is linked to a node, you can interact with it:
- Open chat.opssquad.ai in your browser
- Log in with your OpsSquad.ai account
- Select your squad from the dropdown
- Select your agent
- Start chatting! Try asking:
- "What's the current CPU usage?"
- "Show me the last 10 lines of /var/log/syslog"
- "List running Docker containers"
Troubleshooting First Deployment
Node won't start
Run the validation command to identify issues:
opssquad node validateThis checks for:
- Configuration file validity
- Permission issues
- Network connectivity
- Missing dependencies
Connectivity problems
Ensure your server can reach the OpsSquad.ai platform:
curl -I socket.opssquad.ai:9000If this fails, check your firewall rules to allow outbound connections on port 9000.
Permission errors
If you installed as root, use sudo for management commands:
sudo opssquad node statusIf you installed as a regular user, do not use sudo to avoid permission conflicts.
Next Steps
Congratulations! You've deployed your first OpsSquad.ai node and linked it to an agent. Here's what to explore next:
- CLI Commands - Learn all available CLI commands for node management.
- Chat Interface - Master the AI chat interface for interacting with agents.
- Core Concepts - Understand agents, nodes, squads, and the OpsSquad.ai architecture.