Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PolicyEngine/policyengine-claude --skill policyengine-api-accessgit clone --depth 1 https://github.com/PolicyEngine/policyengine-claudeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-api-access)<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-api-access"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-api-access/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-api-access"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-api-access.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00220 | $0.06815 |
| Opus 5.5 | $0.00088 | $0.02726 |
| Sonnet 5.5 | $0.00044 | $0.01363 |
| Haiku 4.5 | $0.00022 | $0.00681 |
Grade A, and why
policyengine-api-access scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
response = requests.post(HOUSEHOLD_CALCULATION, json=body, timeout=900) How it starts
The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Reaching the Public API from dashboards and servers
The Public API (PolicyEngine/policyengine-api, https://api.policyengine.org) is becoming
callable only by PolicyEngine's own servers. Once its credential requirement is switched on, it
answers every request without a server credential with 401, except GET/HEAD /health,
GET /v2/openapi.json and CORS preflights. Anything in browser code is public, so a page cannot hold that
credential. Pages go through a server that does.
The rules
- Browser code never calls the Public API: not
api.policyengine.org, and not its Cloud Run addresses (policyengine-api-….a.run.app,policyengine-api-staging-….a.run.app, or a tagged revision's…---policyengine-api-….a.run.app). Browser code is everything that runs in the page: components, hooks, client modules, static exports and anything a bundler puts in the page. - No Public API credential or address goes in a
NEXT_PUBLIC_*orVITE_*variable. Next.js and Vite copy those values into the page's JavaScript. That covers the Auth0 client ID and secret, tokens, and the Public API's URL. - One Auth0 client per calling server, never shared between callers or copied into another repository. The client ID is how the Public API's records identify the caller.
Which route to use
| Where the code runs | How it reaches the Public API |
|---|---|
| A dashboard page (browser) | www.policyengine.org's dashboard API, through @policyengine/api-client |
| A dashboard's precompute script (presets, fixed grids) | The same place as the page's live calculations, so both use one model release: on Pattern B, the dashboard API, with plain HTTPS requests and no credential, within the budget below ("From a dashboard's precompute script"); on Pattern C, the backend's pinned policyengine release in its own process. A precomputed-only dashboard uses the dashboard API, or the pinned package when policyengine-tools' model-version check allows it |
| A dashboard's own backend (Modal, Cloud Run, a Vercel function) | Runs policyengine in its own process and doesn't call the Public API (policyengine-tools, Pattern C). Only a backend that already has a client sends its token in Authorization: Bearer |
| Any other CI job or script | Its own Auth0 client, one token per job run |
| Python analysis or a notebook | The policyengine package (policyengine skill), not REST |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 18d ago First seen · 403 lines · 220 tokens per session scan A bdc1947a999b
policyengine-api-access is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed yesterday), licensed MIT. It adds 220 tokens to every session and 6,815 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-14.
policyengine-api-access compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| policyengine-api-accessPolicyEngine/policyengine-claude | Skill | 31 | yesterday | MIT | A | 220 | Claude Code |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 5d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 695 | yesterday | MIT | A | 105 | Claude Code, Codex |