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/codex-openai-gpt-6.1-sol/skill/3 · ← prev next →

top-key-30d/codex-openai-gpt-6.1-sol/skill/3 · pass

Outcome
pass
1/1 Checks passed
Turns
7
model turns
CLI calls
3
0 exited non-zero
Help lookups
1
reads of the CLI's help
Tokens in
97600
82492 of them cached
Tokens out
588
written by the model
Cost
$0.05
of the model calls
Wall time
30.2s
from start to the Checks
scenario
top-key-30d
agent
codex:openai/gpt-6.1-sol · 0.167.2
context
skill
repeat
3 · cell ✓✓✓✓✓
findings
—
provider
OpenAI

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 codex:openai/gpt-6.1-sol --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
I’ll use the pimlico skill to check user operation usage by API key over the last 30 days.
$ cat /work/.agents/skills/pimlico/SKILL.md
---
name: pimlico
description: Use the `pimlico` CLI to inspect and manage a Pimlico account (ERC-4337 bundler and paymaster) — balance, invoices, usage, API keys, sponsorship policies, and the logs of user operations and RPC requests. Use whenever a task mentions Pimlico, its API keys or policies, or debugging user operations sent through 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\|d
[… 1373 more characters]
2agent
$ pimlico usage --last 30d --group key --json
{
  "from": "2026-10-17T23:26:33.141Z",
  "to": "2026-11-16T23:26:33.141Z",
  "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": []
}
3agent
$ 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
4agent
[exec] "text(await tools.exec_command({cmd:\"pimlico ops --last 30d --all --max 1000000 --json > /tmp/pimlico-ops-30d.jsonl\\npython - <<'PY'\\nimport json\\nfrom collections import Counter\\np='/tmp/pimlico-ops-30d.jsonl'\\nwith open(p) as f:\\n rows=[json.loads(l) for l in f if l.strip()]\\nprint('objects',len(rows))\\nfor row in rows[:1]: print(json.dumps(row)[:5000])\\nprint('fields',Counter(k for row in rows for k in row))\\nPY\",\"max_output_tokens\":2200}));\n"
Script completed
Wall time 10.2 seconds
Output:
{"chunk_id":"e62619","wall_time_seconds":10.000653078,"session_id":64314,"original_token_count":0,"output":""}
5agent
[exec] "text(await tools.write_stdin({session_id:64314,chars:\"\",yield_time_ms:1000,max_output_tokens:2200}));\n"
Script completed
Wall time 0.0 seconds
Output:
{"chunk_id":"b1e240","wall_time_seconds":0.000004031,"exit_code":127,"original_token_count":18,"output":"2415 records in 49 pages\n/bin/bash: line 2: python: command not found\n"}
err
6agent
$ python3 - <<'PY' import json from collections import Counter with open('/tmp/pimlico-ops-30d.jsonl') as f: rows=[json.loads(l) for l in f if l.strip()] print('objects',len(rows)) print('sample',json.dumps(rows[0])) print('fields',Counter(k for r in rows for k in r)) print('counts',Counter(r.get('apiKeyName',r.get('keyName',r.get('key'))) for r in rows)) PY
objects 2415
sample {"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:25:38.631Z"}
fields Counter({'userOpHash': 2415, 'chainId': 2415, 'status': 2415, 'pending': 2415, 'transactionHash': 2415, 'entryPoint': 2415, 'sender': 2415, 'revertReason': 2415, 'policy': 2415, 'costUsd': 2415, 'key': 2415, 'createdAt': 2415})
counts Counter({'production-web': 1234, 'mobile-app': 708, 'fixture-key': 384, 'staging': 89})
7agent
**`production-web`** handled the most user operations over the last 30 days (October 17–November 16, 2026).

| API key | User operations |
|---|---:|
| production-web | **1,234** |
| mobile-app | 708 |
| fixture-key | 384 |
| staging | 89 |

Counts cover all 2,415 user operation records across all statuses, rather than general RPC requests.

Target CLI calls

#callexitmssignal
0
$ pimlico usage --last 30d --group key --json
{
  "from": "2026-10-17T23:26:33.141Z",
  "to": "2026-11-16T23:26:33.141Z",
  "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": []
}
0501
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
0232
2
$ pimlico ops --last 30d --all --max 1000000 --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:25:38.631Z"}
{"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:22:53.066Z"}
{"userOpHash":"0xd5184662105a43f0dd8fd4249e9d1f49bf1e34435a5bd955248d28a8ffbb5165","chainId":84532,"status":"added_to_mempool","pending":true,"transactionHash":null,"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0x0b9f075fc4919611621314041c022249dd4eaeff","revertReason":null,"policy":"sp_amused_arclight","costUsd":null,"key":"fixture-key","createdAt":"2026-11-16T23:22:39.538Z"}
{"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-16T23:00:22.152Z"}
{"userOpHash":"0xfc1dd86ea8b188d10e7e97976ec3916bbc1617c88f1a42ff058766be541a9d9a","chainId":42161,"status":"included_onchain","pending":false,"transactionHash":"0x259ef75ecd8bcb2d5ee074fea45874af5bbf34f53dbacb0d00a66c3a98a267ac","entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032","sender":"0xb2d65d63a71218ee93edd8
[… 1138262 more characters]
2415 records in 49 pages
011209

Final state

outcome
pass
final answer
**`production-web`** handled the most user operations over the last 30 days (October 17–November 16, 2026).

| API key | User operations |
|---|---:|
| production-web | **1,234** |
| mobile-app | 708 |
| fixture-key | 384 |
| staging | 89 |

Counts cover all 2,415 user operation records across all statuses, rather than general RPC requests.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
web_search (provider)

context inputs

kindsourceplaced atofferedused
skillskills/pimlico.agents/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 · rollout.jsonl · service-mock.log