# Crun Account Credits

> Check a Crun API account credit balance and estimate whether a validated media task is affordable. Use before every new Crun media task, including user-specified models, and when a request reports insufficient credits.

- **Type:** Skill
- **Install:** `agentstack add skill-crunteam-crun-agent-skills-crun-account-credits`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [CrunTeam](https://agentstack.voostack.com/s/crunteam)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [CrunTeam](https://github.com/CrunTeam)
- **Source:** https://github.com/CrunTeam/crun-agent-skills/tree/main/skills/crun-account-credits
- **Website:** https://crun.ai

## Install

```sh
agentstack add skill-crunteam-crun-agent-skills-crun-account-credits
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Crun Account Credits

Use `../../runtime/crun_cli.py`. Let it resolve `CRUN_API_KEY` (the `~/.crun/.env` file first, then the environment variable). If configuration is missing, the error carries `configuration_options`; recommend the first option — the ready-to-run `python "/crun_cli.py" config set-api-key ` command, which persists the key into `~/.crun/.env` — without exposing or requesting the key in chat.

## Check the balance

```text
python /crun_cli.py credits
```

Report the numeric `balance` exactly as returned. Do not infer currency or generation count from the balance alone.

## Check affordability

Estimate the final model and exact validated input before every new task:

```text
python /crun_cli.py task estimate --model  --input-file 
```

Use `estimated_credits`, `balance`, and `affordable` from the response. Do not submit when `affordable` is false or missing. Re-estimate after changing the model or any price-sensitive input, and before each batch unless the user explicitly accepts partial completion.

When the balance is insufficient, report the current model, estimate, and balance. Obtain explicit permission before proposing a different model, then validate and estimate the replacement. Follow `../crun-task-runner/SKILL.md` for every creation and authorization gate.

## Source & license

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

- **Author:** [CrunTeam](https://github.com/CrunTeam)
- **Source:** [CrunTeam/crun-agent-skills](https://github.com/CrunTeam/crun-agent-skills)
- **License:** MIT
- **Homepage:** https://crun.ai

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-crunteam-crun-agent-skills-crun-account-credits
- Seller: https://agentstack.voostack.com/s/crunteam
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
