Skip to content
PluginStats

@hypequery/agent weekly downloads statistics

By hypequery (3 listings) · npm · AI SDKs

Put a hypequery Cloud project's tenant-safe analytics in your own agent: mint end-user tokens locally, and use the hosted MCP tools as AI SDK, Anthropic SDK and OpenAI Agents SDK tools

View on npm Fresh · Dec 6, 2026

@hypequery/agent has 5,331 recorded weekly downloads on npm, a change of +90.3% over the past 7 days, ranking #1504 of 3,247 tracked listings.

Weekly downloads
5,331
Official API · Dec 5, 2026
7-day growth
+90.3%
+2.5K weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1504
▲ 172 in 7 days

About @hypequery/agent

@hypequery/agent

Put a hypequery Cloud project's tenant-safe analytics in your own agent: mint end-user tokens in your backend, then give your agent the project's tools.

npm install @hypequery/agent

Mint a token

Put a hypequery Cloud project's tenant-safe analytics in your own agent.

mintAgentToken() signs an end-user token in your backend with a project's managed signing key. It makes no network call, so you can mint one per session or per request. The tenant comes from the signed token, never from the model, so a prompt can't reach another customer's data.

import { mintAgentToken } from '@hypequery/agent';

// In your backend, when a session starts.
const { token, mcpUrl, expiresAt } = await mintAgentToken({
  signingKey: process.env.HYPEQUERY_AGENT_KEY!,
  tenant: session.orgId,
  subject: session.userId,
  permissionSet: 'customers',
});

// Any MCP client: send the token as a bearer token to mcpUrl.
Options
Option
signingKeyThe private key JSON Cloud showed when you created the key (Settings → Customer access → Signing keys for in-app agents). Keep it in HYPEQUERY_AGENT_KEY.
tenantThe end user's customer. Every query is scoped to it.
subjectThe end user, as your app identifies them.
permissionSetThe permission set the end user acts with, by name. Required.
constraintsOptional filters every query carries: { filter, operator: 'eq', value } or { filter, operator: 'in', value: [...] }, at most 8.
expiresInSecondsLifetime, 1 to 900. Defaults to 900 (15 minutes, Cloud's ceiling).
projectOptional. The project's protocol name (for example acme:logistics). Defaults to the key's hq_project.
endpointOptional. The project's customer endpoint, https://<endpoint>.hypequery.app, or its /mcp URL. Defaults to the key's hq_endpoint. https only, except on localhost.

An explicit project or endpoint wins over the key's own. If neither gives one, mintAgentToken() throws AgentTokenError naming it.

It returns { token, mcpUrl, expiresAt }. Mint a new token before expiresAt. An option Cloud would refuse throws AgentTokenError, whose field names it.

The token is an EdDSA JWT whose kid names your key, with audience hypequery-agent:<project>. Python's hypequery.agent.mint_agent_token() mints the same token for the same input.

Runs on Node.js 20 or later and on runtimes with Web Crypto Ed25519 (Deno, Bun, Cloudflare Workers, Vercel Edge).

Docs: https://hypequery.com/docs/cloud/in-app-agents

Give your agent the tools

Add hypequery's analytics tools to an agent you already run. You get the tools your tenant MCP endpoint serves (list_datasets, get_dataset_schema and query_dataset) as tools for the Vercel AI SDK, the Anthropic SDK or the OpenAI Agents SDK. You don't need an MCP client or to write any tools.

AI SDK
import { streamText } from 'ai';
import { hypequeryTools } from '@hypequery/agent/ai-sdk';

const tools = await hypequeryTools({ url: mcpUrl, token });
const result = streamText({ model, tools, messages });
Anthropic SDK
import Anthropic from '@anthropic-ai/sdk';
import { hypequeryTools } from '@hypequery/agent/anthropic';

const hq = await hypequeryTools({ url: mcpUrl, token });
const response = await anthropic.messages.create({ model, max_tokens: 1024, tools: hq.tools, messages });
messages.push({ role: 'assistant', content: response.content });
messages.push({ role: 'user', content: await hq.toolResults(response.content) });

hq.runTool(name, input) calls a single tool. hq.toolResult(block) answers a single tool_use block.

OpenAI Agents SDK
import { Agent, run } from '@openai/agents';
import { hypequeryTools } from '@hypequery/agent/openai-agents';

const agent = new Agent({ name: 'Analyst', tools: await hypequeryTools({ url: mcpUrl, token }) });
const result = await run(agent, 'How many shipments were late last month?');
What you get
  • The server's schemas. The tools are listed from the endpoint once per hypequeryTools() call. Each input schema is passed to your SDK exactly as the server sent it, with no re-typing.
  • The server's errors. When a tool call fails (bad input, an unknown dataset, a timeout or a rate limit), the model gets { "error": { code, category, message, hint, docsUrl, requestId, ... } }, the same error envelope MCP clients see, so it can fix the call and retry. If the endpoint refuses the token or can't be reached, the call throws HypequeryToolsError instead.
  • Request ids. Use onResult to capture the request id of each call, which you can then look up in hypequery Cloud.
  • https only. url must use https, so the token is never sent unencrypted. Plain http is allowed for localhost only. Any other URL throws a TypeError before a request is made.
  • Short-lived tokens. token can be a string or a function, sync or async, that returns the current token. The function is called before each request.
const tools = await hypequeryTools({
  url: mcpUrl,
  token: () => currentToken(),        // e.g. re-mint before the 15-minute expiry
  onResult: (result) => log(result.tool, result.requestId),
});
Without an SDK

createRemoteToolsClient (exported from @hypequery/agent and from every subpath; formerly createHypequeryToolsClient, which still works) returns a client with listTools(), callTool(name, input) and close(), for any other agent loop. Every adapter also accepts a client in place of its options, so you can close the MCP session yourself. If you don't close it, the session closes after idleTimeoutMs with no calls (default 60 seconds).

Peer dependencies

ai, @anthropic-ai/sdk and @openai/agents are optional peer dependencies. Install only the SDK you use. The Anthropic adapter imports nothing from its SDK at runtime.

License

Apache-2.0

Description from the npm listing.

  • hypequery
  • agent
  • ai-agents
  • mcp
  • ai-sdk
  • anthropic
  • openai-agents
  • tools
  • clickhouse
  • semantic-layer
  • jwt
  • multi-tenant
  • analytics

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@hypequery/agent weekly downloads on npm, last 90 days: 5,331 weekly downloads as of Dec 5, 2026.@hypequery/agentWeekly downloads on npm · Last 90 days5,331downloads / week01K2K3K4K5K6K7K8KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@hypequery/agent weekly downloads on npm, last 90 days: 5,331 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@hypequery/agent weekly downloads growth on npm: +90.3% over 7 days, 30-day growth unavailable, 90-day growth unavailable.@hypequery/agentWeekly downloads growth on npm5,331downloads / week now7-day growth+2,529 weekly downloads+90.3%30-day growth+5,331 weekly downloadsInsufficient history90-day growth+5,331 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@hypequery/agent weekly downloads growth on npm: +90.3% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@hypequery/agent npm ranking history: currently #1504 (by weekly downloads).@hypequery/agentnpm ranking · by weekly downloads · Last 90 days#1504current rank#1200#1300#1400#1500#1600#1700Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 17, 2026 – Dec 6, 2026 · 20 observations · Updated Dec 5, 2026pluginstats.com
@hypequery/agent npm ranking history: currently #1504 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 76, #4 (overall #1,504)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 6, #14 (overall #114)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (135)
Recent weekly downloads observations for @hypequery/agent
Date (UTC)Weekly downloadsChange vs. previous
5,331-154
5,485+491
4,994+147
4,847-173
5,020-156
5,176+1.6K
3,574+772
2,802+334
2,468-36
2,504-787
3,291-397
3,688+386
3,302-1.4K
4,670—

Similar npm AI SDKs plugins

All 20 @hypequery/agent alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@hypequery/agent. First seen Nov 17, 2026; last successful collection Dec 6, 2026. See the methodology.