AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Tokenlab Cost Routing

skill-hedging8563-tokenlab-skills-tokenlab-cost-routing · by hedging8563

Choose TokenLab models and fallback chains using public pricing, task fit, latency expectations, and native endpoint needs before writing production routing code.

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add skill-hedging8563-tokenlab-skills-tokenlab-cost-routing

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-hedging8563-tokenlab-skills-tokenlab-cost-routing)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
29d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Tokenlab Cost Routing? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

TokenLab Cost Routing

Use this skill when a user asks how to reduce TokenLab cost, compare model prices, pick fallbacks, or route requests by quality, latency, and budget.

What this skill should deliver

  • A compact routing recommendation with exact public TokenLab model IDs.
  • A cost-aware fallback chain for the user's workload.
  • A catalog/pricing lookup path that can be rerun.
  • A note on which endpoint family each model should use.
  • Guardrails for when not to switch models because doing so would change output, safety, or request semantics.

Preferred approach

  1. Identify the workload and constraints:
  • chat, coding, agent loop, image, video, audio, embedding, rerank, translation, or multimodal
  • quality floor
  • latency target
  • budget or cost ceiling
  • native endpoint requirement
  1. Read live public catalog signals before recommending:
  • GET https://api.tokenlab.sh/v1/models
  • GET https://api.tokenlab.sh/v1/models?recommended_for=
  • GET https://api.tokenlab.sh/v1/models/:model
  • GET https://api.tokenlab.sh/v1/models/:model/pricing
  1. Build a chain with roles:
  • primary quality model
  • balanced default
  • fast fallback
  • budget fallback
  1. If the user asks for exact cost, compute from live pricing and their estimated token/media volume. State units and assumptions.
  2. For non-chat requests, inspect model details before changing parameters or endpoint family.

Output format

  • One sentence stating workload and assumptions.
  • A table with Route role, Model ID, Endpoint, Why, and When to fall back.
  • One catalog command and one pricing command.
  • A short implementation note for retries, rate limits, and user approval when quality would drop.

Avoid

  • Do not invent prices, discounts, or model counts.
  • Do not choose a cheaper model if that would silently remove required native behavior, tools, media support, safety constraints, or structured output guarantees.
  • Do not expose TokenLab internal channel, physical provider, or routing details.
  • Do not turn a user-provided model into a different model without saying why.
  • Do not hardcode a fallback list without saying when it was checked or how to refresh it.

Edge Cases

  • If catalog or pricing endpoints are unavailable, say that routing cannot be price-verified and provide only an example pattern.
  • If the user asks for "cheapest", include capability and reliability tradeoffs.
  • If billing risk is high, require explicit user approval before adding automatic fallback to paid media/video generation.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.