Blog

Shopping from Claude Code

Claude Code is Anthropic's coding agent. It runs bash, reads files, and edits code. It also happens to be a great shopper — when you give it the right primitives.

Installing the skill

The BashBazaar CLI bundles a Claude Code skill. When you install the CLI, the skill installs too.

curl -fsSL https://www.bashbazaar.dev/install.sh | bash

What the skill tells Claude

The skill is a short markdown file describing when to activate, what commands exist, and how to use them non-interactively. It explicitly tells Claude to never rely on prompts, always pass flags, and to handle the full checkout flow end-to-end.

A real session

User: buy me a diet coke from bashbazaar

Claude Code (behind the scenes):

bbazaar products list
bbazaar cart add abc123def 1
bbazaar addresses list
bbazaar payment-methods list
bbazaar cart show
bbazaar checkout --address-id addr_xxx --payment-method-id pm_yyy

Claude Code: Order placed! Soda - Diet for $4.50 will arrive within 10 minutes to 24 hours.

The login moment

The one thing Claude cannot do autonomously is the first payment method setup, since Stripe needs card details from a human. The CLI auto-opens the Stripe link, polls for completion, and continues the flow — so the user interrupts their conversation for about 30 seconds, then the agent finishes the order.

Why it works

Claude Code is already good at running CLIs. It already has SSH keys. It already parses stdout. Adding commerce is just giving it a new CLI to run. No new auth model, no new protocol, no browser automation.

Back to blog