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

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

Outcome
pass
2/2 Checks passed
Turns
5
model turns
CLI calls
4
0 exited non-zero
Help lookups
2
reads of the CLI's help
Tokens in
31999
28938 of them cached
Tokens out
880
written by the model
Cost
$0.04
of the model calls
Wall time
17.2s
from start to the Checks
scenario
create-key-env
agent
claude-code:anthropic/claude-opus-5.5 · 2.1.318
context
name-only
repeat
2 · cell ✗✓✓✗✓
findings
—
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; 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
[… 1063 more characters]
err
2agent
$ pimlico keys create --help; pimlico whoami --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": []
}
3agent
$ pimlico keys create --name checkout-service --json > /tmp/pk.json; echo "exit $?"; python3 -c "import json;d=json.load(open('/tmp/pk.json'));print({k:(v if 'key' not in k.lower() or not isinstance(v,str) or len(v)<20 else v[:6]+'…') for k,v in d.items()})"
exit 0
{'key': 'pim_KP…', 'name': 'checkout-service', 'createdAt': '2026-11-16T23:15:59.244Z', 'warnings': []}
4agent
$ python3 -c "import json;d=json.load(open('/tmp/pk.json'));open('.env','w').write('PIMLICO_API_KEY='+d['key']+'\n')" && chmod 600 .env && rm /tmp/pk.json && echo ".env" > .gitignore && sed 's/=\(.\{6\}\).*/=\1…/' .env && git status --short
PIMLICO_API_KEY=pim_KP…
?? .gitignore
5agent
I created a Pimlico API key named `checkout-service` under the Northwind Labs org and saved it in `/work/.env` as `PIMLICO_API_KEY=pim_KP…`. Pimlico only shows a key once, so that file is the only copy.

To keep the key from leaking:
- It never appeared in the terminal output, and I deleted the temporary file I used to write it.
- Only your user can read `.env`.
- I added a `.gitignore` containing `.env` so it won't get committed. Git now shows `.gitignore` as untracked; I haven't committed it.

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]
0135
1
$ 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
0181
2
$ 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": []
}
0177
3
$ pimlico keys create --name checkout-service --json
{
  "key": "pim_KPneR9PpYcoMcerCABQs6c",
  "name": "checkout-service",
  "createdAt": "2026-11-16T23:15:59.244Z",
  "warnings": []
}
0273

Final state

outcome
pass
final answer
I created a Pimlico API key named `checkout-service` under the Northwind Labs org and saved it in `/work/.env` as `PIMLICO_API_KEY=pim_KP…`. Pimlico only shows a key once, so that file is the only copy.

To keep the key from leaking:
- It never appeared in the terminal output, and I deleted the temporary file I used to write it.
- Only your user can read `.env`.
- I added a `.gitignore` containing `.env` so it won't get committed. Git now shows `.gitignore` as untracked; I haven't committed it.
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