oatda-check-balance

oatda-check-balance is a skill for Claude Code from devcsde/oatda-skills. It costs 84 tokens per session (1,153 once invoked), scanned A, original, Apache-2.0.

A skill that checks an OATDA account’s credits, total usage, and remaining balance. OATDA is the service whose budget is used for certain AI calls.

In plain words
What is it for?
Use it to check your balance, review usage, verify a budget, or diagnose an insufficient-credits error.
Why use it?
It lets you confirm available credits before an expensive call and helps explain failures caused by insufficient funds.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oatda plugin — 12 skills shipped together

Good fit Use it to check your balance, review usage, verify a budget, or diagnose an insufficient-credits error.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/devcsde/oatda-skills/oatda-check-balance
Install

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.

Any agent
npx skills add devcsde/oatda-skills --skill oatda-check-balance
Clone the repo
git clone --depth 1 https://github.com/devcsde/oatda-skills

Made for: Claude Code.

Or install oatda, the plugin that ships this one along with the rest of its 12 skills.

Wrote 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.

agentmods badge for oatda-check-balance

README.md
[![agentmods](https://agentmods.dev/badge/skills/devcsde/oatda-skills/oatda-check-balance.svg)](https://agentmods.dev/skills/devcsde/oatda-skills/oatda-check-balance)
Your own site
<a href="https://agentmods.dev/skills/devcsde/oatda-skills/oatda-check-balance"><img src="https://agentmods.dev/badge/skills/devcsde/oatda-skills/oatda-check-balance.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01153
Opus 5 $0.00042 $0.00576
Sonnet 5 $0.00017 $0.00231
Haiku 4.5 $0.00008 $0.00115

Measured 7d ago against content hash 75fe027216f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

oatda-check-balance 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 7d 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.

- The key resolution script and subsequent `curl` commands **must run in the same shell session**. Either run all commands in one session, or chain them (e.g., `export OATDA_API_KEY=... && curl ...`).
skills/oatda-check-balance/SKILL.md · 119 lines

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.

OATDA Check Balance

Check the current OATDA account balance, total usage, and available balance. Useful before expensive image/video/LLM calls to confirm the user has enough credits.

When to Use

Use this skill when the user wants to:

  • Check current OATDA credits / balance
  • See total usage spent so far
  • Verify there is enough budget before running a costly call (image, video, long LLM run)
  • Diagnose why an OATDA call returned 402 Insufficient credits

Prerequisites

The user needs an OATDA API key. Check in this order:

  1. $OATDA_API_KEY environment variable
  2. ~/.oatda/credentials.json config file

If neither exists, tell the user:

You need an OATDA API key. Get one at https://oatda.com, then set it: export OATDA_API_KEY=your_key_here

Step-by-Step Instructions

1. Resolve the API key

# Check env var first; if empty, auto-load from credentials file
if [[ -z "$OATDA_API_KEY" ]]; then
  export OATDA_API_KEY=$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)
fi

# Verify key exists (show first 8 chars only)
echo "${OATDA_API_KEY:0:8}"

If the output is empty or null, stop and ask the user to configure their API key.

IMPORTANT:

  • Never print the full API key. Only show the first 8 characters for verification.
  • The key resolution script and subsequent curl commands must run in the same shell session. Either run all commands in one session, or chain them (e.g., export OATDA_API_KEY=... && curl ...).

2. Make the API call

curl -s -X GET "https://oatda.com/api/v1/user/credits" \
  -H "Authorization: Bearer $OATDA_API_KEY"

3. Parse the response

The API returns JSON:

{
  "id": "uuid",
  "userId": "uuid",
  "balance": 25.00,
  "updatedAt": "2026-06-22T14:30:00.000Z",
  "usageSum": 7.42,
  "actualBalance": 17.58
}
Field Type Meaning
balance number Top-up total (credits ever purchased)
usageSum number Total amount consumed by API calls so far
actualBalance number What the user can still spend = balance - usageSum
updatedAt ISO timestamp Last time the balance row was refreshed

Read the full file on GitHub · 119 lines

Changes

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.

  1. 7d ago First seen · 119 lines · 84 tokens per session scan A 75fe027216f9

Subscribe to this mod's changes

oatda-check-balance is a skill published in the GitHub repository devcsde/oatda-skills (0 stars, last pushed 8d ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,153 once invoked, about $0.0004 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-31.