Quickstart Guide
This guide will help you get Sentinel AI running quickly. For detailed installation instructions, see the Installation page.Prerequisites
Before you begin, ensure you have:- Python 3.10+ installed
- Node.js 18+ and npm installed
- API keys for:
- OpenAI (for GPT-4 models)
- Pinecone (for vector storage)
- Cohere (for reranking)
- LlamaCloud (optional, for document parsing)
You’ll need access to a Linux server via SSH. For testing, you can use localhost with SSH enabled.
Installation
Running Sentinel AI
Start the Backend Server
From the project root directory:The API server will start on
http://localhost:8000. You should see:The knowledge base will initialize in the background on first startup. This may take a few moments.
Start the Frontend Dashboard
In a new terminal, navigate to the frontend directory:Open your browser to
http://localhost:3000 to access the dashboard.Testing the Agent
To test Sentinel AI’s capabilities, you can simulate a service failure:The agent checks services every 30 seconds by default. You can adjust this in
src/core/config.py by changing MONITOR_INTERVAL.API Endpoints
Sentinel AI exposes the following key endpoints:| Endpoint | Method | Description |
|---|---|---|
/ | GET | API health check and status |
/status | GET | Current status of all monitored services |
/agent/run | POST | Start the agent analysis cycle |
/agent/stop | POST | Stop the running agent |
/agent/approve | POST | Approve or reject pending actions |
/agent/state | GET | Get current agent state |
/services | GET/POST/DELETE | Manage monitored services |
/chat | POST | Chat with the agent about infrastructure |
/ws/logs | WebSocket | Real-time agent logs stream |
Using the Chat Feature
You can query the agent’s knowledge base through the chat interface:Managing Services
By default, Sentinel AI monitors:- nginx: Web server
- postgresql: Database server
- ssh: System access
Add a Custom Service
Remove a Service
Next Steps
Installation Guide
Learn about detailed installation, configuration, and deployment options.
Configuration
Customize monitoring intervals, retry limits, and service definitions.
API Reference
Explore all available API endpoints and WebSocket events.
Agent Workflow
Deep dive into the agent’s decision graph and RAG pipeline.
Troubleshooting
Common Issues
Knowledge base not initializing:- Verify Pinecone API key is valid
- Check that the index
sentinel-ai-indexexists in your Pinecone project - Wait 30-60 seconds for initial vector store connection
- Verify SSH credentials in
.env - Ensure the target server has SSH enabled
- Test SSH connection manually:
ssh user@host -p port
- Ensure backend is running on port 8000
- Check CORS settings in
src/api/server.py - Verify no firewall is blocking localhost connections
- Check service names match your system (e.g.,
nginxvsnginx.service) - Verify check commands work manually via SSH
- Review agent logs in the dashboard terminal