← 返回
未分类 Key 中文

Kroger Grocery

Grocery ordering via Kroger-family stores (Kroger, Fred Meyer, Ralph's, Harris Teeter, King Soopers, Mariano's, QFC, Smith's, etc). Use when: (1) user asks t...
通过Kroger系列超市(Kroger、Fred Meyer、Ralph's、Harris Teeter、King Soopers、Mariano's、QFC、Smith's等)进行杂货订购。使用时机:(1)用户请求订购食品杂货时。
alfred-pennyworth-ai alfred-pennyworth-ai 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 143
下载
💾 0
安装
1
版本
#latest

概述

Kroger Grocery Ordering

Order groceries via the Kroger API using the kroget CLI. Works with all Kroger-family banners.

Supported Stores

Kroger, Fred Meyer, Ralph's, Harris Teeter, King Soopers, Mariano's, QFC, Smith's, Fry's, Dillons, Baker's, City Market, Food 4 Less, Foods Co, Jay C, Owen's, Pay Less, Pick 'n Save, Metro Market, Gerbes.

Setup

See references/setup.md for full first-time setup guide.

Quick version:

  1. pipx install kroget
  2. Register app at developer.kroger.com → get client_id + client_secret
  3. kroget setup --client-id ... --client-secret ...
  4. kroget auth login → user authorizes in browser
  5. Look up store: kroget products search "test" --location-id

Core Commands

Search products

kroget products search "QUERY" --location-id STORE_ID --json

Add to cart

kroget cart add --location-id STORE_ID --product-id UPC --quantity N --apply --yes

Check auth

kroget doctor

Workflow

Ad-Hoc Items

User says "add milk and eggs to the cart":

  1. Search each item: kroget products search "milk" --location-id STORE_ID --json
  2. Pick the best match (or present options if ambiguous)
  3. Add to cart: kroget cart add --location-id STORE_ID --product-id UPC --quantity 1 --apply --yes
  4. Confirm what was added with prices

Meal Planning

User asks for meal planning with grocery integration:

  1. Plan meals based on preferences and dietary restrictions
  2. Build ingredient list
  3. Search and add each item to cart
  4. Report total estimated cost
  5. Remind user to open store app to schedule pickup

Staples / "Order the Usual"

For repeat orders, maintain staples lists in a local file:

  1. First time: user provides their regular items
  2. Save to a staples file (JSON or markdown)
  3. On repeat: search and add all staples to cart
  4. Report any items out of stock or price changes

Important Safety Rules

  • Never attempt checkout — the API physically cannot do it, and that's a feature
  • Always report prices before or after adding to cart
  • User must confirm pickup in their store's app or website
  • Cart add requires --apply — without it, nothing happens
  • The API can add to cart but cannot read cart contents or place orders

Dietary Restrictions

When the user has dietary restrictions, always vet items:

  • Check product descriptions for allergens
  • Search with restriction-specific terms (e.g., "gluten free pasta")
  • Flag items that might contain restricted ingredients
  • When in doubt, present options and let the user choose

Token Refresh

Kroger OAuth tokens expire. kroget handles refresh automatically. If the refresh token expires (extended inactivity), user needs to re-authorize:

kroget auth login

Detect auth failures and prompt for re-auth.

Notes

  • Product IDs are UPCs (e.g., 0001111018221)
  • --location-id is required for product search and cart operations
  • Each store has unique inventory and pricing
  • Use --json flag for parseable output
  • kroget stores config at ~/.kroget/ (config.json, tokens.json)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 26,162
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,372
business-ops

Salesforce

byungkyu
Salesforce CRM API 集成,支持托管 OAuth。仅在需要 Salesforce CRM 管理时安装。以最窄的 Salesforce 权限进行连接。
★ 8 📥 22,259