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 / top-key-30d/claude-code-anthropic-claude-opus-5.5/skill/5 · ← prev next →

top-key-30d/claude-code-anthropic-claude-opus-5.5/skill/5 · 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
27112
22848 of them cached
Tokens out
853
written by the model
Cost
$0.04
of the model calls
Wall time
12.0s
from start to the Checks
scenario
top-key-30d
agent
claude-code:anthropic/claude-opus-5.5 · 2.1.318
context
skill
repeat
5 · cell ✓✓✓✓✓
findings
—
provider
Anthropic

checks

#checkresultdetailsignal
1
answer contains truth: curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r ".keys | max_by(.userOps30d) | .name"
passthe answer contains "production-web" · expected: production-web

reproduce

unsnag run --scenario top-key-30d --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.

Which of our Pimlico API keys handled the most user operations over the last 30 days?
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
$ pimlico usage --last 30d --group key --json; echo "exit $?"
{
  "from": "2026-10-17T23:37:54.039Z",
  "to": "2026-11-16T23:37:54.039Z",
  "groupBy": "key",
  "rows": [
    {
      "group": "production-web",
      "requests": 9000,
      "apiCredits": 177949,
      "sponsoredUsd": "135.42"
    },
    {
      "group": "staging",
      "requests": 840,
      "apiCredits": 16433,
      "sponsoredUsd": "1.65"
    },
    {
      "group": "mobile-app",
      "requests": 5200,
      "apiCredits": 104425,
      "sponsoredUsd": "31.75"
    },
    {
      "group": "analytics-readonly",
      "requests": 3100,
      "apiCredits": 28390,
      "sponsoredUsd": "0.00"
    },
    {
      "group": "fixture-key",
      "requests": 2422,
      "apiCredits": 50164,
      "sponsoredUsd": "8.55"
    }
  ],
  "totals": {
    "requests": 20562,
    "apiCredits": 377361,
    "sponsoredUsd": "177.37"
  },
  "warnings": []
}
exit 0
4agent
Usage reports RPC requests, not user operations, so I'll count the ops logs per key.
$ pimlico ops --help; pimlico keys list --all --json
Usage: pimlico ops [options]

User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`

Options:
  --key <name>       Only this API key, by name (see `pimlico keys list`); every
                     active key when omitted
  --chain <chainId>  Only this EVM chain
  --status <status>  Only operations whose latest status is this (choices:
                     "received", "failed_validation", "queued",
                     "added_to_mempool", "submitted", "dropped",
                     "included_onchain", "frontran_onchain", "failed_onchain",
                     "execution_reverted_onchain")
  --last <window>    Only records from the last 24h, 7d or 30d (choices: "24h",
                     "7d", "30d", default: "24h")
  --limit <n>        Records per page, 1 to 100 (default: 50)
  --cursor <cursor>  Continue from a previous page's nextCursor
  --all              Walk every page until exhausted or --max; with --json
                     prints NDJSON
  --max <n>          Stop --all after this many records (default: 1000)
  --csv              Print CSV instead of a table
  -h, --help         display help for command
{
  "keys": [
    {
      "name": "legacy-2023",
      "disabled": true,
      "createdAt": "2025-10-12T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": null,
      "requests30d": 0,
      "userOps30d": 0
    },
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:37:49.539Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:32:09.704Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:32:49.221Z",
      "requests30d": 5200,
  
[… 755 more characters]
5agent
**production-web** handled the most user operations over the last 30 days, with **1,180**. That's about 50% of the 2,336 total across all keys.

| API key | User ops (30d) | RPC requests (30d) | Sponsored (USD) |
| --- | ---: | ---: | ---: |
| **production-web** | **1,180** | 9,000 | $135.42 |
| mobile-app | 700 | 5,200 | $31.75 |
| fixture-key | 380 | 2,422 | $8.55 |
| staging | 76 | 840 | $1.65 |
| analytics-readonly | 0 | 3,100 | $0.00 |
| legacy-2023 (disabled) | 0 | 0 | — |

The user-op counts come from the `userOps30d` field in `pimlico keys list --all`. `pimlico usage --group key` only counts RPC requests, not user operations, so I used it just for the request and sponsorship columns. I didn't count the operation logs one by one to double-check these totals, but production-web's lead is large enough that the answer wouldn't change.

`analytics-readonly` sent 3,100 requests but no user operations, so it's only reading data. `fixture-key` was created about six weeks ago and has already handled 380 user operations and $8.55 of sponsorship. If it's only meant for tests, that may be worth checking.

Target CLI calls

#callexitmssignal
0
$ pimlico usage --last 30d --group key --json
{
  "from": "2026-10-17T23:37:54.039Z",
  "to": "2026-11-16T23:37:54.039Z",
  "groupBy": "key",
  "rows": [
    {
      "group": "production-web",
      "requests": 9000,
      "apiCredits": 177949,
      "sponsoredUsd": "135.42"
    },
    {
      "group": "staging",
      "requests": 840,
      "apiCredits": 16433,
      "sponsoredUsd": "1.65"
    },
    {
      "group": "mobile-app",
      "requests": 5200,
      "apiCredits": 104425,
      "sponsoredUsd": "31.75"
    },
    {
      "group": "analytics-readonly",
      "requests": 3100,
      "apiCredits": 28390,
      "sponsoredUsd": "0.00"
    },
    {
      "group": "fixture-key",
      "requests": 2422,
      "apiCredits": 50164,
      "sponsoredUsd": "8.55"
    }
  ],
  "totals": {
    "requests": 20562,
    "apiCredits": 377361,
    "sponsoredUsd": "177.37"
  },
  "warnings": []
}
0207
1
$ pimlico ops --help
Usage: pimlico ops [options]

User operation logs of your API keys, newest first, with revert reason, policy
and cost. Operations rejected on submission (validation errors such as AA24)
never become operations: find them with `pimlico requests --method
eth_sendUserOperation --status error`

Options:
  --key <name>       Only this API key, by name (see `pimlico keys list`); every
                     active key when omitted
  --chain <chainId>  Only this EVM chain
  --status <status>  Only operations whose latest status is this (choices:
                     "received", "failed_validation", "queued",
                     "added_to_mempool", "submitted", "dropped",
                     "included_onchain", "frontran_onchain", "failed_onchain",
                     "execution_reverted_onchain")
  --last <window>    Only records from the last 24h, 7d or 30d (choices: "24h",
                     "7d", "30d", default: "24h")
  --limit <n>        Records per page, 1 to 100 (default: 50)
  --cursor <cursor>  Continue from a previous page's nextCursor
  --all              Walk every page until exhausted or --max; with --json
                     prints NDJSON
  --max <n>          Stop --all after this many records (default: 1000)
  --csv              Print CSV instead of a table
  -h, --help         display help for command
0141
2
$ pimlico keys list --all --json
{
  "keys": [
    {
      "name": "legacy-2023",
      "disabled": true,
      "createdAt": "2025-10-12T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": null,
      "requests30d": 0,
      "userOps30d": 0
    },
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:37:49.539Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:32:09.704Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:32:49.221Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:37:44.857Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:21:54.461Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:37:49.539Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:11:27.024Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
0215

Final state

outcome
pass
final answer
**production-web** handled the most user operations over the last 30 days, with **1,180**. That's about 50% of the 2,336 total across all keys.

| API key | User ops (30d) | RPC requests (30d) | Sponsored (USD) |
| --- | ---: | ---: | ---: |
| **production-web** | **1,180** | 9,000 | $135.42 |
| mobile-app | 700 | 5,200 | $31.75 |
| fixture-key | 380 | 2,422 | $8.55 |
| staging | 76 | 840 | $1.65 |
| analytics-readonly | 0 | 3,100 | $0.00 |
| legacy-2023 (disabled) | 0 | 0 | — |

The user-op counts come from the `userOps30d` field in `pimlico keys list --all`. `pimlico usage --group key` only counts RPC requests, not user operations, so I used it just for the request and sponsorship columns. I didn't count the operation logs one by one to double-check these totals, but production-web's lead is large enough that the answer wouldn't change.

`analytics-readonly` sent 3,100 requests but no user operations, so it's only reading data. `fixture-key` was created about six weeks ago and has already handled 380 user operations and $8.55 of sponsorship. If it's only meant for tests, that may be worth checking.
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.

Which of our Pimlico API keys handled the most user operations over the last 30 days?

Artifacts

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