Lex by ALMA · Online legal research

Online legal research, with every quotation checked.

Legislation, case law and AI answers written only from the sources Lex found. Every quotation is checked against the stored official text and linked to its source.

Signing up is free, and a new account gets 15 welcome credits for its first questions. In the browser at lex.alma.dev, and for iPhone, iPad and Mac on the App Store.

§ 01 · Proof

Check everything at the source.

A legal answer is only as good as its sources. Lex always shows where each quotation comes from, and checks it against the official text.

  • 1,347,901Official documents in Lex
  • 40Official sources
/ 01Quotes

Every quote, checked

Every quotation in an answer is compared with the official text stored in Lex. If it doesn't match, it is flagged and never shown as a citation.

/ 02Sources

The official link, always

Every document links to its official page, in the Diário da República, DGSI or the source it came from, so you can verify it in one click.

/ 03Updates

Copied from the official sources

Lex copies the texts from the official sources and keeps them up to date, with each article's history and its earlier versions.

Lex checks the words quoted, not the interpretation. Answers are written by artificial intelligence and can be wrong: always check the official sources before you use an answer.

The sources

  • Diário da República
  • Codes, with each article's history
  • DGSI: STJ, Relações, STA…
  • Bills in Parliament
  • EU law and the CJEU
  • Ireland
  • United Kingdom
  • Luxembourg
  • US: federal and some states
  • More coming

In detail

§ 02 · How it works

From question to source, in three steps.

Lex's AI research answers only from the sources it found, and every quotation it makes is checked against the stored text.

Step 1

Ask

Write the question as you would ask a colleague and choose the effort: Concise (short and to the point), Medium (everyday) or Think hard (deep research).

Step 2

Lex searches and answers

It searches legislation and case law and answers only from what it found, with the sources cited in the answer itself.

Step 3

Verify

See which quotations were checked, open the article or decision cited and follow the link to the official page.

In detail

§ 03 · What you get

The law, the case law and your research, in one place.

Everything you need to follow the law and work with it, in Lex.

/ 01Legislation

Codes kept current

The codes kept up to date, with each article's history and earlier versions, so you can see what changed and when.

/ 02Case law

The decisions citing the article

On each article, the decisions that cite it, with binding uniformity rulings (AUJ) first.

/ 03Parliament

What is on its way

Bills before Parliament that would change a code are shown alongside it.

/ 04News

Know what changed

News of what changed in the law and the case law. Follow what matters to you and get notifications on your phone or in the browser.

/ 05Annotations

Highlights and notes

Highlight passages and write notes on the text of the law and the decisions.

/ 06Organisation

Topics, sharing and a library

Organise your research into topics, share them with colleagues and keep your own works in a personal library, private to your account.

§ 04 · Codes

The Portuguese codes, kept current.

Each code with every article's history, the decisions that cite it and the bills before Parliament that would change it.

/ 01Code

NRAU

O arrendamento urbano: contratos, rendas, atualização, denúncia e despejo.

Open the page (in Portuguese)
/ 02Code

Código do Trabalho

O contrato de trabalho: férias, despedimento, parentalidade, tempo de trabalho e contraordenações laborais.

Open the page (in Portuguese)
/ 03Code

Código Civil

Obrigações e contratos, propriedade e posse, família e sucessões.

Open the page (in Portuguese)
/ 04Code

Código da Estrada

As regras de trânsito, as contraordenações rodoviárias e a carta de condução.

Open the page (in Portuguese)
/ 05Code

Código Penal

Os crimes, as penas e as medidas de segurança.

Open the page (in Portuguese)
/ 06Code

Código de Processo Civil

Como corre uma ação nos tribunais judiciais: prazos, recursos e execução.

Open the page (in Portuguese)
/ 07Code

Código de Processo Penal

O inquérito, a instrução, o julgamento e os recursos em processo penal.

Open the page (in Portuguese)
/ 08Code

Código das Sociedades Comerciais

A constituição, os órgãos, as quotas e ações e a dissolução das sociedades.

Open the page (in Portuguese)
/ 09Code

Constituição

Os direitos fundamentais, a organização do poder político e a fiscalização da constitucionalidade.

Open the page (in Portuguese)
/ 10Code

Código do Procedimento Administrativo

Como a Administração decide: o procedimento, os prazos, o ato administrativo e as reclamações.

Open the page (in Portuguese)
/ 11Code

CIRE

A insolvência de pessoas e empresas, o PER e a exoneração do passivo restante.

Open the page (in Portuguese)
/ 12Code

Código dos Contratos Públicos

A contratação pública: concursos, ajustes diretos, adjudicação e execução dos contratos.

Open the page (in Portuguese)
/ 13Code

CIRS

O IRS: rendimentos, deduções, taxas e a declaração anual.

Open the page (in Portuguese)
/ 14Code

CIVA

O IVA: incidência, isenções, taxas, faturação e reembolsos.

Open the page (in Portuguese)
/ 15Code

Código do Registo Predial

O registo dos prédios: o que se regista, como, e o que o registo prova.

Open the page (in Portuguese)

Every code

§ 06 · Alternatives

Already using DGSI, PGDL or Datajuris?

See, side by side, how Lex compares with the tools you already use.

§ 07 · Plans

One plan a month, no surprises.

Every plan includes search, the codes, case law and quote checks. Credits pay only for AI answers, and each answer uses more or less depending on the effort you choose.

Plan

Lex Student

€4.99/ month

For studying with the law in front of you. Suggested for students, no proof asked.

  • 150 credits a month
  • Search across legislation and case law
  • The codes with each article's history
  • Every quotation checked against the official text
Plan

Lex Pro

€29.99/ month

For in-depth research, every day.

  • 1,000 credits a month
  • Search across legislation and case law
  • The codes with each article's history
  • Every quotation checked against the official text

Prices include VAT. Plans are monthly and renew every month until cancelled.

Law firms

Lex for law firms

Seats managed by the firm, one invoice a month and the team’s shared spaces.

Extra credits, when you need them

  • €0.9920 credits
  • €4.99120 credits + 20 bonus
  • €9.99260 credits + 60 bonus

Packs bought separately, which do not expire. The plan is spent first.

Start without paying.

Signing up is free and the app is free to download. A new account gets 15 welcome credits, once, for its first questions. To search and read the codes and case law, choose a plan.

§ 08 · In your AI

Your law search engine, inside Claude and ChatGPT.

Connect your own Claude or ChatGPT to your Lex account. Your AI app writes the answer; Lex gives it the real sources: Portuguese and EU legislation and case law, with their official links.

/ 01Search

It searches the law

Your AI app searches the Portuguese and EU legislation and case law in Lex.

/ 02Sources

It reads the articles and decisions

It reads the articles and decisions in Lex, each with its official link, so you can check them at the source.

/ 03Notes

It uses your notes and highlights

It can also use the highlights and notes you made in Lex.

The answer is written by your AI app, not by Lex: always check it against the official links. What your AI app reads from Lex goes to that app's provider, under your own account with it, because you connected it. Lex's own answers are still written only by AI models hosted on Cloudflare.

Connect it with your Lex account.

In your AI app, add a connector with the address https://api.lex.alma.dev/api/mcp and sign in to Lex: there is no key to copy. Every Claude plan can add a connector; in ChatGPT today, custom connectors are on the Business, Enterprise and Edu plans (on Pro, reading tools only), not on Plus. The steps for each app are in Lex, under Settings → API & agents.

It uses your own Lex account. Searching and reading come with a paid plan, as in the Lex app; asking Lex to gather the best sources for a question costs 1 credit; an answer written by Lex's own AI costs credits as in the Lex app.

§ 09 · FAQ

Frequently asked questions.

Does Lex give legal advice?

No. Lex is a legal research and legal information tool. ALMA is not a law firm and does not give legal advice. Answers are generated by artificial intelligence from Lex's sources, are not reviewed by people, and may contain errors or omissions or be out of date. Always check the official sources before you use an answer and, for a specific case, consult a lawyer or solicitor. The details are in the Terms of Use.

Where do my questions go?

Lex's answers are written by AI models hosted on Cloudflare's network (Workers AI), in the Cloudflare account of ALMA where Lex is hosted. Cloudflare does not use that data to train models, and neither does ALMA. We show no ads and sell no personal data. If you connect your own Claude or ChatGPT to Lex, what that app reads from Lex goes to its provider, under your own account with it. It is all explained in the Privacy Policy.

Can I use Lex on the web and on my phone?

Yes. Lex works in the browser at lex.alma.dev, on a computer and on a phone. The app for iPhone, iPad and Mac is on the App Store. It is the same account everywhere, and a plan bought in the App Store works on the web too.

Can I use Lex in Claude or ChatGPT?

Yes. You can connect your own Claude or ChatGPT to your Lex account: in the AI app, add a connector with the address https://api.lex.alma.dev/api/mcp and sign in to Lex, with no key to copy. Your AI app can then search the legislation and case law in Lex, read the articles and decisions with their official links, and use your own notes and highlights; it writes the answer, and Lex gives it the sources. Every Claude plan can add a connector; in ChatGPT today, only the Business, Enterprise and Edu plans can (on Pro, reading tools only), not Plus. It uses your own Lex account: searching and reading come with a paid plan, asking Lex to gather the best sources for a question costs 1 credit, and an answer written by Lex's own AI costs credits as in the Lex app. What your AI app reads from Lex goes to its provider, under your own account with it. The steps for each app are in the guide to connecting Lex to Claude and ChatGPT.

How do credits work?

Credits pay for AI answers; reading, searching and annotating use none. Each answer uses credits according to the effort: Concise uses fewer, Think hard more. A plan's credits start again each month, and those you don't use don't carry over. Extra credit packs never expire.

Is there a plan for students?

Yes: Lex Student, with 150 credits a month for €4.99. It is suggested for students, but we ask for no proof: anyone may choose it.

How do I cancel a subscription?

Plans are bought in the App Store, and Apple is the seller: a subscription is managed and cancelled in your Apple account settings. Deleting your Lex account does not cancel the subscription.

Your next question, with the sources in view.