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/2 · ← prev next →

top-key-30d/claude-code-anthropic-claude-opus-5.5/skill/2 · pass

Outcome
pass
1/1 Checks passed
Turns
5
model turns
CLI calls
5
0 exited non-zero
Help lookups
1
reads of the CLI's help
Tokens in
35741
31208 of them cached
Tokens out
1011
written by the model
Cost
$0.05
of the model calls
Wall time
20.8s
from start to the Checks
scenario
top-key-30d
agent
claude-code:anthropic/claude-opus-5.5 · 2.1.318
context
skill
repeat
2 · 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
{
  "from": "2026-10-17T23:20:46.773Z",
  "to": "2026-11-16T23:20:46.773Z",
  "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": []
}
4agent
Usage reports RPC requests, not user operations. I'll count the operations themselves.
$ 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:20:41.390Z",
      "boost": false,
      "lastUsedAt": null,
      "requests30d": 0,
      "userOps30d": 0
    },
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:20:41.390Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:15:01.555Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:20:41.390Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:15:41.072Z",
      "requests30d": 5200,
  
[… 755 more characters]
5agent
The key list includes 30-day user-op counts. I'll check the top key against the actual operation logs.
$ for k in production-web mobile-app; do echo -n "$k: "; pimlico ops --key $k --last 30d --all --max 10000 --json | grep -c '"userOpHash"'; done
production-web: 1234 records in 25 pages
1234
mobile-app: 708 records in 15 pages
708
6agent
**`production-web`** handled the most user operations in the last 30 days, about 1,180, which is roughly 50% of all operations.

| 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 `pimlico keys list`. I checked the top two keys against the operation logs, and the logs show a few more: 1,234 for `production-web` and 708 for `mobile-app`. The gap is probably because the two commands use slightly different time windows or count different operation statuses. Either way, the ranking stays the same.

`analytics-readonly` sent 3,100 requests but no user operations, so it's only being used for reads.

Target CLI calls

#callexitmssignal
0
$ pimlico usage --last 30d --group key --json
{
  "from": "2026-10-17T23:20:46.773Z",
  "to": "2026-11-16T23:20:46.773Z",
  "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": []
}
0185
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
0153
2
$ pimlico keys list --all --json
{
  "keys": [
    {
      "name": "legacy-2023",
      "disabled": true,
      "createdAt": "2025-10-12T23:20:41.390Z",
      "boost": false,
      "lastUsedAt": null,
      "requests30d": 0,
      "userOps30d": 0
    },
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:20:41.390Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:15:01.555Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:20:41.390Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:15:41.072Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:20:41.390Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:20:36.708Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:20:41.390Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:04:46.312Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:20:41.390Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T22:54:18.875Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
0171
3
$ pimlico ops --key production-web --last 30d --all --max 10000 --json
{"userOpHash":"0x8497fe299408a4fa09991e98340e4aeea7b5dc3f0f1315b06debafec4e672e32","chainId":8453,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x13f5794d5d1302332ee9a10aaaadb6bd6d20ea54","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:19:53.681Z"}
{"userOpHash":"0xa28c8a8bd1b819283d12ded571613c5506a719dc36b924483bf99f11adeb3dce","chainId":42161,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xe408e454496404967a895b0b9e280100a54fb190","revertReason":null,"policy":"sp_brave_banshee","costUsd":null,"key":"production-web","createdAt":"2026-11-16T23:17:08.116Z"}
{"userOpHash":"0x0f5656ee42a86ffd7715626ee1aaaf3673aa94d6341e0248760054182df2fe47","chainId":10,"status":"included_onchain","pending":false,"transactionHash":"0xc41c1533c437ffc35dae561b22dce2195bd8be2f9772f92ddf33159cc3dfd347","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xbee51ccb71fd291605fbd9df7ed201329cfb892c","revertReason":null,"policy":"sp_brave_banshee","costUsd":"0.044000","key":"production-web","createdAt":"2026-11-16T22:54:37.202Z"}
{"userOpHash":"0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb2d65d63a71218ee93edd843c4d8a762630895bc","revertReason":null,"policy":"sp_brave_banshee","costUsd":"0.077000","key":"production-web","createdAt":"2026-11-16T22:23:26.738Z"}
{"userOpHash":"0xa6b6f32de6b62ed7b31a97c463a5da4e2121c4558c5e7c52a24a735859ad8770","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0x8f614b11aad637360e6ee7d430fb2f803d3747ad2022a5522498103056580840","entryPoint":"0x00000
[… 580786 more characters]
1234 records in 25 pages
04498
4
$ pimlico ops --key mobile-app --last 30d --all --max 10000 --json
{"userOpHash":"0xa5b9efbd692417f9d8b58f906fb8b17dcad903dc09f0e85ba2ea3ef7e7b422d4","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0xccbafd93fcba162ef5738eee8a4bfba4ceb98746ca148289a3c9dd328f54a407","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xace6e9da39092dad3bc38307687fd4c2206a58d7","revertReason":null,"policy":"sp_breezy_archangel","costUsd":"0.022000","key":"mobile-app","createdAt":"2026-11-16T21:57:24.360Z"}
{"userOpHash":"0xcfa2d034319c53ab1e1a529fe79da53793b88c40c5735469f9471ee00ff1e838","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0xa30d25c24e17600d4b1eb9da6cf3ef3542b49bd21ed9e455da513492433a92c4","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb4b240babf635c98f9e7ec29858108ba79fbe19b","revertReason":null,"policy":"sp_breezy_archangel","costUsd":"0.044000","key":"mobile-app","createdAt":"2026-11-16T19:04:15.566Z"}
{"userOpHash":"0xaf06c87ad6fd835c19f68b1184c7b0820a97e2febb71c070d533897a87ba9c49","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0x1570b0adb5a03db2e08a6e1b0e1e7d25406c1c22c7e3390735da241bfa084a65","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xef23b710ddaeed1f32b67a0d46d0e968aa8dca97","revertReason":null,"policy":"sp_breezy_archangel","costUsd":"0.033000","key":"mobile-app","createdAt":"2026-11-16T18:59:00.616Z"}
{"userOpHash":"0xa9b9728b046bea5381f5a3f85b33e3f3f078f8dc18e7820b079db7058c923bde","chainId":8453,"status":"included_onchain","pending":false,"transactionHash":"0x99b618643d95a9806075f8ed50dd17f30913d8db29b33cd669be493199dc8869","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x8c9ebc27d517b551b27b166dcc2ef4d61bfb5627","revertReason":null,"policy":"sp_breezy_archangel","costUsd":"0.033000","key":"mobile-app","createdAt":"2026-11-16T16:26:13.541Z"}
{"userOpHash":"0x2feb9c2183eff7b9ed689174b06181588d74f91aff61b3ecd8b366353b28e58a","chainId":8453,"status":"incl
[… 331804 more characters]
708 records in 15 pages
01468

Final state

outcome
pass
final answer
**`production-web`** handled the most user operations in the last 30 days, about 1,180, which is roughly 50% of all operations.

| 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 `pimlico keys list`. I checked the top two keys against the operation logs, and the logs show a few more: 1,234 for `production-web` and 708 for `mobile-app`. The gap is probably because the two commands use slightly different time windows or count different operation statuses. Either way, the ranking stays the same.

`analytics-readonly` sent 3,100 requests but no user operations, so it's only being used for reads.
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