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-key-env/claude-code-anthropic-claude-opus-5.5/name-only/5 · ← prev next →

create-key-env/claude-code-anthropic-claude-opus-5.5/name-only/5 · pass

Outcome
pass
2/2 Checks passed
Turns
5
model turns
CLI calls
6
0 exited non-zero
Help lookups
3
reads of the CLI's help
Tokens in
36476
32161 of them cached
Tokens out
996
written by the model
Cost
$0.05
of the model calls
Wall time
17.7s
from start to the Checks
scenario
create-key-env
agent
claude-code:anthropic/claude-opus-5.5 · 2.1.318
context
name-only
repeat
5 · cell ✗✓✓✗✓
findings
F1
provider
Anthropic

checks

#checkresultdetailsignal
1
curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -e '[.keys[] | select(.name == "checkout-service" and (.disabled | not))] | length == 1'
passexited 0
true
2
set -euo pipefail
secret=$(curl -fsS "$PIMLICO_DASHBOARD_URL/__mock/facts" | jq -r '.keys[] | select(.name == "checkout-service") | .secret')
grep -Eq "^(export )?PIMLICO_API_KEY=[\"']?$secret[\"']?[[:space:]]*$" /work/.env
passexited 0

reproduce

unsnag run --scenario create-key-env --agent claude-code:anthropic/claude-opus-5.5 --context name-only --runs 1

Transcript highlighted = a Signal fired

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

Create a new Pimlico API key named checkout-service and save it in a .env file in this folder as PIMLICO_API_KEY.
1agent
$ pimlico --help; pimlico api-key --help 2>&1 | head -40; ls -la /work; cat /work/.gitignore 2>/dev/null
Exit code 1
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
  chain
[… 3044 more characters]
err
2agent
$ pimlico keys create --help; pimlico whoami --json; echo "exit $?"; pimlico keys list --json
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
{
  "userId": "user_2pX7mK9qRvT3nLwE8hYc4ZbA1dF",
  "orgId": "org_2pX7nQ4sVbW9kLmR3tYe6HcJ8uA",
  "email": "ops@northwind-labs.dev",
  "displayName": "Northwind Labs",
  "entityType": "org",
  "scopes": [
    "write:policies",
    "write:keys"
  ],
  "warnings": []
}
exit 0
{
  "keys": [
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:33:21.481Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:27:41.646Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:28:21.163Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:33:16.799Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:17:26.403Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:06:58.966Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
3agent
The key is shown only once, so I'll capture it straight into .env without printing it.
$ out=$(pimlico keys create --name checkout-service --json) || { echo "$out"; exit 1; }; echo "$out" | python3 -c 'import json,sys; d=json.load(sys.stdin); print(sorted(d.keys())); print(d.get("warnings"))'; echo "$out" > /tmp/.pk_out; chmod 600 /tmp/.pk_out
['createdAt', 'key', 'name', 'warnings']
[]
4agent
$ python3 -c 'import json; d=json.load(open("/tmp/.pk_out")); open(".env","w").write("PIMLICO_API_KEY="+d["key"]+"\n")' && chmod 600 .env && shred -u /tmp/.pk_out 2>/dev/null || rm -f /tmp/.pk_out; printf '.env\n' > .gitignore; sed 's/=.*/=<redacted>/' .env; git status --short
PIMLICO_API_KEY=<redacted>
?? .gitignore
5agent
I created a Pimlico API key named `checkout-service` and saved it in `/work/.env` as `PIMLICO_API_KEY`.

- **The key value is shown only once.** I wrote it straight into `.env` without printing it, so it never appeared in this session. The `.env` file is the only copy, so keep it safe or store it in your secrets manager.
- **Permissions:** only your user can read or write `.env` (`600`).
- **Not tracked by git:** I added a `.gitignore` containing `.env` so the key can't be committed by accident. The new `.gitignore` itself is untracked and not committed.
- **No policies added:** the key has no sponsorship policies, which are optional. If you want to limit which chains, operations or amounts it can sponsor, you can add them with `pimlico policies create`.

Target CLI calls

#callexitmssignal
0
$ pimlico --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]
0143
1
$ pimlico api-key --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]
0166ghost_command F1
2
$ 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
0130
3
$ pimlico whoami --json
{
  "userId": "user_2pX7mK9qRvT3nLwE8hYc4ZbA1dF",
  "orgId": "org_2pX7nQ4sVbW9kLmR3tYe6HcJ8uA",
  "email": "ops@northwind-labs.dev",
  "displayName": "Northwind Labs",
  "entityType": "org",
  "scopes": [
    "write:policies",
    "write:keys"
  ],
  "warnings": []
}
0186
4
$ pimlico keys list --json
{
  "keys": [
    {
      "name": "production-web",
      "disabled": false,
      "createdAt": "2026-04-10T23:33:21.481Z",
      "boost": true,
      "lastUsedAt": "2026-11-16T23:27:41.646Z",
      "requests30d": 9000,
      "userOps30d": 1180
    },
    {
      "name": "mobile-app",
      "disabled": false,
      "createdAt": "2026-06-09T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:28:21.163Z",
      "requests30d": 5200,
      "userOps30d": 700
    },
    {
      "name": "staging",
      "disabled": false,
      "createdAt": "2026-07-19T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T21:33:16.799Z",
      "requests30d": 840,
      "userOps30d": 76
    },
    {
      "name": "analytics-readonly",
      "disabled": false,
      "createdAt": "2026-08-18T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:17:26.403Z",
      "requests30d": 3100,
      "userOps30d": 0
    },
    {
      "name": "fixture-key",
      "disabled": false,
      "createdAt": "2026-10-02T23:33:21.481Z",
      "boost": false,
      "lastUsedAt": "2026-11-16T23:06:58.966Z",
      "requests30d": 2422,
      "userOps30d": 380
    }
  ],
  "warnings": []
}
0171
5
$ pimlico keys create --name checkout-service --json
{
  "key": "pim_Ardm94basN17UuR56gzoLs",
  "name": "checkout-service",
  "createdAt": "2026-11-16T23:33:32.836Z",
  "warnings": []
}
0228

Final state

outcome
pass
final answer
I created a Pimlico API key named `checkout-service` and saved it in `/work/.env` as `PIMLICO_API_KEY`.

- **The key value is shown only once.** I wrote it straight into `.env` without printing it, so it never appeared in this session. The `.env` file is the only copy, so keep it safe or store it in your secrets manager.
- **Permissions:** only your user can read or write `.env` (`600`).
- **Not tracked by git:** I added a `.gitignore` containing `.env` so the key can't be committed by accident. The new `.gitignore` itself is untracked and not committed.
- **No policies added:** the key has no sponsorship policies, which are optional. If you want to limit which chains, operations or amounts it can sponsor, you can add them with `pimlico policies create`.
teardown
—
mock gaps
—
contamination
—
dns lookups
0 (0 denied)
web tools
WebFetch (sandbox) · WebSearch (provider)

context inputs

none

prompt

You have the `pimlico` CLI available.

Create a new Pimlico API key named checkout-service and save it in a .env file in this folder as PIMLICO_API_KEY.

Artifacts

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