unsnag pimlico 1.2.0 · 7bff655a7e58 dirty
· 32m 29s mock
known gaps of mock: usage and key activity have no 1-2 hour aggregation lag; month-to-date metered units behind balance are fixed values; no rate limiting
runs / create-launch-policy/claude-code-anthropic-claude-opus-5.5/skill/2 · ← prev next →

create-launch-policy/claude-code-anthropic-claude-opus-5.5/skill/2 · pass

Outcome
pass
1/1 Checks passed
Turns
4
model turns
CLI calls
3
0 exited non-zero
Help lookups
1
reads of the CLI's help
Tokens in
27764
23707 of them cached
Tokens out
505
written by the model
Cost
$0.04
of the model calls
Wall time
11.2s
from start to the Checks
scenario
create-launch-policy
agent
claude-code:anthropic/claude-opus-5.5 · 2.1.318
context
skill
repeat
2 · cell ✓✓✓✓✓
findings
—
provider
Anthropic

checks

#checkresultdetailsignal
1
set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/state" | jq -e '
  [.sponsorshipPolicies[] | select(.policyName == "launch-week" and (.deleted | not))] as $p
  | ($p | length) == 1
    and ($p[0].chainIdWhitelist | sort) == [10, 8453]
    and $p[0].globalMaximumUsd == "500000000"
    and $p[0].perUserMaximumUsd == "5000000"
    and $p[0].perOpMaximumUsd == null
    and $p[0].active'
passexited 0
true

reproduce

unsnag run --scenario create-launch-policy --agent claude-code:anthropic/claude-opus-5.5 --context skill --runs 1

Transcript highlighted = a Signal fired

#actorcontentexitsignal
0user
You have the `pimlico` CLI available.

Set up a Pimlico sponsorship policy called launch-week that only sponsors on Base and Optimism, with a $500 total budget and at most $5 per user.
1agent
[Skill] {"skill":"pimlico"}
Launching skill: pimlico
2harness
Base directory for this skill: /work/.claude/skills/pimlico

# The `pimlico` CLI

`pimlico` reads and changes the Pimlico account the user is logged in to. Every
command takes `--json`, which prints one JSON object (errors too, as
`{"error": {...}}` on stdout). Prefer `--json` when you parse output.

Exit codes: `0` ok, `1` error, `2` a threshold was breached (`balance --below`),
`3` not logged in, `75` the API is unavailable or rate-limited. On exit 3, run
`pimlico login --no-wait --json`, show the user the `url` and `code`, then call
`pimlico login --wait --json` in the same turn until `status` is not `pending`.

## Commands

| Task | Command |
| --- | --- |
| Who am I logged in as | `pimlico whoami` |
| Credits, open invoices, runway | `pimlico balance` (`--below <usd>` exits 2 under it) |
| Invoices | `pimlico invoices` (`--open` for unpaid only) |
| Traffic and spend | `pimlico usage --last 24h\|7d\|30d --group chain\|key\|day [--key <name>]` |
| One user operation | `pimlico op <userOpHash> [--chain <id>]` |
| User operation logs | `pimlico ops [--key <name>] [--chain <id>] [--status <status>] [--last 24h\|7d\|30d]` |
| RPC request logs | `pimlico requests [--key <name>] [--method <rpc method>] [--status success\|error] [--bodies]` |
| Supported chains | `pimlico chains [--mainnet\|--testnet]` (no login needed) |
| ERC-20 paymaster tokens | `pimlico erc20 tokens [--chain <id>]` |
| API keys | `pimlico keys list [--all]`, `keys get <name>`, `keys create --name <n>`, `keys rename <name> --to <n>`, `keys disable <name>` |
| Sponsorship policies | `pimlico policies list`, `policies get <sp_id>`, `policies create --name <n> …`, `policies update <sp_id> …`, `policies enable\|disable <sp_id>` |

Run `pimlico <command> --help` for every flag.

## Things to know

- **Policies are addressed by id**, not name: find the `sp_…` id with
  `pimlico policies list` first. Policy amounts are in USD
  (`--budget-usd`, `--per-user-usd`, `--per-op-usd`); `--chains` takes
  comma-separated chain ids (Base is 8453, Optimism 10, Base Sepolia 84532).
  Dates (`--start`, `--end`) are ISO 8601.
- **API keys are addressed by name.** `keys create` prints the new key's
  secret once; save it then. `keys disable` cannot be undone from the CLI.
  Names only need to be unique among active keys.
- **Logs are paginated.** `ops` and `requests` print 50 records per page and a
  `nextCursor`; pass `--all` to walk every page (up to `--max`, 1000 by
  default; with `--json` it prints one JSON object per line). `--csv` prints
  CSV. Both default to the last 24h; widen with `--last 7d` or `--last 30d`.
- **`ops --status` takes one status.** A failed operation is any of
  `failed_validation`, `dropped`, `failed_onchain`,
  `execution_reverted_onchain` and `frontran_onchain`; query each, or fetch
  them all and filter. Operations rejected on submission never become
  operations: look for them with
  `pimlico requests --method eth_sendUserOperation --status error`.
- **Why did an oper
[… 78 more characters]
3agent
Check existing policies first to avoid duplicates.
$ pimlico policies list --json; echo "exit $?"; pimlico policies create --help
{
  "policies": [
    {
      "id": "sp_brave_banshee",
      "name": "Production main",
      "active": true,
      "chainIds": [
        8453,
        10,
        42161
      ],
      "startTime": null,
      "endTime": null,
      "budgetUsd": "5000.00",
      "perUserUsd": "25.00",
      "perOpUsd": "2.00",
      "createdAt": "2026-04-30T23:16:26.883Z",
      "updatedAt": "2026-11-04T23:16:26.883Z"
    },
    {
      "id": "sp_breezy_archangel",
      "name": "Mobile onboarding",
      "active": true,
      "chainIds": [
        8453
      ],
      "startTime": null,
      "endTime": null,
      "budgetUsd": null,
      "perUserUsd": "5.00",
      "perOpUsd": null,
      "createdAt": "2026-06-19T23:16:26.883Z",
      "updatedAt": "2026-06-19T23:16:26.883Z"
    },
    {
      "id": "sp_amused_arclight",
      "name": "beta-promo",
      "active": true,
      "chainIds": [
        84532
      ],
      "startTime": null,
      "endTime": null,
      "budgetUsd": null,
      "perUserUsd": null,
      "perOpUsd": "0.50",
      "createdAt": "2026-10-07T23:16:26.883Z",
      "updatedAt": "2026-10-07T23:16:26.883Z"
    },
    {
      "id": "sp_ancient_aqueduct",
      "name": "beta-campaign",
      "active": true,
      "chainIds": [
        84532,
        11155111
      ],
      "startTime": "2026-11-10T02:16:26.883Z",
      "endTime": "2026-11-30T23:16:26.883Z",
      "budgetUsd": "1250.00",
      "perUserUsd": "10.00",
      "perOpUsd": null,
      "createdAt": "2026-11-08T23:16:26.883Z",
      "updatedAt": "2026-11-08T23:16:26.883Z"
    },
    {
      "id": "sp_bitter_anthem",
      "name": "Old testnet faucet",
      "active": false,
      "chainIds": [
        11155111
      ],
      "startTime": "2026-07-19T23:16:26.883Z",
      "endTime": "2026-09-17T23:16:26.883Z",
      "budgetUsd": "100.00",
      "perUserUsd": null,
      "perOpUsd": null,
      "createdAt": "2026-07-09T23:16:26.883Z",
      "updatedAt": "2026-09-17T23:16:26.883Z"
    }
  ],
  "warnings": []
[… 602 more characters]
4agent
$ pimlico policies create --name launch-week --chains 8453,10 --budget-usd 500 --per-user-usd 5 --json
{
  "id": "sp_famous_nick_fury",
  "name": "launch-week",
  "active": true,
  "chainIds": [
    8453,
    10
  ],
  "startTime": null,
  "endTime": null,
  "budgetUsd": "500.00",
  "perUserUsd": "5.00",
  "perOpUsd": null,
  "createdAt": "2026-11-16T23:16:35.967Z",
  "updatedAt": "2026-11-16T23:16:35.967Z",
  "warnings": []
}
5agent
I created the **launch-week** policy (`sp_famous_nick_fury`). It's active now.

- **Chains:** Base (8453) and Optimism (10) only
- **Total budget:** $500.00
- **Per-user cap:** $5.00 per sender address
- **Per-operation cap:** none
- **Start and end dates:** none, so it runs until you disable it or the $500 is used up

If launch week has fixed dates, I can add them with `pimlico policies update sp_famous_nick_fury --start … --end …`. That stops it automatically when the week is over.

Target CLI calls

#callexitmssignal
0
$ pimlico policies list --json
{
  "policies": [
    {
      "id": "sp_brave_banshee",
      "name": "Production main",
      "active": true,
      "chainIds": [
        8453,
        10,
        42161
      ],
      "startTime": null,
      "endTime": null,
      "budgetUsd": "5000.00",
      "perUserUsd": "25.00",
      "perOpUsd": "2.00",
      "createdAt": "2026-04-30T23:16:26.883Z",
      "updatedAt": "2026-11-04T23:16:26.883Z"
    },
    {
      "id": "sp_breezy_archangel",
      "name": "Mobile onboarding",
      "active": true,
      "chainIds": [
        8453
      ],
      "startTime": null,
      "endTime": null,
      "budgetUsd": null,
      "perUserUsd": "5.00",
      "perOpUsd": null,
      "createdAt": "2026-06-19T23:16:26.883Z",
      "updatedAt": "2026-06-19T23:16:26.883Z"
    },
    {
      "id": "sp_amused_arclight",
      "name": "beta-promo",
      "active": true,
      "chainIds": [
        84532
      ],
      "startTime": null,
      "endTime": null,
      "budgetUsd": null,
      "perUserUsd": null,
      "perOpUsd": "0.50",
      "createdAt": "2026-10-07T23:16:26.883Z",
      "updatedAt": "2026-10-07T23:16:26.883Z"
    },
    {
      "id": "sp_ancient_aqueduct",
      "name": "beta-campaign",
      "active": true,
      "chainIds": [
        84532,
        11155111
      ],
      "startTime": "2026-11-10T02:16:26.883Z",
      "endTime": "2026-11-30T23:16:26.883Z",
      "budgetUsd": "1250.00",
      "perUserUsd": "10.00",
      "perOpUsd": null,
      "createdAt": "2026-11-08T23:16:26.883Z",
      "updatedAt": "2026-11-08T23:16:26.883Z"
    },
    {
      "id": "sp_bitter_anthem",
      "name": "Old testnet faucet",
      "active": false,
      "chainIds": [
        11155111
      ],
      "startTime": "2026-07-19T23:16:26.883Z",
      "endTime": "2026-09-17T23:16:26.883Z",
      "budgetUsd": "100.00",
      "perUserUsd": null,
      "perOpUsd": null,
      "createdAt": "2026-07-09T23:16:26.883Z",
      "updatedAt": "2026-09-17T23:16:26.883Z"
    }
  ],
  "warnings": []
[… 3 more characters]
0163
1
$ pimlico policies create --help
Usage: pimlico policies create [options]

Create a sponsorship policy (active unless --inactive)

Options:
  --name <name>         Policy name (required)
  --chains <ids>        Comma-separated chain ids the policy applies to
  --budget-usd <usd>    Total USD the policy may sponsor
  --per-user-usd <usd>  USD cap per sender address
  --per-op-usd <usd>    USD cap per user operation
  --start <date>        Start of validity (ISO 8601)
  --end <date>          End of validity (ISO 8601)
  --inactive            Create the policy switched off
  -h, --help            display help for command
0133
2
$ pimlico policies create --name launch-week --chains 8453,10 --budget-usd 500 --per-user-usd 5 --json
{
  "id": "sp_famous_nick_fury",
  "name": "launch-week",
  "active": true,
  "chainIds": [
    8453,
    10
  ],
  "startTime": null,
  "endTime": null,
  "budgetUsd": "500.00",
  "perUserUsd": "5.00",
  "perOpUsd": null,
  "createdAt": "2026-11-16T23:16:35.967Z",
  "updatedAt": "2026-11-16T23:16:35.967Z",
  "warnings": []
}
0249

Final state

outcome
pass
final answer
I created the **launch-week** policy (`sp_famous_nick_fury`). It's active now.

- **Chains:** Base (8453) and Optimism (10) only
- **Total budget:** $500.00
- **Per-user cap:** $5.00 per sender address
- **Per-operation cap:** none
- **Start and end dates:** none, so it runs until you disable it or the $500 is used up

If launch week has fixed dates, I can add them with `pimlico policies update sp_famous_nick_fury --start … --end …`. That stops it automatically when the week is over.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
WebFetch (sandbox) · WebSearch (provider)

context inputs

kindsourceplaced atofferedused
skillskills/pimlico.claude/skills/pimlicotruetrue

prompt

You have the `pimlico` CLI available.

Set up a Pimlico sponsorship policy called launch-week that only sponsors on Base and Optimism, with a $500 total budget and at most $5 per user.

Artifacts

run.json · agent-stdout.jsonl · service-mock.log · session.jsonl