OLH
Live116/116 jobs completed · 24h

Specialised in agentic automation.

Founder and engineer of Lovguiden, a service for Danish law used by more than 580,000 people in the past year. Its data is collected from over 2,000 public sources and processed automatically, and when a source changes, the system repairs itself. Agentic automation built on the same foundation is also developed for other businesses.

lovguiden · nightly run
running…0/12
Next.js 16React 19TypeScriptTailwind 4shadcn/uiSupabasePostgrespgvectorVercel AI SDKClaude Agent SDKMCPPythonPlaywrightsystemdStripePostHogVercel
Usage

Used every day by legal professionals.

Lawyers, accountants, public servants and journalists use Lovguiden in their daily work. Figures from the site's analytics.

581,808
Visitors · 12 months
1,086,554
Pageviews · 12 months
40,524
Visitors · last 30 days
400+
Companies & organisations
Services

Systems that run by themselves.

The same technology that runs Lovguiden, built around a company's own data and workflows. Every system is designed to run without supervision and to show where its answers come from.

01

Agentic automation

Recurring work handed to AI agents that run on a schedule: collecting data, checking it, writing and reporting. Every run is logged, and when a source changes, the system diagnoses the fault and repairs it.

  • Scheduled agents and data pipelines
  • Monitoring, alerts and self-repair
  • Runs locally or in the cloud
Lovguiden's ~40 automated jobs
02

AI assistants on company data

Search and an AI assistant across internal documents, rules, contracts or case files. Answers come from that material only, and every reference is checked before anyone sees it.

  • Answers with verified sources
  • Local models when data can't leave the building
  • Search tuned to the domain
How Lovguiden AI stays accurate
03

Company data inside AI tools

MCP servers and APIs that bring internal data into Claude, ChatGPT, Copilot and custom agents, so AI tools work with what the business actually knows. AI assistants such as ChatGPT, Copilot, Gemini and Claude already send around 600 visitors a month to Lovguiden.

  • MCP servers with access control
  • Documented REST APIs
  • Usage-based billing for paid access
Lovguiden's MCP server and API
04

AI-run operations

An existing business rebuilt so the routine runs itself: website, bookings, invoicing and back office, plus agents that write content and campaigns every day.

  • Website, back office and payments
  • AI newsroom and campaigns
  • Migration alongside the old system
The opkurser.dk client case
Flagship · 2023 →

Lovguiden. Danish law you can verify.

Legislation, case law, parliamentary work and EU law in one service, with an AI assistant that shows its sources. Used by lawyers, accountants and public servants every day.

Lovguiden brings Danish legislation, rulings, parliamentary work, EU law and preparatory works together in one searchable, cross-referenced service. Everything is kept current automatically, and an AI assistant answers questions with a source behind every statement. The same data is available to other AI tools through an MCP server and to businesses through an API.

Role
Founder and engineer
Live at
lovguiden.dk · mcp. · data.
1,600
visitors / day
400+
companies & orgs
3M+
cross-references
2,000+
public sources
40+
official legal sources
46
legal areas
35
MCP tools
138K+
verdicts & decisions

Visitors are a 12-month average from web analytics. Organisations and cross-references as published on lovguiden.dk.

What users say
I'm very impressed with Lovguiden. It's a tool that has been in demand for a long time. Limiting it to legislation, verdicts and decisions makes the AI search far more trustworthy than the chatbots we know.

Søren Engers

VAT Director, Baker Tilly

A product that creates overview and is intuitively simple to use is something I have missed for about 40 years. Lovguiden is the product that today comes closest to giving me that overview of tax legislation.

Ole Aagesen

Lecturer, CBS, and author

The database gives quick access to legislation, from bill to enactment, along with a large number of rulings and decisions. The chatbot quickly gives an overview of the relevant legislation.

Reza Ahmadian

Lawyer

From a document on a public website to an answer with a source.

01
Sources
2,000+ courts, ministries, agencies and EU bodies
02
Collection
Gathered, read and structured automatically
03
Database
Laws, rulings and cross-references
04
Lovguiden
Search, AI assistant and monitoring
05
Everywhere
On the web, in AI tools and via API

One search across laws, rulings, hearings, parliament and EU law, ranked for legal relevance.

An AI assistant that answers from the source material and links every reference it makes.

An MCP server that brings Danish law into Claude, ChatGPT and other AI tools.

A REST API for companies that build their own products on the data.

Parliament made readable: votes, debates and a daily tracker for every politician.

Every law consolidated, with its amendment history and the bills that will change it.

Subscriptions, invoicing to public institutions and usage-based billing for the API.

The same approach, for other businesses.

Get in touch
MCP · for agentsmcp.lovguiden.dk
// claude_desktop_config.json
{
  "mcpServers": {
    "lovguiden": {
      "url": "https://mcp.lovguiden.dk/api/mcp"
    }
  }
}

// 35 tools, e.g.
search_love · get_forarbejder · search_domme
get_lov_historik · search_eu · oda_get_sag
REST · for integratorsdata.lovguiden.dk
# verdicts on advisor liability
curl "https://data.lovguiden.dk/v1/domme\
  ?q=ansvar%20for%20mangelfuld%20r%C3%A5dgivning" \
  -H "Authorization: Bearer lg_live_…"

# priced per call, surfaced in headers
X-Lovguiden-Pris-DKK  X-Lovguiden-Prisklasse
# OpenAPI 3.1 at /v1/openapi.json · llms.txt at /v1/llms.txt
Lovguiden · fully automated

Fully automated and running locally.

All of Lovguiden's data is collected, processed and updated by a purpose-built system that runs locally. When a public website changes and a data source stops working, an AI agent repairs it and verifies the fix. The figures below are based on the system's own measurements.

Live statusProjected from 30 days of runs · Oct 7
116/116
Jobs run · 24h
99.3 %
Success rate · 30 days
4,846,653
Items processed · 30 days
41
Active data sources
53
Jobs · 7 days
Last job finished
folketinget.ocr
Sep 20Oct 7
How it runs
01
Schedule

Around 40 jobs run on a fixed schedule, day and night.

02
Check

Connections, database and storage are checked before each run.

03
Run

Jobs run in parallel within set limits and recover after interruptions.

04
Monitor

Every run is logged, and jobs that stop returning data are flagged.

05
Repair

An AI agent diagnoses a broken data source and prepares a fix.

06
Verify

A fix is only applied after it has been tested against the live source.

Self-repair, step by step

An AI agent diagnoses a broken data source and prepares a fix. A fix is only applied after it has been tested against the live source.

agent · self-repairhealthy
Illustration of a typical repair: a source changes its markup, and the agent patches and verifies the scraper.
Process

From first conversation to a running system.

A small first step, then a system that runs on its own.

  1. 01

    Conversation

    The work that takes too long is described, followed by an honest assessment of whether AI and automation can take it over, and roughly how.

  2. 02

    Prototype

    A first version on real data, so the result can be seen working before anything larger is committed to.

  3. 03

    Build

    The full system, built in short iterations with regular demos, so progress can be followed all the way.

  4. 04

    Operate

    Operated and monitored as a service, or handed over with code and documentation to an in-house team.

Questions
Is it only for legal tech?

No. Lovguiden is legal, but the methods apply anywhere with many documents, many sources or repetitive work. opkurser.dk is a course business.

Can data stay in-house?

Yes. Lovguiden's data processing runs on local models, and the same setup can run on a company's own infrastructure, so sensitive data never has to leave it.

What happens when something breaks?

The systems are monitored and repair common faults on their own, such as a data source changing its format. Anything they can't fix is flagged.

What does it cost?

It depends on the scope. A concrete proposal follows the first conversation, and the first step is kept small.

Who owns what is built?

It is agreed up front. The full source code and documentation can be handed over.

Which languages?

Danish and English.

Open source · MIT

SupaChat: an open-source version of Lovguiden.

An open-source starter for AI chat applications, built on the same foundations as Lovguiden.

SupaChat is a free, MIT-licensed release of Lovguiden's application layer, meant as a starting point for others. It includes Claude-powered chat with document search and page-level citations, an artifacts workspace, long-term memory, charts and interactive tools, PDF generation, web search, image generation, per-token usage dashboards and complete user authentication with Supabase.

$ git clone https://github.com/ElectricCodeGuy/SupabaseAuthWithSSR
FeatureLovguidenSupaChat
Next.js 16 and React Server Components
User accounts with Supabase
AI chat with tools
Document upload and search
Danish legal database, 2,000+ sources
Automated, self-repairing data collection
Set up with a single SQL file
397
GitHub stars
60
forks
MIT
license
Portrait of Oscar Lauge Hoffmann
Oscar Lauge HoffmannCopenhagen, Denmark
Profile

Founder and engineer, based in Copenhagen.

Oscar Lauge Hoffmann founded Lovguiden in November 2023 and has developed and run it since. It is now used by hundreds of thousands of people a year, and its data operations are fully automated.

The work covers the whole product: data collection, search and AI, the interface and billing. The focus is on systems that run reliably without supervision and can show where their information comes from. Alongside Lovguiden, he builds the same kind of systems for other businesses.

01

Automation

Recurring work is automated, and the systems are built to detect and repair their own faults.

02

Runs locally

Data processing runs locally, which keeps costs predictable and the data under full control.

03

Accuracy

AI output is grounded in source material, and every reference can be checked.

04

End-to-end ownership

Products are taken from the first data source to the finished interface and the invoice.

Tools

What it's built with.

The technologies behind Lovguiden and opkurser.dk.

Automation

01
  • Scheduled data pipelines
  • Self-repairing AI agents
  • Linux servers
  • Monitoring and alerts

AI

02
  • Local language models
  • Claude and Gemini
  • MCP servers
  • Retrieval and search

Data

03
  • PostgreSQL · Supabase
  • Vector search
  • Web scraping
  • REST APIs

Product

04
  • Next.js · React
  • TypeScript
  • Tailwind · shadcn/ui
  • Stripe
Timeline

From first commit to today.

Key milestones since 2023.

  1. Oct 2023

    SupaChat released as open source

    An open-source AI chat starter, now in its fifth version.

  2. Nov 2023

    Work on Lovguiden begins

    It started as a chatbot for Danish law and grew into a complete legal information service.

  3. Mar 2025

    Automated data collection

    Collection and processing of public data moved into a dedicated system.

  4. 2025

    Runs locally

    All data processing now runs locally and fully automatically.

  5. Aug 2025

    opkurser.dk

    A new website, back office and newsroom for Økonomi & Personale.

  6. 2026

    MCP server and public API

    Lovguiden's data made available to AI tools and to other businesses.

  7. 2026

    Self-repairing data sources

    Broken data sources are now diagnosed and repaired automatically.

Contact

Get in touch.

For recurring work that takes up too much time, or data nobody has the hours to go through. A short description of the task is enough to start the conversation.

Send an email
oh@opkurser.dk