# Horizon

> Self-hosted AI news radar that turns your feeds into a scored daily briefing

- Category: AI Productivity & Writing / News & Trend Monitoring
- Language: Python
- Licence: MIT
- Repository: https://github.com/Thysrael/Horizon
- Website: https://www.horizon1123.top
- Canonical page: https://ai-tldr.dev/tools/horizon/

## In short

Horizon is a self-hosted, AI-powered news radar. It sits in the News & Trend Monitoring category of the AI Productivity & Writing tools and is open-source, written in Python and licensed MIT. To get started: clone and install.

## Overview

Horizon is a self-hosted, AI-powered news radar. It collects items from the sources you follow — RSS and Atom feeds, Hacker News, Reddit, Telegram channels, X timelines and searches, GitHub events and releases, OpenBB financial news, OSS Insight trending repositories, GDELT and Google News — then filters, deduplicates and ranks them, and writes a daily briefing in English and Chinese with context and a summary of the community discussion.

What it keeps and how it writes about it is set by profiles. A profile is a reusable set of editorial rules in Markdown prompts and JSON block definitions: what belongs, what is worth keeping, and what to write. The built-in `tech-news` profile adds impact and discussion to news events, `tech-blog` pulls out background, solution and takeaways from engineering posts, and `ai-creator` adds hooks and content angles. Each source can be pinned to a profile or left to the model to route, and per-profile score thresholds, topic deduplication and per-category caps keep one busy topic from crowding out the rest.

The pipeline runs from the `horizon` CLI, from Docker, or on a schedule through a GitHub Actions template, and its stages are also exposed as an MCP server so an assistant can drive them. Briefings land as Markdown files and can be published to a GitHub Pages site, mailed to subscribers over SMTP/IMAP, sent to WeChat, or pushed through webhooks to Feishu/Lark, DingTalk, Slack, Discord or a custom endpoint. It works with OpenAI, Gemini and other providers configured in `data/config.json`. The project is written in Python and MIT-licensed.

## What it does

- Ten source types, from RSS, Hacker News and Reddit to Telegram, X, GitHub, OpenBB, OSS Insight, GDELT and Google News
- Profiles that define scoring rubrics, thresholds and the output blocks for each kind of content
- Topic deduplication and per-category limits for a balanced briefing
- Optional web-researched background and summaries of community comments
- Bilingual English and Chinese briefings as Markdown, GitHub Pages, email, WeChat or webhooks
- Interactive setup wizard, MCP server and an installable agent skill

## Getting started

Horizon is installed from a clone with uv (or pip) or run with Docker; a wizard writes the config for you.

1. Clone and install

```bash
git clone https://github.com/Thysrael/Horizon.git
cd Horizon
uv sync
```

2. Generate a config with the wizard

   The wizard asks about your interests and writes `data/config.json`. To configure by hand instead, copy `.env.example` to `.env` and `data/config.example.json` to `data/config.json`.

```bash
uv run horizon-wizard
```

3. Point it at a model and a source

   `api_key_env` names the environment variable that holds the key (put the key itself in `.env`). A minimal config with one RSS source:

```json
{
  "ai": {
    "provider": "openai",
    "model": "gpt-4",
    "api_key_env": "OPENAI_API_KEY"
  },
  "sources": {
    "rss": [
      {
        "name": "Simon Willison",
        "url": "https://simonwillison.net/atom/everything/",
        "profile": "tech-news"
      }
    ]
  }
}
```

4. Run a briefing

   `--hours` sets how far back to fetch (default 24). The report is saved to `data/summaries/`.

```bash
uv run horizon --hours 24
# or with Docker
docker compose run --rm horizon
```

5. Automate it

   Enable the daily GitHub Actions template by configuring `.github/workflows/daily-summary.yml.disabled` and renaming it to `daily-summary.yml`, or let an assistant set Horizon up with the agent skill (needs Node.js 22.20+).

```bash
npx skills add Thysrael/Horizon --skill horizon -g
```

## When to use it

- A personal morning briefing from the feeds, subreddits and channels you already follow
- A team digest pushed to Slack, Feishu or DingTalk instead of everyone scanning Hacker News
- Publishing a daily curated news site on GitHub Pages
- Letting an AI assistant run collection and summarisation stages over MCP
