controller-cli

controller-cli is a skill for Claude Code, Codex from keep-starknet-strange/starknet-agentic. It costs 45 tokens per session (1,555 once invoked), scanned C, original, MIT.

A guide for using Cartridge Controller, a command-line tool that creates human-approved sessions for Starknet transactions.

In plain words
What is it for?
Use it to create scoped sessions and run approved Starknet transactions with machine-readable JSON results.
Why use it?
It helps keep blockchain actions tied to an explicit network, limited permissions, and human approval.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present.

Part of the starknet-agentic-skills plugin — 19 skills, 2 commands, 1 plugin shipped together

Good fit Use it to create scoped sessions and run approved Starknet transactions with machine-readable JSON results.

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

Made for: Claude Code, Codex.

Or install starknet-agentic-skills, the plugin that ships this one along with the rest of its 19 skills, 2 commands, 1 plugin.

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 controller-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/controller-cli"><img src="https://agentmods.dev/badge/skills/keep-starknet-strange/starknet-agentic/controller-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,555 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00045 $0.01555
Opus 5.5 $0.00018 $0.00622
Sonnet 5.5 $0.00009 $0.00311
Haiku 4.5 $0.00005 $0.00155

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

Security

Grade C, and why

controller-cli scanned grade C with 2 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 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/controller_safe.py, scripts/validate_hex_address.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/cartridge-gg/controller-cli/main/install.sh | bash

Makes network callslowCapability

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

curl -fsSL https://raw.githubusercontent.com/cartridge-gg/controller-cli/main/install.sh | bash
skills/controller-cli/SKILL.md · 228 lines

How it starts

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

Cartridge Controller CLI

Use this skill when you need to run the Cartridge Controller CLI (controller-cli) to create a scoped session (human-approved) and then execute Starknet transactions via that session.

When to Use

  • Operating Cartridge Controller sessions with explicit network and least-privilege policies.
  • Running controller or controller_safe.py for human-approved Starknet transactions.

When NOT to Use

  • General Starknet scripting that does not rely on Cartridge Controller.
  • Contract authoring, testing, deployment, or security audit workflows.

Related modules: skills catalog.

Non-Negotiable Rules

  • Always pass --json and treat outputs as JSON.
  • Always be explicit about network. Never rely on defaults:
    • --chain-id SN_MAIN|SN_SEPOLIA, or
    • --rpc-url <explicit url>.
  • controller register requires human browser authorization. Do not automate/bypass it.
  • Use least-privilege policies only. Do not add token transfer permissions unless explicitly requested.
  • Transaction links: use Voyager only:
    • Mainnet: https://voyager.online/tx/0x...
    • Sepolia: https://sepolia.voyager.online/tx/0x...

Quick Start

curl -fsSL https://raw.githubusercontent.com/cartridge-gg/controller-cli/main/install.sh | bash
export PATH="$PATH:$HOME/.local/bin"
controller --version

This skill includes a small wrapper that enforces the rules above and normalizes output:

python3 scripts/controller_safe.py status
python3 scripts/controller_safe.py register --preset loot-survivor --chain-id SN_MAIN
python3 scripts/controller_safe.py execute 0xCONTRACT entrypoint 0xCALLDATA --rpc-url https://api.cartridge.gg/x/starknet/sepolia

Behavior:

  • Adds --json if missing.
  • Refuses to run call|execute|register|transaction without --chain-id or --rpc-url.
  • Parses stdout as JSON.
  • If .status == "error", prints error_code, message, recovery_hint and exits non-zero.

Deterministic Workflow

Read the full file on GitHub · 228 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 228 lines · 45 tokens per session scan C afbbc83c2720

Subscribe to this mod's changes

controller-cli is a skill published in the GitHub repository keep-starknet-strange/starknet-agentic (81 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 1,555 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.