360 Secure SkillHub
360 安全技能中心

KitchenOwl API

提供 Bash CLI 脚本,使用 curl 与 jq 完成 KitchenOwl 的探测、登录、令牌保存、通用 REST 请求及 GraphQL 查询,主要用于读取和更新购物清单。支持环境变量或本地会话令牌,需要连接目标 KitchenOwl 实例。

pietro395
pietro395
热度 54.74
最近更新 2026-05-11 17:29:37
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:购物 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kitchenowl-api
Metadata
name
kitchenowl-api
description
Interact with KitchenOwl APIs (login, token handling, REST/GraphQL calls, and shopping-list read/update) through a reusable CLI script. Use when the user asks to read or modify shopping-list items on self-hosted or cloud KitchenOwl instances.

KitchenOwl API

Use scripts/kitchenowl-api.sh for KitchenOwl operations without relying on the web UI.

Prerequisites

  • curl
  • jq

Quick configuration

Supported environment variables:

  • KITCHENOWL_URL (e.g. https://kitchenowl.example.com) [preferred]
  • KITCHENOWL_TOKEN (Bearer token; access token or long-lived token)
  • KITCHENOWL_REFRESH_TOKEN (optional)
  • KITCHENOWL_BASE_URL (legacy compatibility)

Main commands

# 1) Probe useful API endpoints
{baseDir}/scripts/kitchenowl-api.sh probe --base-url https://kitchenowl.example.com

# 2) Login (saves tokens in ~/.config/kitchenowl-api/session.json)
{baseDir}/scripts/kitchenowl-api.sh login \
  --base-url https://kitchenowl.example.com \
  --username USERNAME \
  --password 'PASSWORD' \
  --device openclaw

# 3) Generic authenticated REST call
{baseDir}/scripts/kitchenowl-api.sh request GET /api/user

# 4) REST call with JSON body
{baseDir}/scripts/kitchenowl-api.sh request POST /api/auth/llt \
  --json '{"device":"openclaw-llt"}'

# 5) GraphQL query (if available on the instance)
{baseDir}/scripts/kitchenowl-api.sh graphql \
  --query '{ __typename }'

Recommended flow for shopping-list tasks

  1. Run probe.
  2. Run login (if no valid token is available).
  3. Use request against shopping-list endpoints of the target instance.
  4. If endpoint paths are unknown, start from request GET /api and/or check instance docs.

Operational notes

  • Some instances use reverse proxies with broken redirects (example: /api -> http://localhost/api/).
  • In that case, force the correct --base-url or fix proxy settings server-side.
  • The script does not print plain-text passwords.
  • Tokens are stored locally only in ~/.config/kitchenowl-api/session.json.