# Grounder direct

Source: https://grounder.net/docs/direct

> The alternative way to reach a source: Grounder finds the source's page and reads it from the source's own site, as you.

## What Grounder direct is

Grounder direct finds a source’s page and reads it straight from the source’s own site, as you, with your own user agent. Grounder provider returns the source’s results. Each source is reached one way, chosen ahead of time.

Reads of pages you name by their addresses use no search-provider credits and no Grounder credits. Reading them spends no credit, asks for no x402 payment and does not count toward your free searches.

For a question, Grounder matches it to its sources and finds the page’s address where none of the source’s disallowed signals refuses it. It then reads the page. A Grounder direct search is one search, at the one price, even if its page could not be read.

Name the page by address to read it. Name the site to find a page there and read it for the price of one search.

Name pages in `urls`, or a `site` with a question, to have Grounder direct read them. There is no mode to choose and none to save. It works from the HTTP API, the hosted MCP server, [Grounder direct on a Mac](https://grounder.net/docs/direct#install) and the Hermes plugin.

## Which sources it reads

A source’s `ways` field says whether Grounder direct can read it.

- Pages. Grounder finds a page from the source and reads it. When the site refuses Grounder’s reader, Grounder may buy that page from the publisher under a licence that covers search, grounding or display.
- Live feeds. A source backed by a live feed answers from the feed in either way. It reports `reached: "feed"`.
- Sources that use Grounder provider. A source may turn the reader away, return a cookie page instead of the article, or build its answer with scripts the hosted reader does not run. Such a source reports `reached: "none"` and `status: "empty"` in a Grounder direct search.

If the chosen source cannot answer, Grounder uses another source it chose, and the response names the sources that answered. If a server is held or has reached its limit, the response reports that.

## Ask a question

Send the question as `query` with `site` to `POST /v1/search` or the MCP `search` tool. The response lists each source and whether a page was read. [What a search can return](https://grounder.net/docs/routing#outcomes) explains the possible outcomes.

## Install it on a Mac

On a Mac with Safari, one command installs Grounder direct on your Mac and adds it to the AI tool you choose:

**terminal** (Shell)

```sh
curl -fsSL https://grounder.net/install | sh
```

The installer finds the AI tools on your Mac, asks which one to add Grounder to and signs you in to Grounder in your browser. On a Mac with Safari, it asks whether to add the reader. Once the program is installed and available, Grounder offers your searches the sources only it reaches. The installer adds the Grounder plugin for Hermes. Run the installer again to connect another tool.

- What a Mac needs. macOS 13 or later and Safari. No Xcode, no command line tools, no Python and no Node: the program is built, signed and checked against a checksum the installer pins before anything runs. Grounder’s own resolver, a choice below, needs macOS 14. On a Linux machine, or a Mac without Safari, the installer skips Grounder direct and says why.
- What it costs. Reading a page you name by its address uses no search-provider credits and no Grounder credits. A Grounder direct search is one search, at the one price, even if its page could not be read. Pages from a Mac read stay on your Mac.
- Where it lives. The program is at `~/Library/Application Support/Grounder Direct/bin/grounder-direct`, next to its settings. The installer also links it as `grounder-direct` into the first of `~/.local/bin`, `~/bin` and `/opt/homebrew/bin` that is on your `PATH` and that you can write to without `sudo`, and never over a different file of that name. It says at the end whether it did. When none of the three qualifies, `grounder-direct` is not a command in your terminal: run it by its full path, in quotes because the path has a space, as `"$HOME/Library/Application Support/Grounder Direct/bin/grounder-direct" read <address>`.
- It keeps itself up to date. When your AI tool starts it, at most every six hours, the program checks which version the installer at grounder.net/install now pins. If that version differs, it downloads the program from grounder.net and checks it against the pinned checksum and Grounder Labs’ Apple signature. Only then does it replace itself, and your AI tool runs the new version the next time it starts it. The check sends no key and nothing about you. `grounder-direct update` checks now.
- No Mac. Hosted Grounder direct, [below](https://grounder.net/docs/direct#request), reads on Grounder’s servers and needs no install, from any machine. It never uses a sign-in.

## The local server and the terminal commands

On a Mac the program is Grounder’s one MCP server, named `grounder`. It has every tool the hosted server has, with `search` reading on this Mac when Grounder direct is selected, and four of its own. Use `search` to read a page.

| Tool | What it does |
| --- | --- |
| `search` | Search the web. Give it page addresses to read on this Mac, or a question. With a question, Grounder finds the addresses and the Mac reads them. |
| `settings` | Shows or saves the page format. |

The same program has terminal commands. They are written below as `grounder-direct`, which works when the installer linked the program onto your `PATH`; if it did not, use the full path above in its place.

| Command | What it does |
| --- | --- |
| `grounder-direct read <address>` | Reads a page and prints it. `--format` picks the format. |
| `grounder-direct format [full-page\|highlights\|summary]` | Shows or sets the default format. |
| `grounder-direct resolver [system\|grounder]` | Shows or sets the DNS resolver the reader uses. |
| `grounder-direct update` | Replaces the program with the version the installer pins, now. It also does this by itself. |

Settings are kept in `settings.json` beside the program. In Hermes, use `/search` and its Settings section.

## Read a page

Send the addresses in `urls` to `POST /v1/search`. Send `site` with a question when you want Grounder to find the page on that site. To read its home page, send its address in `urls`.

| Field | What it does |
| --- | --- |
| `urls` | Up to five public HTTP or HTTPS page addresses. |
| `site` | The host to search, with words in `query`. Addresses in `urls` take precedence. |
| `query` | Your question. Highlights use the passages that share the most words with it. |
| `format` | `summary` (the default), `full-page` or `highlights`. |
| `user_agent` | Your user agent string. |
| `signed_in` | Accepted, and changes nothing: every read is logged out. |
| `reader` | Used by the Grounder direct program on a Mac. |

**request** (Shell)

```sh
curl https://api.grounder.net/v1/search \
  -H "Authorization: Bearer $GROUNDER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://docs.python.org/3/library/venv.html"], "query": "how do I create a virtual environment", "format": "highlights"}'
```

For hosted MCP, use `search` with `urls`, `site`, `query`, `format`, `user_agent` and `signed_in`. Send `format` when the user names one. Otherwise the saved format applies.

## Whose user agent

The read uses, in this order: the `user_agent` the request sends; the one saved on your account for Grounder direct (the Routing page saves your own browser’s with one click); the `User-Agent` your own client sent with the request; or, with none of those, Grounder’s own, `Mozilla/5.0 (compatible; Grounder/3.7; +https://grounder.net/bot)`. It also sends your `Accept-Language`. It sends no cookie and no sign-in, and no Grounder header that stands in for anything: the site sees that user agent asking for that one page.

A user agent that names a crawler is not usable: a `user_agent` sent with the request that names one returns `400`, and a saved one or a client’s header that names one is passed over. To read as yourself rather than as Grounder, send `user_agent` or save one on the [Routing page](https://grounder.net/account/routing). The response’s `direct.user_agent_from` says which was used: `request`, `saved`, `header` or `grounder`.

## How it works

- Where it runs. Hosted, on Grounder’s server, which fetches the page itself (on a Mac, [the program reads it there instead](https://grounder.net/docs/direct#install)). The hosted reader reads the page’s HTML and text without running its scripts, so a page that needs JavaScript to show its text says so.
- Which addresses. Public `http` and `https` addresses only. A private, loopback, link-local or metadata address is refused, checked again on every redirect, and the connection is made to the address that was checked.
- No cache. Nothing a page returns is kept for another caller.
- Licensing. A page that one of its site’s disallowed signals refuses Grounder (its robots.txt, its opt-out of search or AI answers, a licence it names or the page’s own tags) is not read, and the answer says so. For a page Grounder reads on its own server, Grounder obeys a robots.txt group that names Grounder, and when the site has none, the group for every crawler (`User-agent: *`). A site with no robots.txt does not refuse it. A rule disallowing the page, or a file that Grounder is refused or cannot read, stops the read. The robots.txt check applies to hosted reads. A site’s own check is reported when it refuses the read. The one exception is a page its publisher sells under a licence: when Grounder’s own read is refused, Grounder may buy that page from the publisher, under a licence that covers search, grounding or display and never training. The result says it is licensed by its publisher, and its `server` reads `publisher-license`.
- Unread pages. A page that cannot be read is reported with the reason. For a question, Grounder can try another address, and can use another source it chose.

## Formats

- Summary (the default): the first 20,000 characters of the page for your own model to summarize. Grounder does not summarize the page.
- Full page: the page’s whole text, up to 60,000 characters.
- Highlights: up to 10 passages of at most 400 characters, in page order, chosen by how many words they share with the question.

On a Mac, an AI tool that lets its servers ask for a summary can summarize the page with its own model.

## Limits

- At most five pages named by address per call.
- A search reads one page for each source, or up to three with highlights for a source whose server is the source itself.
- 30 seconds for a page.
- 16 MB for a response.
- 60,000 characters of text for a page.
- A pace for each site, shared by all callers, so a read may wait or be refused when a site is being read often.

## Resolver

Hosted reads on grounder.net use Grounder’s own resolver already. On your Mac, `grounder-direct resolver` (or the Settings section of `/search` in Hermes) chooses the DNS resolver the reader uses: your own, the default, or Grounder’s, at `https://api.grounder.net/v1/dns-query`. Grounder’s is JSON DNS over HTTPS with no account, 600 lookups a minute for each address, and public addresses only. Grounder’s resolver needs macOS 14. Choose it when a page comes back blank: some sites blank their page when your DNS filter blocks one of their scripts. Grounder’s resolver sees the host names the reader looks up, not the pages, and keeps no log of them.

## Save it on your account

Under Routing on [your account page](https://grounder.net/account/routing), or with `PUT /v1/search/settings`, save a default `format` and the `user_agent` to read with. A request’s own format takes precedence. The saved format applies when Grounder direct is used. A stored Full page format that was never chosen reads as Summary.

## Billing and records

Reads of pages you name by their addresses are free and have their own rate limits. A Grounder direct search is one search, at the one price, even if its page could not be read. It counts toward the free searches and can be paid with x402. A question that fits no source is not charged.

A search records your question, how it ran, and the site, path and status of any page it tried. The page’s text is not stored.

## How a read goes on your Mac

- Safari’s engine. For a question, Grounder finds addresses for each source and the program reads them locally, starting with the closest match. Each read opens the page in a hidden WebKit view with the installed Safari’s user agent, in a fresh session, so a page that needs its scripts to show its text works. Reads of the same site are paced two seconds apart. A site’s own check, such as a “verify you are human” page, is reported as that, never solved or skipped. When a page does not load at all, the reader tries once more at the site’s other host name, with or without `www.`. A secret-shaped address, or a private or loopback host, is refused, and so is a name your Mac cannot look up (no answer, or a private one), as Hermes refuses it, so that retry is only for a name that did resolve.
- Every read is logged out. Grounder direct keeps no sign-ins and no cookies. A read is the page as a stranger sees it, in a fresh session that is thrown away after the read. `signed_in` is accepted and changes nothing. An older version could save a site’s sign-in on your Mac and list the site on your Routing page; that is gone: the program and the Hermes plugin delete what an older version saved on your Mac (its sign-ins folder and its login keychain items) the first time they start, and the lists Grounder kept on accounts are deleted. When the program is connected to your Grounder account (the installer saves your search key in `account.json`, in the same folder as the program, readable only by you; delete that file or revoke the key and the Mac is disconnected), it also tells Grounder your question and the site and path of each page you named, never the page’s text, unless your account opted out of training.
- Three formats. Full page is the page’s text. Highlights are exact quotes with ads dropped, at most 10 passages of 400 characters. Summary is an AI summary written by your own model: the server asks the AI tool for it when the tool lets servers ask, and otherwise returns the page’s text with the request to summarize it.
- The label. Every read ends with a line saying which site was read, in which format and how long it took.
- Resolver. Only host-name lookups go to Grounder from a read, and only when you choose Grounder’s resolver, [above](https://grounder.net/docs/direct#resolver).
