cli

cli is a skill for Claude Code, Codex from arcjet/arcjet-js. It costs 48 tokens per session (656 once invoked), scanned A, original, Apache-2.0.

A command-line tool for connecting a project to Arcjet, a service for protecting applications with request and security rules. It signs in, selects a team and site, and stores the site's key in an environment file.

In plain words
What is it for?
Use it to authenticate, list teams and sites, retrieve an Arcjet key, inspect activity, and create or promote remote rules after a dry run.
Why use it?
It avoids manually finding credentials and remote settings, while keeping the key out of source code. It also provides terminal commands for inspecting requests, guards, and rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to authenticate, list teams and sites, retrieve an Arcjet key, inspect activity, and create or promote remote rules after a dry run.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcjet/arcjet-js/cli
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 arcjet/arcjet-js --skill cli
Clone the repo
git clone --depth 1 https://github.com/arcjet/arcjet-js

Made for: Claude Code, Codex.

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 cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcjet/arcjet-js/cli/github.svg)](https://agentmods.dev/skills/arcjet/arcjet-js/cli)
Your own site
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/cli"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/cli/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 cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/cli"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 656 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 7 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Supply Chain · line 34
    Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
    Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
  • medium MCP Rug Pull · line 5
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 21
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 23
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 25
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 26
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 27
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00048 $0.00656
Opus 5.5 $0.00019 $0.00262
Sonnet 5.5 $0.00010 $0.00131
Haiku 4.5 $0.00005 $0.00066

Measured 13d ago against content hash 2a5d8b17366a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli scanned grade A with 0 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 13d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

arcjet-skills/skills/cli/SKILL.md · 54 lines

What it actually says

Arcjet CLI

Preferred way to get a real ARCJET_KEY before writing Arcjet code. Do not leave the key as a TODO.

npx -y @arcjet/cli@latest auth status        # exit 2 = not signed in
npx -y @arcjet/cli@latest auth login         # add --team-id team_… to pick a team

npx -y @arcjet/cli@latest teams list --output json
npx -y @arcjet/cli@latest sites list --team-id <team_id> --output json
# if no suitable site: previews and exits 4 – show the user `changes`, then run `confirmCommand`
npx -y @arcjet/cli@latest sites create --team-id <team_id> --name "<project>"
npx -y @arcjet/cli@latest sites get-key --site-id <site_id> --output json --fields key

Write key to the project's env file as ARCJET_KEY=ajkey_.... Match existing env-file conventions and .gitignore. Never hardcode the key.

Do not:

  • Use --fields on list commands. It keeps top-level keys only, so teams list --fields id,name prints {}.
  • Pass --confirm on the first run of sites create, projects create, or rules create/update/delete/promote. Preview, show changes, then confirm.
  • Use a project key (aj_prj_key_) as ARCJET_KEY. The SDK needs the actor (site) key ajkey_. Project keys are for coding-agent hooks and OTel.
  • Look for guards explain or --guard-id. Use guards details --site-id <id> --decision-id gdec_….

Exit codes: 0 ok, 1 general, 2 auth, 3 validation, 4 confirmation required.

Investigate: requests list → requests details → requests explain; guards list → guards details; watch / guards watch; briefing. Remote rules: rules create (DRY_RUN) → analyze dry-run-impact → rules promote. The CLI has no Guard policy commands.

If the CLI cannot run, load @arcjet/skills#mcp. Manual: in https://console.arcjet.com select New actor and copy the Actor key.

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. 13d ago Changed 2a5d8b17366a
  2. 18d ago Changed · +9 lines scan C → A 2dc9ad1e6d7d
  3. 1mo ago Changed 835588274714
  4. 1mo ago Changed f0f0557742ca
  5. 1mo ago Changed 6cd95615b010
  6. 2mo ago Changed d5da9911e669
  7. 2mo ago Changed d03e4c550024
  8. 2mo ago First seen · 45 lines · 48 tokens per session scan C 413e9a4018fb

Subscribe to this mod's changes

cli is a skill published in the GitHub repository arcjet/arcjet-js (704 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 656 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

cli compared with skills from other repositories

cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cliarcjet/arcjet-jsSkill7042d agoApache-2.0A48Claude Code, Codex
clinical-trial-protocol-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA70Claude Code, Codex
claude-d3js-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA25Claude Code, Codex
adr-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA89Claude Code, Codex
linear-claude-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA15Claude Code, Codex
playwright-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA60Claude Code, Codex
terraform-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA10Claude Code, Codex