ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.
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 agentmods add skills/openonion/connectonion/topupnpx skills add openonion/connectonion --skill topupgit clone --depth 1 https://github.com/openonion/connectonionWrote 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/openonion/connectonion/topup)<a href="https://agentmods.dev/skills/openonion/connectonion/topup"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/topup.svg" alt="Measured on agentmods" 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.00124 | $0.01536 |
| Opus 5 | $0.00062 | $0.00768 |
| Sonnet 5 | $0.00025 | $0.00307 |
| Haiku 4.5 | $0.00012 | $0.00154 |
Grade A, and why
topup 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 6d 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.
curl -s "$BACKEND/api/v1/auth/me" -H "Authorization: Bearer $TOKEN" How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Top-up Skill
Answer one question — "how much do I have, and how do I add more" — and hand back a recharge link the person can click without logging in, because their own key is already in it.
Assume the person may not be technical. They came to run a browser or an agent, not to learn about public keys. Do the lookup for them; say the result in plain money.
Step 0: Is connectonion here at all?
co --version
- It runs → go to Step 1.
- It does not → this machine has no
coyet. Run the install-connectonion skill first (it installsco, and itsco initstep creates the key this skill needs), then come back here. Do not ask the user to install anything by hand — the install skill does it.
Step 1: The key that identifies this account
The recharge page fills in from the account's public key, and it lives in ~/.co. Read it —
never type it, never show its full value in logs:
python3 -c "from connectonion import address; from pathlib import Path; d=address.load(Path.home()/'.co'); print(d['address'] if d else '')"
- Prints a
0x…address → that isKEY. Keep it. - Prints nothing → the account was never created. Run install-connectonion (its
co initwrites the key), then retry this step. On Windows usepy -3orpython.
Step 2: The balance
Ask the API with the stored token — co already has it, so this needs nothing from the
user. /auth/me returns balance_usd directly (credits minus what has been spent):
TOKEN=$(python3 -c "from connectonion.cli.commands.project_cmd_lib import load_api_key; print(load_api_key() or '')")
BACKEND=$(python3 -c "from connectonion.backend import backend_url; print(backend_url())")
curl -s "$BACKEND/api/v1/auth/me" -H "Authorization: Bearer $TOKEN"
Read balance_usd from the JSON. (Verified against production: /auth/me gives
balance_usd; /api/v1/tokens/balance gives the raw credits_usd and total_spent_usd
whose difference is the same number — use /auth/me, it does the subtraction.)
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.
- 6d ago First seen · 119 lines · 124 tokens per session scan A ee9c1176a5eb
topup is a skill published in the GitHub repository openonion/connectonion (1,481 stars, last pushed yesterday), licensed Apache-2.0. It adds 124 tokens to every session and 1,536 once invoked, about $0.0006 per session on Opus 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-08-30.
Other skills, from other repositories
finance
Comprehensive Finance API integration skill for real-time and historical financial data analysis, market research, and investment decision-making. Priority use cases: stock price queries, market data analysis, company financial information, portfolio tracking, market news retrieval, stock screening, technical…
Polymarket
Inspect prediction-market questions, prices, and resolution conditions carefully before summarizing or comparing market signals.
release
Prepare and publish stable Agent Lightning releases through the repository's version bump, pull-request checks, merge, tag, PyPI trusted-publishing, and versioned-documentation workflows. Use when asked to plan, cut, verify, or explain a release; treat nightly TestPyPI builds as a separate path.
agent-lightning
Provides the action space, tradeoffs, and evaluation context for improving an editable AI agent against a benchmark while preserving its deployment contract. Use when optimizing agent accuracy, cost, latency, or reliability.
cost-efficiency-analyzer
Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too…
executive-financial-briefing
Generates a concise executive-level financial briefing or summary suitable for a CEO, CFO, or board presentation. Use when the user asks for a summary, briefing, executive summary, board update, financial overview, financial health check, or "how is the business doing". Covers the full P&L picture in one page. Also…