halal-setup

halal-setup is a command for Claude Code from goww7/halalterminal-claude-skills. It costs 58 tokens per session (1,042 once invoked), scanned C, original, Apache-2.0.

A setup command for obtaining and saving a Halal Terminal API key, which is a credential that lets software access that service.

In plain words
What is it for?
Use it when the key is missing or invalid so the plugin's connection can start working.
Why use it?
It guides first-time setup and checks whether the key is correctly formatted and accepted by the service.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the halalterminal-claude-skills plugin — 9 skills, 2 commands, 1 agent, 1 MCP server shipped together

Good fit Use it when the key is missing or invalid so the plugin's connection can start working.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/goww7/halalterminal-claude-skills/halal-setup
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.

Clone the repo
git clone --depth 1 https://github.com/goww7/halalterminal-claude-skills

Made for: Claude Code.

Or install halalterminal-claude-skills, the plugin that ships this one along with the rest of its 9 skills, 2 commands, 1 agent, 1 MCP server.

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 halal-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/goww7/halalterminal-claude-skills/halal-setup/github.svg)](https://agentmods.dev/commands/goww7/halalterminal-claude-skills/halal-setup)
Your own site
<a href="https://agentmods.dev/commands/goww7/halalterminal-claude-skills/halal-setup"><img src="https://agentmods.dev/badge/commands/goww7/halalterminal-claude-skills/halal-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for halal-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/goww7/halalterminal-claude-skills/halal-setup"><img src="https://agentmods.dev/badge/commands/goww7/halalterminal-claude-skills/halal-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,042 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 4 findings. 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.00058 $0.01042
Opus 5 $0.00029 $0.00521
Sonnet 5 $0.00012 $0.00208
Haiku 4.5 $0.00006 $0.00104

Measured 10d ago against content hash 4c15c3f71035, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

halal-setup scanned grade C with 4 findings 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 10d 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- Do not lecture about methodologies, pricing, or disclaimers here. Save that for skills that run after setup.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 700 ~/.claude/halalterminal

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

### 4b. Merge into `~/.claude/settings.json` under `pluginConfigs`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS -o /dev/null -w '%{http_code}' \
commands/halal-setup.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/halal-setup

Your job is to get the user from "no API key" to "skills working" in under a minute. Be warm and fast. No lecturing about methodologies; no filler.

Step 1 — Guide the user to a key

Print EXACTLY this block, then ask for the key:

Halal Terminal — one-time setup (~30 seconds)

  1. Open https://api.halalterminal.com — enter your email in the Get your free API key in seconds panel. (Free plan, no credit card.)
  2. Check your inbox. You'll receive a key that starts with ht_.
  3. Paste it below.

Ask: "Paste your Halal Terminal API key:"

Step 2 — Validate the format

When the user replies, verify:

  • Starts with ht_
  • Length ≥ 20
  • No whitespace

If invalid: "That doesn't look like a Halal Terminal key — they start with ht_ and are longer than 20 characters. Please paste again." Re-prompt.

Step 3 — Validate against the live API

Use the Bash tool (WebFetch cannot send custom headers). Run:

curl -sS -o /dev/null -w '%{http_code}' \
  -H 'X-API-Key: <THE_KEY>' \
  https://api.halalterminal.com/api/education/methodologies

Interpret the HTTP status:

  • 200 → valid. Continue.
  • 401 / 403"The Halal Terminal API rejected that key. Make sure you pasted the full value from your email, with no extra whitespace. Try again." Re-prompt.
  • 429"That key is already over its quota. Top up at https://halalterminal.com/dashboard, or create a new key at https://api.halalterminal.com." Re-prompt.
  • Anything else → "Halal Terminal API is unreachable right now, but I'll save the key anyway. Run /halal-doctor later to retry." Continue.

Step 4 — Persist the key (TWO locations)

Both locations are required:

4a. Write ~/.claude/halalterminal/credentials — authoritative for the MCP bridge

mkdir -p ~/.claude/halalterminal
chmod 700 ~/.claude/halalterminal

Write the file with ONLY this single line (no extra blank lines, no other content):

HALALTERMINAL_API_KEY=<THE_KEY>

Then: chmod 600 ~/.claude/halalterminal/credentials.

Read the full file on GitHub · 101 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. 10d ago First seen · 101 lines · 58 tokens per session scan C 4c15c3f71035

Subscribe to this mod's changes

halal-setup is a command published in the GitHub repository goww7/halalterminal-claude-skills (5 stars, last pushed 17d ago), licensed Apache-2.0. It adds 58 tokens to every session and 1,042 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 4 findings (strips warnings and disclaimers, asks for root, reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.