Documentation
API Reference
HTTP API endpoints for service management and AI agent integration.
A2A Protocol
Agent-to-Agent protocol specification for AI agent communication.
Quick Start
# Install ServiceHub CLI
brew install servicehub/tap/servicehub
# Start the server
servicehub serve --port 8080
# Register a service
servicehub register --name my-service --command "/path/to/command"
# List services
servicehub list
# Start a service
servicehub start my-service
# Stop a service
servicehub stop my-serviceA2A Protocol
ServiceHub supports the Agent-to-Agent (A2A) protocol for seamless AI agent integration.
# Agent Discovery
GET /.well-known/agent.json
# Response
{
"name": "ServiceHub",
"version": "1.0.0",
"capabilities": ["service_management", "process_control"],
"endpoints": {
"services": "http://localhost:8080/api/services",
"logs": "http://localhost:8080/api/logs"
}
}