kroger
/install kroger
Kroger
Search products, add to cart, and find store locations via the Kroger public API.
Prerequisites
- Kroger developer account at https://developer.kroger.com
- Registered application with Product and Cart API access
- OAuth redirect URI configured in the Kroger app settings
Environment Variables
Set these before using:
export KROGER_CLIENT_ID="your-client-id"
export KROGER_CLIENT_SECRET="your-client-secret"
Optional:
KROGER_TOKEN_FILE— token storage path (default:~/.kroger-tokens.json)KROGER_REDIRECT_URI— OAuth callback URL (default:http://localhost:8888/callback)KROGER_LOCATION_ID— store ID for location-specific product availability
Setup (One-Time)
1. Register a Kroger Developer App
- Go to https://developer.kroger.com
- Create an application
- Enable Product and Cart scopes
- Set redirect URI to
http://localhost:8888/callback - Note Client ID and Client Secret
2. Authenticate
Run the auth flow — opens a browser for Kroger login:
scripts/kroger.sh auth
If the redirect URI isn't localhost (e.g., cloud-hosted), use the manual flow:
- Open the
AUTH_URLprinted byscripts/kroger.sh auth - Log in at Kroger
- Copy the redirected URL (even if the page errors)
- Extract the
codeparameter and run:
scripts/kroger.sh exchange \x3Ccode>
Tokens auto-refresh. Re-auth only needed if refresh token expires.
Actions
Search products
scripts/kroger.sh search "cannellini beans"
Returns up to 5 results with product IDs, descriptions, and brands.
Add to cart
scripts/kroger.sh add \x3CproductId> [quantity]
Requires prior OAuth login. Quantity defaults to 1.
Find nearby stores
scripts/kroger.sh locations \x3Czipcode>
Returns up to 5 stores with location IDs. Set KROGER_LOCATION_ID to filter product search by store.
Check auth status
scripts/kroger.sh token
Workflow: Grocery List → Cart
Typical flow for adding a grocery list to Kroger:
- Search each item:
scripts/kroger.sh search "\x3Citem>" - Pick the best match from results
- Add to cart:
scripts/kroger.sh add \x3CproductId> \x3Cqty> - Repeat for all items
When adding many items, batch all searches first, then confirm selections with the user, then add all to cart.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kroger - 安装完成后,直接呼叫该 Skill 的名称或使用
/kroger触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
kroger 是什么?
Search Kroger products and add items to a Kroger cart via the Kroger API. Use when a user asks to find groceries, add items to their Kroger cart, look up Kro... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 730 次。
如何安装 kroger?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kroger」即可一键安装,无需额外配置。
kroger 是免费的吗?
是的,kroger 完全免费(开源免费),可自由下载、安装和使用。
kroger 支持哪些平台?
kroger 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 kroger?
由 Tongyan Li(@tongyanli-hash)开发并维护,当前版本 v1.0.0。