Skip to content
openlinkosPublic

About

Status pages and closed-loop alerting (Feishu, phone escalation) with a REST API and a built-in MCP server

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Beacon · 烽火

Monitoring, a bastion and a password vault in one self-hosted service, for people and the AI agents they delegate to.

CI Release Licence: Apache-2.0

English | 简体中文 · Documentation: beacon.openlinkos.com

Beacon is three products on one identity and one record:

  • Monitoring and alerts, held to Uptime Kuma: monitors of every common kind, checked from several places at once, with heartbeat bars, uptime and response-time history, notification channels, status pages and maintenance windows.
  • A bastion for your machines, held to JumpServer: machines in groups, access rules, a web terminal with tabs and a file manager, live sessions you can watch and end, command records, file transfers and batch jobs, with every session recorded.
  • A password vault, held to Vaultwarden: logins, cards, identities, notes, SSH keys and API credentials in personal vaults and shared collections, with TOTP codes, a generator, Send links, import, export and health reports.

Someone used to one of them should miss nothing they use every day, and gets what none of them has: AI agents as first-class users. An outage wakes your agent (Claude Code, Codex, or anything that speaks MCP or HTTP) with the evidence in one call; the agent reaches the machine through Beacon with its own ssh or Beacon's tools, without ever holding a key; it can use a vault secret in a request without seeing it; and people see, replay and can stop everything it did. An agent never does more than the person it acts for.

Status: early (0.3, release candidates). It runs the makers' own servers. Until 1.0 the configuration may change between minor versions; the changelog says what to do when it does.

Monitoring and alerts

  • Monitors of every common kind: HTTP(s) with status codes, keywords and JSON queries, TCP ports, ping, DNS records, push (heartbeat) monitors, certificate and domain expiry, PostgreSQL, MySQL, MongoDB, Redis, MQTT, SMTP, gRPC health and Docker containers, container registries and Git, and groups of monitors. Each has its own interval, retries, retry interval, reminders, tags, notification channels, pause and upside-down mode.
  • Checked from where your users are. A probe of under 20 MB on any small machine checks from its location and says why a check failed: DNS, connection, TLS, timeout, status code, keyword. A monitor is down only when several locations agree, so one location's bad network wakes nobody.
  • A console in Uptime Kuma's shape: the monitor list with heartbeat bars and 24-hour uptime, and beside it the selected monitor's response, uptime over 24 hours, 30 days and a year, a response-time chart per location, each location's state and the events; one form for every type; clone, bulk pause and resume.
  • Notification channels: webhook (signed), Slack, Discord, Telegram, Microsoft Teams, email, Feishu, DingTalk, WeCom, Pushover, Bark, ntfy, Gotify and Matrix, each with a Test button and a queue that survives restarts; Feishu cards that can be acknowledged and silenced, and escalation to phones.
  • Status pages, maintenance and badges: public pages edited in place with groups, a logo, a pinned note and 90 days of history; maintenance once, weekly, monthly or by cron in any time zone; SVG badges for status, uptime, response time and certificates.

A bastion for your machines

  • Machines in a tree of groups, with labels and several accounts each, behind NAT too: they connect out with plain ssh -R. Machines trust Beacon's certificates, valid for five minutes, and nobody is handed a password or key.
  • Access rules: people, groups and agents, on machines named or chosen by group or label, with accounts, actions (shell, commands, upload, download, port forwarding) and validity; core machines only by name. Command rules block or flag commands.
  • Web terminal (xterm.js) with your machines in a tree, tabs, and a file manager over SFTP; or your own ssh, scp, sftp, rsync and ssh -L, with a menu of your machines when you name none.
  • Audit: live sessions you can watch and end, recordings to replay, every command with its exit code, every file transfer, sign-ins and the audit log. Jobs run a command on many machines at once.

A password vault

  • Items of six kinds with custom fields, attachments, password history, favourites, folders and a trash; TOTP codes counting down; a generator for passwords and passphrases; a browser extension that fills logins on the page you are on.
  • Shared collections for people and groups, with view, hidden-password, edit and manage permissions; agents get use or read grants, and use an API credential without seeing it.
  • Send links encrypted in the browser, emergency access for a trusted colleague after a waiting period, import from Bitwarden, 1Password, the browsers and KeePass, export in Bitwarden's format, and reports of weak, reused, unsecured and old passwords.

For agents

  • An MCP server at /mcp with 28 tools named after what agents already do: list and get alerts, acknowledge, note, silence, probe now; list, get and save monitors, schedule maintenance; list machines, run a command (on many machines, or in the background), read, write, edit and search files; list and get sessions; list, use and read secrets. Claude Code and Codex sign in through the browser with MCP's OAuth 2.1.
  • One REST API at /api/v1 (OpenAPI) for everything, which the console itself uses.
  • Woken with the evidence: signed webhooks and GitHub workflow dispatches for new alerts, and beacon-oncall, a small harness that starts the agent program you name. get_alert returns each location's result, the changes just before, and what people and agents have done so far; probe_now checks the fix from every location within a minute.

Small and yours. One Go service and one probe binary, on VictoriaMetrics; a machine with 2 CPUs and 4 GB is plenty. Every setting and secret lives encrypted in Beacon's database; sign-in with two-factor codes. Apache-2.0. Beacon calls no model and needs no cloud account.

Works with

Agent Connects over Can be woken by Beacon
Claude Code MCP over HTTP, its own ssh Yes, with beacon-oncall (headless) or a GitHub workflow
Codex CLI MCP over HTTP, its own ssh Yes, with beacon-oncall
Any MCP client MCP over HTTP Yes, with a webhook
Bots and scripts REST and ssh Yes, with a webhook

Beacon calls no model: what to do about an alert is the agent's decision, and every agent is welcome. See Put an agent on call.

Getting started

Try it first, in ten minutes on the machine in front of you: Docker, one command, no domain and no certificate.

git clone https://github.com/openlinkos/beacon.git && cd beacon/deploy/try
sh up.sh

up.sh starts five containers — Beacon, VictoriaMetrics, vmalert, one probe location and a demo machine — and prints the one-time link that makes the first account. Try it on your laptop walks through the rest: connect Claude Code, break the demo service, and watch an agent repair it through the SSH channel while everything it runs is recorded.

For production: a Linux machine with 2 CPUs and 4 GB of memory, Docker with Compose v2, and two DNS names pointing at it.

git clone https://github.com/openlinkos/beacon.git
sudo cp -r beacon/deploy /opt/beacon && cd /opt/beacon
sudo ./install.sh        # asks for the two host names and an e-mail address for the certificates

install.sh generates the secrets, validates every file and starts Beacon, VictoriaMetrics, vmalert and Caddy. Follow On a server to enrol two probes and a machine, replay a personal SSH and an Agent session, and rehearse an outage in your team’s test chat. For Feishu or Lark, arrange app approval with your organisation’s administrator before the drill.

Connect Claude Code

docker exec beacon beacon setup    # a one-time link: open it and choose your username and password
claude mcp add --transport http --scope user beacon https://status.example.com/mcp

Then run /mcp in Claude Code and sign in through the browser: Beacon asks you to allow Claude Code as one of your agents, with what it may do and for how long, and no token is copied anywhere. Then ask, in any session: "Is anything failing right now? Look at the evidence, check the machine, and tell me what you would do." The agent answers from get_alert and the machine itself, and everything it ran is in the console under Sessions. An agent without a browser takes a token instead: docker exec beacon beacon agent add oncall-bot -owner alice -preset oncall.

Documentation

The documentation lives in docs/ and is published at beacon.openlinkos.com:

  • Try it on your laptop: the whole loop in ten minutes, in Docker on your machine
  • On a server: from a bare machine to the first probe, machine, agent and drill
  • People and their agents: accounts and roles, connecting Claude Code and Codex through the browser, headless agents and their tokens
  • Put an agent on call: waking an agent, the evidence, notes, the timeline, probing on demand, beacon-oncall
  • Monitor a service: monitors and their types, locations, notification channels, maintenance and badges
  • Machines and access: enrolling machines, access and command rules, the terminal, sessions, records and jobs, machines behind NAT
  • The vault: items, collections, sharing with people and agents, Send, import, export and reports
  • Status pages: preview and publish the services your users will see, with incidents, maintenance and badges
  • The console: what people see, and the links cards open
  • Feishu: the app, the cards, the group bot
  • API and MCP tools: every route and tool, with scopes and error codes
  • Architecture and goals: how it fits together, what it is for and what it leaves out
  • Changelog

How it works

beacon-probe (each location) ──results──▶ gateway ──▶ monitors judged in Beacon ──▶ alerts
                                             └──▶ VictoriaMetrics ◀── vmalert (host rules) ──▶ alerts
people ◀── console, notification channels, phones, status pages ◀── beacon (router, bridge) ──▶ agents' webhooks
people, agents ──▶ console, REST /api/v1, MCP /mcp ──▶ beacon (monitors, machines, vault, audit)
people, agents ──▶ web terminal, ssh, scp, sftp, rsync (port 17002) ──▶ bastion ──▶ machines (5-minute certificates, every session recorded)

One service, beacon, holds the gateway for probes and machines, the monitors' judge, the alert router, the bridge to people and agents, the vault, the API and MCP, the console and status pages, and the bastion; its state is one SQLite database, with the session recordings beside it. Metrics and rules stay in VictoriaMetrics and vmalert. Architecture has the parts.

Security

Agents never see a machine password or host key: the SSH channel signs a short-lived certificate for every connection and the machines trust only its certificate authority. People sign in with Beacon's own accounts, their passwords kept as argon2id hashes, with two-factor codes that an owner can require; every sign-in is logged. An agent acts for a person and never does more than that person's role allows, checked on every request. Tokens are stored as SHA-256 hashes, carry scopes and expire; each probe and host can write only as itself. Everything an agent does is audited and echoed to the alert chat. System secrets and vault items are encrypted at rest under master.key and never logged; every reveal is recorded first, and Send links are encrypted in the browser. Report vulnerabilities as SECURITY.md describes.

Contributing

Issues and pull requests are welcome; CONTRIBUTING.md explains how to build, test and propose a change, and AGENTS.md is the guide for AI agents working on the code.

Licence

Apache License 2.0. The LinkOS and OpenLinkOS names and marks are not covered by it.

Beacon is named after the beacon towers of the Great Wall: when a watch post saw trouble it lit a fire, the signal ran from tower to tower to the capital, and the number of fires told how serious it was.

About

Status pages and closed-loop alerting (Feishu, phone escalation) with a REST API and a built-in MCP server

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages