Synopsis
server
Start the REST API server.serve
Flags
| Flag | Description |
|---|---|
--host <address> | Bind address (default from config) |
--port <port> | Listen port (default from config) |
-A, --no-auth | Disable authentication (dev only) |
--master | Run as distributed master node |
--redis-url <url> | Redis URL for distributed mode |
Examples
Output
Endpoints
| Endpoint | Description |
|---|---|
/health | Health check |
/health/ready | Readiness probe |
/server-info | Server information |
/swagger/* | API documentation |
/osm/api/* | API endpoints (auth required) |
/ws/{prefix}/* | Workspace files |
worker join
Join as a distributed worker.Flags
| Flag | Description |
|---|---|
--redis-url <url> | Redis URL override |
Examples
Output
worker status
Check worker pool status.Output
health
Check server or worker health.Examples
Output
Distributed Mode
Architecture
Setup
-
Start Redis:
-
Start master:
-
Start workers (on each machine):
-
Submit distributed scans:
API Endpoints (Master Mode)
| Endpoint | Description |
|---|---|
GET /osm/api/workers | List workers |
GET /osm/api/workers/:id | Worker details |
GET /osm/api/tasks | List tasks |
GET /osm/api/tasks/:id | Task details |
POST /osm/api/tasks | Submit task |
Authentication
Default Credentials
Configure inosm-settings.yaml:
Get Token
Use Token
Configuration
Server settings inosm-settings.yaml:
Docker Deployment
Single Server
Distributed (Docker Compose)
Notes
- Use
--no-authonly for development - Master mode requires Redis
- Workers auto-reconnect on connection loss
- Graceful shutdown on SIGINT/SIGTERM