- Home
- Skills
- Agents & Orchestration
- Local AI Utilities - 3 Offline Model Tools
Works with the AI Agents you already use
Local AI Utilities - 3 Offline Model Tools
Three small utilities for people working with local or hosted language models.
$5
Local AI Utilities - 3 Offline Model Tools
Example session with this skill installed
Request: "This is an 8B Q4 GGUF. Roughly how many tokens is my prompt, and will the model fit in 6 GB of VRAM?"
The agent runs
python - --text 'hello world, sample prompt' <<'PY' (ai_token.py source)
PY
python - model.gguf <<'PY' (ai_gguf.py source)
PY
python - model.gguf --vram 6 --ctx 8192 <<'PY' (ai_vram.py source)
PY
- Read your context and instructions
- Compiled the local ai utilities
Result
TOKENS ~5 (heuristic)
CHARS 17
GGUF: model.gguf
version: 3
architecture: llama
parameter_count: 8,000,000,000 (8.00B)
quantization_version: 2
tensors: 0 (header-only test file)
VRAM estimate: 8.00B params @ Q4
model footprint: ~4.19 GiB
context 8192 allowance: ~0.06 GiB
estimated need: ~4.25 GiB
budget: 6.00 GiB verdict: FITS (headroom ~1.75 GiB)
note: static estimate; loader/driver overhead not included
If exact counting is needed and tiktoken is absent:
Missing dependency: tiktoken
Install locally with: pip install tiktoken
Or omit --encoding for a dependency-free estimate.
No weights were read past the header, no model was downloaded and no API was contacted.
Connects securely to your tools. The creator never sees your data.
About this skill
Three small utilities for people working with local or hosted language models. They answer "how many tokens?", "what is in this GGUF header?" and "will it fit in my VRAM?" without downloading weights or calling a model API.
What it does
- Token count - a dependency-free CJK-aware byte/word heuristic, or an exact count when
tiktokenand an encoding name are supplied. - GGUF inspect - parse the GGUF header of a local file and print architecture, parameter count, quantisation and other key-value metadata.
- VRAM estimate - estimate model footprint and fit from the header plus a VRAM budget, with a context-length allowance.
How it works
Every action is one self-contained Python script using only the standard library on its default path. The GGUF parser reads the header bytes and stops before tensor data, so even a very large model file is cheap to inspect. The token heuristic treats CJK characters as roughly one token and other text as roughly four characters per token; exact counting needs local tiktoken.
Where it stops
All numbers are static estimates for planning, not benchmarks. The heuristic is not a substitute for the tokenizer your model actually uses. VRAM estimates ignore loader overhead, drivers, other processes, MoE offload details and real context usage. The token action does not call an API, and no action downloads a model.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
VRAM estimates ignore system overhead, drivers, and MoE active-parameter logic. Precise token counting requires the optional tiktoken library. GGUF tools read headers only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.9+
- Optional
- tiktoken (exact token counts)
Requires Python 3.9+. Default paths use only the standard library; optional tiktoken may fetch its encoding table on first use.
Permissions
files read (user-selected text files and GGUF files), no files written except standard output; optional local tiktoken import; no network on the default paths; no API keys; no environment variables; no secrets stored.