rotate-staging-key/opencode-google-gemini-4-argon/skill/3 · pass
Outcome
pass
3/3 Checks passed
Turns
7
model turns
CLI calls
10
1 exited non-zero
Help lookups
4
reads of the CLI's help
Tokens in
22819
7011 of them cached
Tokens out
814
written by the model
Cost
$0.04
of the model calls
Wall time
64.5s
from start to the Checks
checks
| # | check | result | detail | signal |
|---|---|---|---|---|
| 1 | set -euo pipefail curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e ' ([.keys[] | select(.name == "staging")] | length == 1 and .[0].disabled) and ([.keys[] | select(.name == "staging-2026" and (.disabled | not))] | length == 1)' | pass | exited 0true | |
| 2 | set -euo pipefail secret=$(curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r '.keys[] | select(.name == "staging-2026") | .secret') grep -Eq "^(export )?PIMLICO_API_KEY=[\"']?$secret[\"']?[[:space:]]*$" /work/.env test "$(grep -c PIMLICO_API_KEY /work/.env)" -eq 1 | pass | exited 0 | |
| 3 | set -euo pipefail
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/events" | jq -e '
[.events[] | select(.ok)] as $e
| ([$e[] | select(.procedure == "keys.create")][0].seq) < ([$e[] | select(.procedure == "keys.disable")][0].seq)'
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e --slurpfile before /root/other-keys.json '[.keys[] | select(.name != "staging" and .name != "staging-2026") | {name, disabled}] == $before[0]'
| pass | exited 0true true |
reproduce
unsnag run --scenario rotate-staging-key --agent opencode:google/gemini-4-argon --context skill --runs 1 Transcript highlighted = a Signal fired
| # | actor | content | exit | signal |
|---|---|---|---|---|
| 0 | user | You have the `pimlico` CLI available. Our staging Pimlico API key leaked. Replace it with a new key called staging-2026, update PIMLICO_API_KEY in .env to the new key, and then disable the leaked one. | ||
| 1 | agent | [skill] {"id":"pimlico"} <skill_content name="pimlico">
# Skill: 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 cha
[… 1296 more characters]$ cat .env PIMLICO_API_KEY=pim_H5zckuhdnmJGsLsDbtiTW4 | ||
| 2 | agent | $ pimlico api-keys list --json {
"error": {
"code": "USAGE",
"message": "error: unknown command 'api-keys'"
},
"warnings": []
}
Exit code: 1$ pimlico api-keys create --help pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 904 more characters] $ pimlico api-keys disable --help pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 904 more characters] | err | |
| 3 | agent | $ pimlico keys list --json {
"keys": [
{
"name": "production-web",
"disabled": false,
"createdAt": "2026-04-10T23:25:25.722Z",
"boost": true,
"lastUsedAt": "2026-11-16T23:19:45.887Z",
"requests30d": 9000,
"userOps30d": 1180
},
{
"name": "mobile-app",
"disabled": false,
"createdAt": "2026-06-09T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:20:25.404Z",
"requests30d": 5200,
"userOps30d": 700
},
{
"name": "staging",
"disabled": false,
"createdAt": "2026-07-19T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T21:25:21.040Z",
"requests30d": 840,
"userOps30d": 76
},
{
"name": "analytics-readonly",
"disabled": false,
"createdAt": "2026-08-18T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:09:30.644Z",
"requests30d": 3100,
"userOps30d": 0
},
{
"name": "fixture-key",
"disabled": false,
"createdAt": "2026-10-02T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T22:59:03.207Z",
"requests30d": 2422,
"userOps30d": 380
}
],
"warnings": []
}
$ pimlico keys create --help Usage: pimlico keys create [options] Create an API key (the key is shown once) Options: --name <name> Key name, unique among your active keys (required) -h, --help display help for command $ pimlico keys disable --help Usage: pimlico keys disable [options] <name> Disable an API key (cannot be re-enabled from the CLI) Arguments: name API key name, as shown by `pimlico keys list` Options: -h, --help display help for command | ||
| 4 | agent | $ pimlico keys get staging --json {
"name": "staging",
"disabled": false,
"createdAt": "2026-07-19T23:25:25.722Z",
"accessConfig": {
"bundlerEnabled": true,
"accountApiEnabled": false,
"magicSpendEnabled": false,
"boostEnabled": false,
"evmDisabled": false,
"solanaDisabled": false,
"verifyingPaymasterEnabled": true,
"walletMethodEnabled": false,
"apiVersionsEnabled": [
"v1",
"v2"
],
"entryPointVersionsEnabled": [
"0x0000000071727De22E5E9d8BAf0edAc6f37da032",
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
],
"sponsorshipPolicyAllowlist": null,
"userAgentAllowlist": null,
"originAllowlist": null,
"ipAllowlist": null,
"paymasterSignatureExpirySeconds": 600
},
"rateLimitMax": 10000,
"rateLimitWindow": 3600000,
"boost": false,
"warnings": []
}
$ pimlico keys create --name staging-2026 --json {
"key": "pim_66XVaggGPLiiBddYJ72X9Z",
"name": "staging-2026",
"createdAt": "2026-11-16T23:26:04.394Z",
"warnings": []
}
| ||
| 5 | agent | $ printf 'PIMLICO_API_KEY=pim_66XVaggGPLiiBddYJ72X9Z\n' > .env && cat .env PIMLICO_API_KEY=pim_66XVaggGPLiiBddYJ72X9Z $ pimlico keys disable staging --json {
"name": "staging",
"disabled": true,
"warnings": []
}
| ||
| 6 | agent | $ pimlico keys list --json {
"keys": [
{
"name": "production-web",
"disabled": false,
"createdAt": "2026-04-10T23:25:25.722Z",
"boost": true,
"lastUsedAt": "2026-11-16T23:19:45.887Z",
"requests30d": 9000,
"userOps30d": 1180
},
{
"name": "mobile-app",
"disabled": false,
"createdAt": "2026-06-09T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:20:25.404Z",
"requests30d": 5200,
"userOps30d": 700
},
{
"name": "analytics-readonly",
"disabled": false,
"createdAt": "2026-08-18T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:09:30.644Z",
"requests30d": 3100,
"userOps30d": 0
},
{
"name": "fixture-key",
"disabled": false,
"createdAt": "2026-10-02T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T22:59:03.207Z",
"requests30d": 2422,
"userOps30d": 380
},
{
"name": "staging-2026",
"disabled": false,
"createdAt": "2026-11-16T23:26:04.394Z",
"boost": false,
"lastUsedAt": null,
"requests30d": 0,
"userOps30d": 0
}
],
"warnings": []
}
$ git diff .env (no output) | ||
| 7 | agent | I have rotated the staging Pimlico API key: 1. **Created new key**: `staging-2026` (`pim_66XVaggGPLiiBddYJ72X9Z`) via `pimlico keys create --name staging-2026`. 2. **Updated `.env`**: Set `PIMLICO_API_KEY=pim_66XVaggGPLiiBddYJ72X9Z` in `/work/.env`. 3. **Disabled leaked key**: Disabled `staging` (`pim_H5zckuhdnmJGsLsDbtiTW4`) via `pimlico keys disable staging`. |
Target CLI calls
| # | call | exit | ms | signal |
|---|---|---|---|---|
| 0 | $ pimlico api-keys list --json {
"error": {
"code": "USAGE",
"message": "error: unknown command 'api-keys'"
},
"warnings": []
}
| 1 | 194 | ghost_command dismissed nonzero_then_lookup dismissed |
| 1 | $ pimlico api-keys create --help pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 904 more characters] | 0 | 155 | ghost_command F1 |
| 2 | $ pimlico api-keys disable --help pimlico 1.2.0 Gas abstraction is a big part of the UX of any crypto product: Pimlico sponsors your users' gas or lets them pay in ERC-20 tokens, on every popular EVM chain and Solana. An API key is required to call our bundler and paymaster; sponsorship policies are optional hardening that limits which operations you pay for, on which chains and up to what amount. Usage and billing are transparent: see what you used and what you owe with `pimlico usage` and `pimlico balance`. Usage pimlico <command> [options] Account login Log in to Pimlico in the browser logout Log out and forget the stored credentials whoami Show the logged-in account Billing & usage balance Credits, open invoices, unbilled usage and headroom invoices Stripe invoices for the account usage Requests, API credits and sponsored USD, EVM and Solana Debug op <userOpHash> Status and timeline of a user operation ops User operation logs with revert reason, policy and cost requests RPC request logs with the error of failed calls solana txs Sponsored and SPL-paid Solana transactions Configure keys list List API keys with last use and 30-day traffic keys get <name> Show one API key by name keys create Create an API key (the key is shown once) keys rename <name> Rename an API key keys disable <name> Disable an API key (cannot be re-enabled from the CLI) policies list List sponsorship policies policies get <id> Show one policy, including its effective caps policies create Create a sponsorship policy (active unless --inactive) policies update <id> Change a policy's name, chains, caps or window policies enable <id> Switch a policy on policies disable <id> Switch a policy off erc20 tokens Tokens accepted by the ERC-20 paymaster chains [… 904 more characters] | 0 | 178 | ghost_command F1 |
| 3 | $ pimlico keys list --json {
"keys": [
{
"name": "production-web",
"disabled": false,
"createdAt": "2026-04-10T23:25:25.722Z",
"boost": true,
"lastUsedAt": "2026-11-16T23:19:45.887Z",
"requests30d": 9000,
"userOps30d": 1180
},
{
"name": "mobile-app",
"disabled": false,
"createdAt": "2026-06-09T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:20:25.404Z",
"requests30d": 5200,
"userOps30d": 700
},
{
"name": "staging",
"disabled": false,
"createdAt": "2026-07-19T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T21:25:21.040Z",
"requests30d": 840,
"userOps30d": 76
},
{
"name": "analytics-readonly",
"disabled": false,
"createdAt": "2026-08-18T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:09:30.644Z",
"requests30d": 3100,
"userOps30d": 0
},
{
"name": "fixture-key",
"disabled": false,
"createdAt": "2026-10-02T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T22:59:03.207Z",
"requests30d": 2422,
"userOps30d": 380
}
],
"warnings": []
}
| 0 | 240 | |
| 4 | $ pimlico keys create --help Usage: pimlico keys create [options] Create an API key (the key is shown once) Options: --name <name> Key name, unique among your active keys (required) -h, --help display help for command | 0 | 189 | |
| 5 | $ pimlico keys disable --help Usage: pimlico keys disable [options] <name> Disable an API key (cannot be re-enabled from the CLI) Arguments: name API key name, as shown by `pimlico keys list` Options: -h, --help display help for command | 0 | 134 | |
| 6 | $ pimlico keys get staging --json {
"name": "staging",
"disabled": false,
"createdAt": "2026-07-19T23:25:25.722Z",
"accessConfig": {
"bundlerEnabled": true,
"accountApiEnabled": false,
"magicSpendEnabled": false,
"boostEnabled": false,
"evmDisabled": false,
"solanaDisabled": false,
"verifyingPaymasterEnabled": true,
"walletMethodEnabled": false,
"apiVersionsEnabled": [
"v1",
"v2"
],
"entryPointVersionsEnabled": [
"0x0000000071727De22E5E9d8BAf0edAc6f37da032",
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
],
"sponsorshipPolicyAllowlist": null,
"userAgentAllowlist": null,
"originAllowlist": null,
"ipAllowlist": null,
"paymasterSignatureExpirySeconds": 600
},
"rateLimitMax": 10000,
"rateLimitWindow": 3600000,
"boost": false,
"warnings": []
}
| 0 | 191 | |
| 7 | $ pimlico keys create --name staging-2026 --json {
"key": "pim_66XVaggGPLiiBddYJ72X9Z",
"name": "staging-2026",
"createdAt": "2026-11-16T23:26:04.394Z",
"warnings": []
}
| 0 | 244 | |
| 8 | $ pimlico keys disable staging --json {
"name": "staging",
"disabled": true,
"warnings": []
}
| 0 | 237 | |
| 9 | $ pimlico keys list --json {
"keys": [
{
"name": "production-web",
"disabled": false,
"createdAt": "2026-04-10T23:25:25.722Z",
"boost": true,
"lastUsedAt": "2026-11-16T23:19:45.887Z",
"requests30d": 9000,
"userOps30d": 1180
},
{
"name": "mobile-app",
"disabled": false,
"createdAt": "2026-06-09T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:20:25.404Z",
"requests30d": 5200,
"userOps30d": 700
},
{
"name": "analytics-readonly",
"disabled": false,
"createdAt": "2026-08-18T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T23:09:30.644Z",
"requests30d": 3100,
"userOps30d": 0
},
{
"name": "fixture-key",
"disabled": false,
"createdAt": "2026-10-02T23:25:25.722Z",
"boost": false,
"lastUsedAt": "2026-11-16T22:59:03.207Z",
"requests30d": 2422,
"userOps30d": 380
},
{
"name": "staging-2026",
"disabled": false,
"createdAt": "2026-11-16T23:26:04.394Z",
"boost": false,
"lastUsedAt": null,
"requests30d": 0,
"userOps30d": 0
}
],
"warnings": []
}
| 0 | 239 |
Final state
outcome
pass
final answer
I have rotated the staging Pimlico API key: 1. **Created new key**: `staging-2026` (`pim_66XVaggGPLiiBddYJ72X9Z`) via `pimlico keys create --name staging-2026`. 2. **Updated `.env`**: Set `PIMLICO_API_KEY=pim_66XVaggGPLiiBddYJ72X9Z` in `/work/.env`. 3. **Disabled leaked key**: Disabled `staging` (`pim_H5zckuhdnmJGsLsDbtiTW4`) via `pimlico keys disable staging`.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
webfetch (sandbox)
context inputs
| kind | source | placed at | offered | used |
|---|---|---|---|---|
| skill | skills/pimlico | .agents/skills/pimlico | true | true |
prompt
You have the `pimlico` CLI available. Our staging Pimlico API key leaked. Replace it with a new key called staging-2026, update PIMLICO_API_KEY in .env to the new key, and then disable the leaked one.