0xatd/cheaptokens-skills/cheaptokens

Claude Code and agent skill by 0xatd/cheaptokens-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use CheapTokens to spend discounted Venice.ai API credits on the user's current task. Trigger when a user pastes a Venice/CheapTokens key, asks to use CheapTokens/cheap credits/Venice for work, invokes /cheaptokens, or needs budget-capped OpenAI-compatible inference. Handles Same-Day expiring keys and Prepaid API Keys, discovers live Venice capabilities, routes text/image/audio/video/embedding tasks through HTTPS calls, and prints provider attribution.

Install

npx vskill@latest install 0xatd/cheaptokens-skills/cheaptokens

SKILL.md

The same SKILL.md was published earlier as 0xatd/cheaptokens-skills/cheaptokens.

CheapTokens — discounted Venice.ai credits for agents

CheapTokens.ai sells discounted Venice.ai API credits:

  • Same-Day Credits: time-decay discounted credits for work today.

They expire at 23:59:59 UTC on the purchase date. Capacity affects availability and maximum purchase size, not the time-based price.

  • Prepaid API Key: one reusable Venice key with prepaid balance and a

selected daily credit reserve. The reserve is debited from prepaid balance each UTC day.

Agents should usually pay with USDC on Base via the x402 protocol. Human buyers can use card checkout when available. Either way, the buyer receives a real Venice.ai API key that works against the OpenAI-compatible endpoint https://api.venice.ai/api/v1.

This skill is one file. There is nothing to install. Any agent that can read SKILL.md and make HTTPS calls (curl / fetch / OpenAI SDK / web_fetch / built-in HTTP tool) can use it.

Why this skill exists

CheapTokens is optimized for cheap burst inference and lightweight API key management. Same-Day keys are best when the task needs to run today at the largest available discount. Prepaid keys are better when a buyer wants one reusable key and a predictable daily reserve. This skill turns either key into immediate action: paste the key (or point the agent at a secret/env var), ask normally, and the agent discovers Venice capabilities, routes the task, spends the key, and attributes what actually ran.


Honest execution model — read this first

The hosting agent (OpenClaw, Claude Code, Cursor, Codex, Cline, aider, etc.) is running on some default model. That host provider is what generates the conversational tokens you see in chat. The agent cannot transparently swap the provider behind its own generation mid-session. If a user hands you a CheapTokens/Venice key and you say "switched to Venice" without executing a real HTTPS call against api.venice.ai, every token you produced still came from the host provider. That is a silent lie.

The only mechanism that actually spends the user's key is an outbound HTTPS call to https://api.venice.ai/api/v1/<endpoint> made by the agent. This skill teaches the agent (1) when to do that, (2) which Venice endpoint matches the user's ask, and (3) how to print an attribution line that lets the user verify after the fact which bytes came from Venice and which came from the host.

If the agent has no HTTP tool at all, it cannot use the key. Say so plainly and stop. Do not invent attribution.


Step 1 — Detect: is this a CheapTokens key?

Run this once per key per session, not on every turn.

http
GET https://cheaptokens.ai/api/status/<LAST6>

Where <LAST6> is the last 6 characters of the pasted key.

ResponseMeaningAction
200 with JSONCheapTokens credit. Cache { status, creditsIssuedUsd, expiresAt, veniceKeyLast6, veniceUsage, isStableKey, keyBalanceUsd, dailyReservedCapacityUsd, prepaid } for the session.Continue. Use CheapTokens-aware copy + attribution.
404Plain Venice key (or a typo).Continue. Use the key normally; just don't show CheapTokens-specific balance copy.
429Rate-limited.Wait ~2s and retry once. If still rate-limited, skip detection and proceed.
Anything elseTreat as unknown. Skip detection and proceed.

If status !== "active" or a Same-Day key's expiresAt is in the past, the key is dead. Tell the user once and stop. Do not try to burn a dead key. For Prepaid API Keys, use keyBalanceUsd, dailyReservedCapacityUsd, and prepaid.balanceRunwayDays to decide whether the account has enough prepaid balance for the current reserve.

Immediately after an active CheapTokens status check, compute:

js
const minutesRemaining = Math.floor((Date.parse(expiresAt) - Date.now()) / 60_000);

Then choose the flow before asking the user anything:

Time remainingFlowRequired behavior
< 30mFast modeSkip menus, auto-pick a live model, skip priority mode/config writes, start immediately.
30m-119mNormal-shortAsk at most one model-choice question if needed. Skip priority mode/config writes.
>= 120mFull flowNormal discovery and optional priority-mode discussion are allowed.

Every acknowledgement while a Same-Day CheapTokens key is active must show a countdown, not only an absolute timestamp:

CheapTokens active: $1.75 issued, 9m left until 23:59 UTC. Fast mode - using claude-sonnet-4-6 if live, then starting now.

Priority mode or provider config mutation is only offered for Same-Day keys when minutesRemaining >= 120. Below that, it is a time sink and should be skipped. For Prepaid API Keys, show prepaid balance and daily reserve instead of urgency countdown.

Example success body:

json
{
"status": "active",
"dates": ["2026-04-23"],
"creditsIssuedUsd": 1.75,
"expiresAt": "2026-04-23T23:59:59.999Z",
"veniceKeyLast6": "abc123",
"isStableKey": false,
"keyBalanceUsd": null,
"dailyReservedCapacityUsd": null,
"prepaid": null,
"veniceUsage": { "remaining": { "diem": 1.2 }, "used": { "diem": 0.5 } }
}

Safe key handling

The fastest workflow is pasting a CheapTokens key into a trusted local agent. That is acceptable when speed matters, but treat the key as a bearer credential: anyone who sees it can spend the remaining credits until it runs out. CheapTokens limits blast radius because Same-Day keys are budget-capped and expire at 23:59:59 UTC on the purchase date, but pasted keys are still not private.

Recommended paths:

  1. Fast path: paste the key directly into a trusted private agent

session.

  1. Safer path: store the key in an environment variable or local

.env file and ask the agent to read it from there.

  1. Safest path: store the key in a secret manager or runtime secret

store and give the agent the secret name, not the raw key.

Example safer local workflow:

bash
export VENICE_API_KEY="VENICE_INFERENCE_KEY_..."
# Then ask the agent: use CheapTokens with $VENICE_API_KEY for this task

Do not paste keys into public/shared agents, commit keys to repos, or include them in screenshots/logs. If a key is exposed, use CheapTokens Account recovery: card buyers request a private email link, while wallet buyers sign to reveal or reissue eligible wallet-owned keys.


Step 2 — Discover live capabilities

Before you tell a user what Venice can or can't do, ask Venice. Never hardcode model IDs or modality assumptions. Models rotate. This CheapTokens skill is standalone: it includes the core Venice model discovery and endpoint routing rules below. Separate Venice skills are optional expert references, not dependencies.

http
GET https://api.venice.ai/api/v1/models
Authorization: Bearer <KEY>

Optional ?type= filter. Cache results for the session. Prefer one /models?type=all call when budget/latency permits, then filter locally. For smaller probes, query only the modalities relevant to the ask.

Model type filters:

typeWhat it meansMain endpoint(s)
textChat/completions models. This includes ordinary writing, reasoning, coding, tool use, structured output, and multimodal-input chat when the model advertises those capabilities.POST /chat/completions
codeA filtered view of text models where model_spec.capabilities.optimizedForCode === true. Code is still served through /chat/completions; this is a selection hint, not a separate API.POST /chat/completions
imageText-to-image generation.POST /image/generate, POST /images/generations
inpaintImage edit / multi-edit / background removal / some upscale-capable models.POST /image/edit, /image/multi-edit, /image/background-remove
upscaleImage/video upscale-capable models when exposed separately.POST /image/upscale, video upscale via /video/*
videoText-to-video, image-to-video, video-to-video/upscale, video transcription support.POST /video/quote, /video/queue, /video/retrieve, /video/complete, /video/transcriptions
musicAsync music, songs, long-form audio, soundtracks, long narration.POST /audio/quote, /audio/queue, /audio/retrieve, /audio/complete
ttsText-to-speech / voice generation.POST /audio/speech
asrSpeech-to-text transcription.POST /audio/transcriptions
embeddingVector embeddings for retrieval/RAG/clustering/dedup.POST /embeddings
allFull catalog. Use this when deciding across modalities.All of the above

Each row's model_spec exposes capabilities, constraints, and pricing. Treat that as the source of truth for what the model can do and what it costs.

Hard rule for model availability questions: before answering any "is model X on Venice?" question, you must GET /api/v1/models with the active key and inspect data[].id. Do not answer from memory, from this skill's examples, or from training data. If the key has not been validated yet, say "checking..." and fetch the list before answering.

Venice commonly hosts Anthropic/Claude, GLM, Qwen, DeepSeek, Grok, Gemma, Mistral, and other model families, but the live /models response is always authoritative. Do not tell the user Claude/Opus, Sonnet, or any other model family is unavailable without checking /api/v1/models first.

Suggested text/code routing, filtered against the live model list:

Task typeFirst choiceFallback
Complex reasoning / large refactorsclaude-opus-4-7, then claude-opus-4-6zai-org-glm-5-1
Everyday coding / fast iterationclaude-sonnet-4-6z-ai-glm-5-turbo
Cheapest general purposez-ai-glm-5-turbodeepseek-v3.2 or deepseek-v32
Code-heavy / large contextqwen3-coder-480b-a35b-instructqwen3-coder-480b-a35b-instruct-turbo
Hardest reasoningqwen3-235b-a22b-thinking-2507claude-opus-4-7

If a listed model is missing, fall through to the next live choice or the relevant /models/traits default. Models are added and removed frequently.

Text/code selection rule: for coding tasks, first look for type=code or type=text models with optimizedForCode; if none are available, pick the best text reasoning/default model from traits. Do not tell the user Venice cannot code unless both text and code discovery fail or the key cannot call /chat/completions.

Trait shortcuts to avoid hardcoding IDs:

http
GET https://api.venice.ai/api/v1/models/traits?type=text
GET https://api.venice.ai/api/v1/models/traits?type=code
GET https://api.venice.ai/api/v1/models/traits?type=image
GET https://api.venice.ai/api/v1/models/traits?type=video
GET https://api.venice.ai/api/v1/models/traits?type=tts

Returns a data map like { "default": "<id>", "fastest": "<id>", "default_reasoning": "<id>", "highest_quality": "<id>", "default_vision": "<id>", "function_calling_default": "<id>", ... }. Use these instead of baking model names into prompts.


Step 3 — Triage the user's ask against live capabilities

Classify the request, then route:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0xatd/cheaptokens-skills/cheaptokens/badge)](https://verified-skill.com/skills/0xatd/cheaptokens-skills/cheaptokens)

Something wrong with this skill or its page? Tell us.