Open-source project
monid-ai/monid avatar
monid-ai/monid

Monid's connector layer bills on the raw response and ranks endpoints at call time

Monid - OpenRouter for agent tools. Join our community at https://discord.gg/rQzztcgJV8

6,230 stars821 forksTypeScriptMIT

At a glance

What is it?
monid-ai/monid is the open connector framework behind Monid, a gateway that gives agents one base URL and one key for 2,000+ tools. This piece covers how usage is metered, how discover picks an endpoint, and what writing a connector involves.
Who is it for?
Read this repository if you maintain an API and want agents to find it through Monid, or if you want to see how per-call metering is declared in code. Before committing time, run deno task catalog providers and deno task check && deno task test to confirm Deno 2.x works on your machine.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 9 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • monid-ai/monid6,230 ★ · +3,326
Star history
Repository2026-10-082026-11-25
monid-ai/monid2.9k6.2k

3,326 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Billing settles on the raw response, so a failed lookup costs nothing

Every connector declares its own usage model in its definition: a flat charge per call, a charge per returned result, or a rate per unit such as a thousand characters or a second of video. The engine settles that model on the raw response envelope, before any output mapping. What gets billed is what came back over the wire, not what a mapper later kept or dropped.

Failures are priced by the same rule. A vendor error, an unmatched company and an unresolved person each complete as data and settle at zero. An agent that retries lookups against an enrichment provider will not see a miss on its bill.

Providers that cost nothing say so in one line. The TinyFish connector declares `usage: { model: { kind: UsageModelKind.FREE } }` and describes itself as zero-cost live-web search with clean multi-URL fetch.

discover ranks the whole catalog by the job, not by a vendor chosen months ago

`discover` ranks the catalog by what the job is, across every provider at once. Each candidate comes back with its price, its live health and its observed p50 and p95 latency. Hints name a cheaper or better-fitting endpoint when one exists.

The design target is call-time selection. Agent code that hardcodes one scraping vendor keeps using it after a better one appears. With `discover`, the choice is made against everything available on the day of the call.

The pitch covers web search and scraping, people and company enrichment, social platforms, reviews and market data, and video, image and voice generation. Monid puts the count at 2,000+ tools across 72+ providers. An agent that has no repository access can fetch `https://monid.ai/SKILL.md` and save it into its skill directory.

Three verbs make up the agent-facing surface, and the first two are free. `inspect` is the one that returns an endpoint's full description once `discover` has surfaced it.

A connector is a provider file plus endpoint files, with no client code

A provider declares identity, auth and how usage is counted. The TinyFish example lives at `connectors/tinyfish/provider.ts` and calls `defineProvider` with a display name, a summary, a homepage URL, the category `web-search`, and `auth: { inject: presets.auth.header("X-API-Key") }`. Auth is a preset, so a connector never writes header-handling code itself.

An endpoint declares the request and its input schema through `defineEndpoint`. The id has the form `<provider>#<endpoint>` and is inferred from the folder, which is why the run command later reads `'tinyfish#search'`. Request schemas that only one endpoint uses live in `schema/inputs.ts` beside it, and zod fragments shared by two or more endpoints go in the provider's `schema/` folder.

Each endpoint folder also holds `endpoint.test.ts`, which carries replay tests and gated live tests, and a `fixtures/` directory of recorded responses kept trimmed.

There is no client, no adaptor and no per-provider execution path.

meta.description is ranking input, so the TinyFish text names its own successor

Monid tells contributors to write `meta.description` as if it were the product, because to an agent it is. That field is the text `discover` ranks and `inspect` returns. The instruction is to say what the endpoint really does, what it will not do, and which endpoint to reach for instead.

The TinyFish search description shows the pattern. It calls the endpoint browser-rendered search over the live web, states that results are never cached so pricing pages and breaking news are current at query time, and then draws the boundary: snippets only. Anyone who needs full text is told to pipe result URLs into TinyFish `/fetch`.

That last sentence is the point. An endpoint that admits where it stops hands the agent its next step, and Monid's authors rate it above any amount of parameter documentation.

The cost lands on contributors. A connector with a vague description gives `discover` little to rank on.

Owned things like phone numbers need a resource, not just an endpoint

Some providers sell a durable owned object. The example given is saperly's phone numbers. Those connectors add a resource at `resources/<slug>/resource.ts` that declares four things: the stored-snapshot shape, the platform lifecycle (verify, release, refresh), live views, and a usage rate card.

The rate card can hold fixed lines, estimated lines or both, all measured over one period clock.

Endpoints bind to a resource with a purpose-keyed declaration of the form `resources: { uses: [{ id, key }] }`. From that binding the engine derives ownership gating, gated instances passed into fns, provision seeds, and the release, refresh and reconcile marks. Contributors do not hand-write that plumbing.

The top-level README stops at that summary and points to the "Resources" section of DEVELOPMENT.md. Anyone wiring up a stateful provider has to read that file before estimating the work.

Replay tests need no vendor keys, and live tests skip when credentials are absent

Running anything here requires Deno 2.x. The first command pair checks types and runs the replay suite, which the README counts at 188 tests with zero network access:

bash
git clone https://github.com/monid-ai/monid.git
cd monid

deno task check && deno task test    # types + 188 replay tests, zero network

To hit a real endpoint, export your own vendor key and call the engine:

bash
export TINYFISH_CREDENTIALS_API_KEY=...
deno task engine:run 'tinyfish#search' \
  --query-params '{"query":"solid-state battery suppliers","domain_type":"news"}'

Credential variables follow `<PROVIDER>_CREDENTIALS_<FIELD>`. A one-key provider reads `EXA_CREDENTIALS_API_KEY`, and the bare `EXA_API_KEY` still works. A two-key provider reads `CONTACTOUT_CREDENTIALS_WORK_API_KEY` and `CONTACTOUT_CREDENTIALS_PERSONAL_API_KEY`.

Live tests run only when the provider's credentials are in the environment and skip otherwise. CI therefore needs no vendor keys, but it also means a green CI run says nothing about whether a live API still behaves like its recorded fixture.

The catalog commands browse what is compiled:

bash
deno task catalog providers                  # what exists
deno task catalog endpoints --provider exa   # under one provider
deno task catalog endpoints --category web-search
deno task catalog inspect 'exa#search'       # one endpoint's full contract

Merging a connector needs a hand-reviewed email, so there is no self-serve path

The contribution steps start with reading `connectors/exa/`, the reference implementation, and the authoring guide in DEVELOPMENT.md. Then comes the provider and endpoint, a fixture recorded with `deno task record` and kept trimmed, and a passing `deno task check && deno task test` with no network. Last is the pull request.

A sixth step sits outside GitHub. The submitter emails [email protected] with the PR link, a link to the API docs and the company name. Monid reviews every connector by hand and follows up from there. Passing CI is necessary and not enough.

Because the format is declarative and the contract is written down, step two is work a coding agent can do. AGENT.md is the brief for that: hand it your API docs and this repository, and the pull request is the output.

On repository state: the license is MIT, the primary language is TypeScript, the repo is not archived, and the last push was 2026-10-22. Releases carry catalog tags, with catalog-v0.0.3 on 2026-09-25, catalog-v0.0.4 on 2026-09-30 and catalog-v0.0.5 on 2026-11-03. A 0.0.x version number tells you the catalog format is still young.

Editorial conclusion

Read this repository if you maintain an API and want agents to find it through Monid, or if you want to see how per-call metering is declared in code. Before committing time, run deno task catalog providers and deno task check && deno task test to confirm Deno 2.x works on your machine.

Frequently asked questions

What is Monid AI?

Monid describes itself as OpenRouter for agent tools: one base URL and one key that let an agent reach 2,000+ tools across 72+ providers. The monid-ai/monid repository is the connector layer that describes each endpoint.

What does Monid do?

It lets an agent find a tool with discover, which ranks the catalog by what the job is and returns each candidate with its price, live health and p50 and p95 latency, and then call it. Usage is metered per call and settled on the raw response.

How do I add my API to Monid?

Write a provider and an endpoint under connectors/, record a fixture, make deno task check && deno task test pass, and open a pull request. Then email [email protected] with the PR link, your API docs and your company name.

What does Monid charge when a lookup finds nothing?

Nothing. A vendor error, an unmatched company or an unresolved person completes as data and settles at zero.

Official sources

  1. License: MIT
  2. monid-ai/monid on GitHub
  3. Project website
  4. README
  5. Releases
Community

Where developers are discussing it

Posts on Hacker News, dev.to and Lobsters that link to this repository, found by our scan of those communities. 0 in the last 30 days; newest first.

Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/monid-ai-monid.svg)](https://hysenlabs.com/projects/monid-ai-monid)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/monid-ai-monid.svg)](https://hysenlabs.com/projects/monid-ai-monid)

Was this useful?