Documentation
¶
Overview ¶
Command admin runs the admin service on its own, with the admin SPA embedded when built with `-tags adminui`.
`admin -init -config <file>` seeds a development profile (self-signed localhost certificate plus a minimal config) and exits; see run.sh.
It reads the same configuration keys as a product server so an existing server configuration file can be reused: app.*, security.*, admin_server.*, logging.max_entries, metrics.max_entries, and controller.* for the optional NATS messenger. With controller.embedded = true it also runs the NATS controller in-process (operator JWT and system account come from the admin server), which is what feeds the Services, Logs, and Store metrics pages in a development profile. With queue_server.port set it also runs the job queue relay service, which feeds the Queue page.
With a controller configured, the admin API is also served over NATS as admin_service in every account (admin_server.nats_api, default true), and the queue service as queue_server (queue_server.nats_api, default true); see package natsapi.
The AI assistant (package ai) is hosted at /api/v1/ai and /mcp unless ai.enabled = false; ai.effort, ai.allow_writes, and ai.max_turns tune it and the model credentials come from the API token vault (docs/AI.md).