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 PostHog/posthog-foss --skill routing-outbound-api-callsgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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/posthog/posthog-foss/routing-outbound-api-calls)<a href="https://agentmods.dev/skills/posthog/posthog-foss/routing-outbound-api-calls"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/routing-outbound-api-calls/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/posthog/posthog-foss/routing-outbound-api-calls"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/routing-outbound-api-calls.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.00180 | $0.03084 |
| Opus 5.5 | $0.00072 | $0.01234 |
| Sonnet 5.5 | $0.00036 | $0.00617 |
| Haiku 4.5 | $0.00018 | $0.00308 |
Grade A, and why
routing-outbound-api-calls scanned grade A with 0 findings 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 today.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Routing outbound API calls
posthog/egress/ owns every outbound third-party API call outside the data warehouse sources, whoever owns the credential, and the shared budgets those sources draw on.
posthog/egress/README.md is the reference for the mechanisms, and each domain's own README.md holds the facts about that API.
This skill holds the procedure and the traps.
Route first
| Situation | Route |
|---|---|
| A vendor calls PostHog (an inbound webhook) | /adding-inbound-webhooks |
A secret-URL webhook (a Slack incoming webhook, an interactivity response_url) |
Out of scope. The URL is the credential, so it must never become a metric label. |
| Throttling requests that reach PostHog's own API | posthog/rate_limit.py, not egress |
A budget that needs burst capacity, refunds, or a real per-caller Retry-After |
/using-redis-token-buckets |
A data warehouse source under products/warehouse_sources/sources/<vendor>/ |
Keep the client in the vendor folder, built on the sources SDK, so the PR stays vendor-only. Use egress only when PostHog owns the credential or several PostHog jobs share the quota. Then the vendor imports the domain's helper from the SDK, as slack_request is imported. The domain or the SDK re-export lands first in its own PR, and the data warehouse team decides. See /implementing-warehouse-sources. |
| A warehouse source outside the vendor folders calls an API that has a domain | Call <domain>_request with a tracked session whose adapter retries are off (make_tracked_session(retry=Retry(total=0))), as the GitHub source does, and retry above that call. Adapter retries would resend after admission, outside the budget and the metrics. |
A domain for the API exists. Check ls posthog/egress/*/README.md, and search for the API's host |
Call its <domain>_request helper or typed client. Read its README for identity and lanes. Never add a second client. |
| Any other new third-party API. Pick the base with the rows below | New domain under posthog/egress/, from the first call |
| PostHog owns the credential, and the vendor publishes a request limit or bills per call | Gated domain: EgressClient, or AsyncEgressClient for an aiohttp client |
| PostHog owns the credential, and the vendor publishes no request limit that a rate budget can model | Record-only domain: RecordedEgressClient |
| The customer owns the credential, and other PostHog work can draw on the same vendor quota at the same time, a second job of the same feature included | Gated domain. Every attempt goes through the gate, because pacing inside one caller cannot see the others. See Identity below for the scope. |
| The customer owns the credential, and no other PostHog work draws on the same quota | Record-only domain. The caller honors 429 and Retry-After. |
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.
- today Changed · +4 lines bc6f670b09f2
- yesterday Changed · +10 lines · +17 tokens per session 2961a0370ddb
- 22d ago Changed e8a6f16e0a9f
- 2mo ago Changed d36b7848fb54
- 2mo ago Changed · +1 lines ea58d596a4fd
- 2mo ago First seen · 105 lines · 163 tokens per session scan A fec7190a6f4c
routing-outbound-api-calls is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 180 tokens to every session and 3,084 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.
routing-outbound-api-calls compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| routing-outbound-api-callsPostHog/posthog-foss | Skill | 736 | today | MIT | A | 180 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 6d 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 | today | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 105 | Claude Code, Codex |