TheLawyer.sh

TheLawyer CLI

Search multi-jurisdiction legal documents from your terminal.

Install

$ curl -fsSL https://thelawyer.sh/install.sh | sh
macOS (arm64, x86_64)Linux (amd64, arm64)

Configuration

$ # Point to your API (or use the hosted service)
$ export THELAW_API_URL=https://api.thelawyer.sh
$ export THELAW_API_KEY=your-api-key

Examples

$ thelawyer search "ansættelsesret"

Search Danish employment law

$ thelawyer search "GDPR data processing" --jurisdiction EU

Search EU regulations

$ thelawyer get-number --year 2018 --number 502

Get a specific law by number

$ thelawyer markdown "funktionærloven"

Get full law text as markdown

$ thelawyer outline funktionaerloven

View the structure of a law

AI Coding Assistants

The installer automatically configures thelawyer as a tool in Claude Code, Gemini CLI, and Codex CLI. Ask about legislation in natural language.

Claude Code

~/.claude/skills/thelawyer/

Gemini CLI

~/.gemini/GEMINI.md

Codex CLI

~/.codex/AGENTS.md

/thelawyer search "ansættelsesret"
/thelawyer markdown funktionaerloven