Introducing a new way to review your PRs.

Read the announcement

semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools.

View on GitHub

21 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Semaphore knowledge base

Semaphore is a Go-based automation server with a Vue web console and CLI. It manages project-scoped automation content, launches Ansible, Terraform, agent, and runner-backed work, and exposes HTTP APIs for administration and execution.

The API, services, persistence layer, and web console are the main runtime parts. Persistent state is represented by the db interfaces and SQL implementation/migrations; project resources and task records are stored there, while executors prepare transient working directories and stream task output.

flowchart LR
  User[Users and CLI] --> Web[Vue web console]
  User --> API[Go HTTP API]
  Web --> API
  API --> Auth[Identity and access control]
  API --> Project[Project resource services]
  API --> Tasks[Task orchestration]
  Project --> DB[(SQL database)]
  Auth --> DB
  Tasks --> DB
  Tasks --> Local[Local executor]
  Tasks --> Agent[Agent execution]
  Tasks --> Runner[Runner job pools]
  Runner --> External[External runners]
  Local --> Content[Repositories and automation content]
  Agent --> Content
  Content --> DB
  Tasks --> Events[Logs, alerts, and events]
  Events --> Web

Glossary

  • Inventory MCP: an inventory-associated MCP configuration used by supported execution, API, and UI flows.
  • Agent task: a task type that launches an agent application, records structured output, and presents agent-specific log records.
  • Runner: an external execution worker registered with the server and managed through runner APIs and job pools.
  • Template: a project-scoped automation definition used to construct executable tasks.
  • Task pool: the orchestration component that queues, dispatches, tracks, and cancels task execution.

Codebase-wide invariants

  • Project-scoped resource operations pass through the API router and project handlers rather than directly from the UI (api/router.go, api/projects/**).
  • Persisted model changes require compatible SQL storage and migration coverage (db/**, db/sql/**, db/sql/migrations/**).
  • Task lifecycle state and output are persisted so API and UI clients can query work independently of an executor process (db/Task.go, services/tasks/**).
  • Backup and restore serialize portable project resources through the project backup service (services/…/backup.go).
  • Web-console resource workflows consume API-facing models and display asynchronous task records rather than owning execution state (web/…/TaskLogView.vue, web/src/views/project/**).

Routing table