Docling OCRIndependent Docling guide

Landscape · licensing

Open-Source Document AI: Three Different Claims Wearing One Label

A repository with a permissive licence, a model with released weights and a hosted API that happens to publish its code are three different offers. They get compared as if they were the same thing, and the difference decides whether you can actually run the thing on your own documents.

Updated 2026-10-26 · 4 min read

The short version

  • –Check which of three things is open: the source code, the trained weights, or only the client library.
  • –Code without weights still means you train or download something else to get a working parser.
  • –Released weights are the strongest claim, because the model runs without the vendor.
  • –A managed service with a public repository is not self-hostable, however the licence reads.
  • –The licence tells you what you may do with the software; the weights tell you whether you can run it at all.

What people mean by open-source document AI

Search for document AI, open source, and the results mix three arrangements as if they were one thing. The phrase covers at least three arrangements, and the difference matters more than the licence text. In the first, the source code is published and the trained model is not, so you can read the architecture and run the pipeline only if you can obtain the weights. In the second, both code and weights are released, and the whole thing runs on your hardware without asking anyone. In the third, what is published is a client library that calls a service the vendor runs.

Only the second lets you answer the question that usually prompts the search: can this run on documents that are not allowed to leave our network. The first can get there with more work, if the weights are obtainable under workable terms. The third cannot, regardless of how the repository reads.

The three claims, and what each one gets you

  • Code published, weights withheld: you can read and change the pipeline, but a working parser needs a model from somewhere else.
  • Code and weights published: you can run it offline, at your own cost, on your own hardware, indefinitely.
  • Code published, service proprietary: the repository documents a client, not a parser; the document still leaves your infrastructure.
  • Model only, no pipeline: you get a component, and the layout analysis, reading order and table reconstruction around it are yours to build.

How to check a project in ten minutes

1

Find the weights

Look for a checkpoint or a model card, with a size and a licence of its own. Weights often carry different terms from the code, and the terms are the part that decides whether commercial use is permitted.

2

Follow the install instructions on a clean machine

If the quick start reaches a hosted endpoint, the project is a client. If it downloads a checkpoint and runs locally, it is a parser.

3

Read what the licence covers

A permissive software licence says nothing about the model, the training data or the language data. Three separate grants can apply to one project.

4

Check the maintenance signal

A parser that reads real documents is a moving target, because documents change. Look at the last release, whether issues get answered, and whether the model has been updated since the first announcement.

5

Test on your worst page

Clean digital tables flatter every project. A creased scan, a borderless table and a merged header separate them, and will tell you more than any benchmark table.

Where the open-source trade-off actually bites

Running it yourself replaces a per-page fee with an operations burden: a GPU or a lot of CPU time, model downloads, dependency pinning, and a person who owns the upgrades. For a team that already runs inference, that is a fair trade. For a team that wants a document converted this afternoon, it is not.

The second cost is quality drift. A hosted service is tuned continuously against the documents people send it. A self-hosted model is as good as the checkpoint you downloaded, and improves only when you take a new one and re-test.

None of which argues against open source. It argues for checking which of the three arrangements you are actually evaluating, and costing the operations honestly before comparing it with a price per page.

Frequently asked questions

Is Docling open source?+

The project publishes its code under a permissive licence and its models are documented, which puts it in the second category above rather than the third. Check the current terms for the code, the weights and the language data separately before relying on any of them commercially.

Does an open-source licence let me use it commercially?+

Usually the software licence does, but the licence may not be the only grant involved. Model weights, training data and language packs can carry terms of their own, and the restrictive one governs.

Can I self-host a hosted document AI service?+

Only if the weights are available. Publishing a client library, an SDK or a demo does not make the service self-hostable, and a repository is not evidence that the parser runs outside the vendor.

What does self-hosting actually cost?+

Hardware or cloud compute, model storage, the engineering time to pin dependencies and take upgrades, and the accuracy you give up when the model stops being tuned for you. It is often cheaper than a per-page fee at volume and almost never cheaper for one document.

How do I know whether a project is maintained?+

Release dates, answered issues, and whether the model has been updated since launch. A parser that has not moved in a year is still usable, but treat it as a fixed dependency rather than a service.

Which matters more, the model or the pipeline?+

For tables and multi-column pages, the pipeline usually matters more. A good layout model with no reading-order logic returns accurate characters in the wrong order, which is worse than a rougher model that keeps the structure.

Is open source more private than a hosted service?+

Only if you actually run it. Downloading a model and sending documents to an API is the least private arrangement available, because you get the operations cost and the data exposure.

Try it online

Run the same pipeline in the browser — no install, no uploads stored.

Try it in the browser

Keep reading