
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@orangecheck/agent-cli
Advanced tools
Command-line tool for OC Agent — verify, inspect, and canonicalize delegation / action / revocation envelopes from your shell.
Command-line tool for OC Agent. Verify, inspect, canonicalize, and reason about delegation / action / revocation envelopes from your shell. Exits 0 on success, 1 on any error. Every command supports --json for script-friendly output.
npm i -g @orangecheck/agent-cli
# or run once, no install:
npx @orangecheck/agent-cli verify delegation.json
oc-agent verify <file>Verify an envelope. Accepts a single envelope, or an array [delegation, action|revocation] for full authority verification. Runs the §SPEC 8 algorithm including BIP-322 signature check.
oc-agent verify delegation.json
# → OK · delegation verified
# id: 36d79600…
oc-agent verify '[delegation.json-contents, action.json-contents]'
# → OK · action + delegation verified
Flags:
--skip-sig — skip BIP-322 signature verification (useful for test vectors with placeholder sigs)--skip-temporal — skip issued_at / expires_at checks (for inspecting historical envelopes)--json — emit machine-readable JSONExits 1 with an error code on rejection:
oc-agent verify tampered.json
# → REJECTED · E_BAD_ID
# reconstructed id (…) does not match envelope.id (…)
oc-agent inspect <file>Pretty-print an envelope with key fields and the recomputed id. Works on any kind (delegation / action / revocation).
oc-agent inspect delegation.json
# → kind: agent-delegation
# id: 36d79…
# id(recomputed): 36d79… ✓
# principal: bc1qalice…
# agent: bc1qagent…
# scopes:
# - ln:send(max_sats<=1000,node=03abc)
oc-agent canonical <file>Print the canonical message the envelope commits to (what a signer actually signed via BIP-322). Useful for debugging id mismatches — just diff two runs.
oc-agent canonical delegation.json
# → oc-agent:delegation:v1
# principal: bc1qalice…
# agent: bc1qagent…
# scopes: lock:seal(recipient=bc1qbob)
# bond_sats: 0
# bond_attestation: none
# issued_at: 2026-04-22T12:00:00Z
# expires_at: 2026-04-29T12:00:00Z
# nonce: 0123…cdef
oc-agent scope <string>Parse a scope string and print its canonical form plus the registered-key check.
oc-agent scope 'ln:send(node=03abc,max_sats<=1000)'
# → ok
# canonical: ln:send(max_sats<=1000,node=03abc)
# product: ln
# verb: send
# registered: yes
# constraints:
# - node = 03abc
# - max_sats <= 1000
Flags:
--permissive — accept unregistered products, verbs, and constraint keys--json — machine-readable outputoc-agent subscope <granted> <exercised>Check whether exercised is a sub-scope of granted per SPEC §7.4. Exits 0 (admitted) or 1 (rejected).
oc-agent subscope 'ln:send(max_sats<=1000)' 'ln:send(max_sats=500,node=03abc)'
# → admitted
oc-agent subscope 'stamp:sign(mime=text/markdown)' 'stamp:sign(mime=application/pdf)'
# → rejected (E_SCOPE_DENIED)
# (exit 1)
Great for CI: gate a PR merge on an exercised scope matching a granted grant.
Every file-taking command accepts - to read from stdin:
curl -s https://agent.example.com/delegations/abc.json | oc-agent verify -
# Pretty-print every delegation under ~/delegations/
find ~/delegations -name '*.json' -exec oc-agent inspect {} \;
# Fail the pipeline on any rejected envelope
for f in *.delegation.json; do
oc-agent verify "$f" --json || { echo "bad: $f"; exit 1; }
done
# Batch scope check from a CSV
while IFS=, read -r granted exercised; do
oc-agent subscope "$granted" "$exercised" --json
done < pairs.csv
MIT. See LICENSE.
FAQs
Command-line tool for OC Agent — verify, inspect, and canonicalize delegation / action / revocation envelopes from your shell.
We found that @orangecheck/agent-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.