Integrations Source: integrations/openclaw/README.md

OpenClaw

On this page (4 sections)

OpenClaw copy of the Tote skill, and the MCP server entry for OpenClaw config. The instructions in tote/SKILL.md are the shared skill at skills/tote/SKILL.md. The frontmatter added on this copy is metadata.openclaw. command-dispatch is left unset. pnpm test:skills fails when this body drifts from the shared skill.

Pages quoted below were fetched on 2026-11-20 from docs.openclaw.ai. Tote never pays and never handles card data. The names below are environment variable names. Put values in the checkout .env or in the environment OpenClaw already has. Never write a secret value into config or into this file.

Install the skill

https://docs.openclaw.ai/tools/skills lists file-backed load order with workspace skills first: <workspace>/skills. From the Tote checkout, <workspace> is the OpenClaw workspace you want this agent to use:

mkdir -p <workspace>/skills
cp -R integrations/openclaw/tote <workspace>/skills/tote

https://docs.openclaw.ai/tools/creating-skills says "Skills live in your workspace skills/ folder" and shows mkdir -p ~/.openclaw/workspace/skills/hello-world for that default workspace. "Keep the directory name and frontmatter name aligned." This folder is tote, and name is tote.

The same skills page says openclaw skills install ./path/to/skill "installs into the active workspace skills/ directory by default." "Git and local installs expect SKILL.md at the source root." "The slug comes from SKILL.md frontmatter name when valid". openclaw skills install ./integrations/openclaw/tote is that command for this copy.

A connected node publishes skills from "~/.openclaw/skills by default; profile environment overrides apply." openclaw skills install --global "installs into the shared ~/.openclaw/skills directory". Workspace <workspace>/skills remains the highest file-backed tier in the load-order table.

The skills page also says: "When OPENCLAW_STATE_DIR points somewhere other than the default ~/.openclaw, session skill indexes exclude home-scoped personal or compatibility skill roots such as ~/.agents/skills." R-09 recorded OPENCLAW_HOME and OPENCLAW_CONFIG_PATH as moving node-hosted skills. The skills page fetched on 2026-11-20 does not name those two variables. Not verified on this fetch.

Frontmatter

https://docs.openclaw.ai/tools/skills says OpenClaw "filters skills at load time using metadata.openclaw". "Nested metadata blocks (including multi-line YAML mappings) are flattened to a JSON string and re-parsed as JSON5". This copy uses that YAML mapping.

Gating keys used here, from the same page:

  • requires.bins: "Each binary must exist on PATH."
  • requires.env: "Each env var must exist in the process or be provided via config."

The list is node and TOTE_HOME, because the body runs node "$TOTE_HOME/packages/cli/bin/tote.js".

primaryEnv on that page is the "Env var name associated with skills.entries.<name>.apiKey." This copy leaves primaryEnv unset, so there is no skill API key for OpenClaw to inject. Tote's MCP server reads the checkout .env.

https://docs.openclaw.ai/tools/creating-skills optional keys:

FieldDefault on that pageQuote
user-invocabletrue"Expose the skill as a user slash command"
disable-model-invocationfalse"Keep the skill out of the agent's system prompt (still runs via /skill)"
command-dispatchnone"Set to tool to route the slash command directly to a tool, bypassing the model"
command-toolnone"Tool name to invoke when command-dispatch: tool is set"
command-arg-moderaw"For tool dispatch, forwards the raw args string to the tool"

The skills page says the same thing for dispatch: "When set to tool, the slash command bypasses the model and dispatches directly to a registered tool." This copy leaves command-dispatch, command-tool, and command-arg-mode unset. The skill is instructions for the CLI and for several MCP tools (search, get_product, compare, build_cart, start_checkout, and start_request when the server lists it), so the model stays on that path. The validator accepts command-dispatch: tool only together with command-tool.

user-invocable and disable-model-invocation are also unset, so the defaults in the table apply (true and false).

agents/openai.yaml is the Codex sidecar. It stays on skills/tote/ and is not part of this copy.

MCP server

https://docs.openclaw.ai/cli/mcp/registry says the openclaw mcp registry commands "manage OpenClaw-managed MCP server definitions under mcp.servers in OpenClaw config." add "accepts stdio flags such as --command, --arg, --env, and --cwd, or HTTP flags such as --url, --transport". "Use --approval auto|prompt|approve to set the Codex tool approval mode." "Use transport: "streamable-http" for Streamable HTTP MCP servers."

https://docs.openclaw.ai/cli/mcp/transports, stdio:

FieldQuote
command"Executable to spawn (required)"
args"Array of command-line arguments"
env"Extra environment variables"
cwd / workingDirectory"Working directory for the process"

HTTP and Streamable HTTP on that page:

FieldQuote
url"HTTP or HTTPS URL of the remote server (required)"
transport"Set to "streamable-http" to select this transport; when omitted, OpenClaw uses sse"
headers"Optional key-value map of HTTP headers (for example auth tokens)"

https://docs.openclaw.ai/gateway/config-extensions says remote entries use transport: "streamable-http" or transport: "sse", and "type: "http" is a CLI-native alias that openclaw mcp set and openclaw doctor --fix normalize into the current transport field." The sample header on that page is Authorization: "Bearer ${MCP_REMOTE_TOKEN}". codex.defaultToolsApprovalMode there is "auto | prompt | approve". "This block is OpenClaw metadata for Codex app-server threads only; it does not affect ACP sessions, generic Codex harness config, or other runtime adapters."

The transports page says "References such as ${MCP_TOKEN} and Bearer ${MCP_TOKEN} do not trigger the literal-value warning when the variable is set." A nonempty literal fallback such as ${MCP_TOKEN:-literal-token} still warns.

Skill API keys, same config page: skills.entries.<name>.apiKey is a "plaintext string or SecretRef object", and the sample is apiKey: { source: "env", provider: "default", id: "GEMINI_API_KEY" }. https://docs.openclaw.ai/tools/creating-skills says "The key is injected into the host process for that agent turn only." Use source: "env" when you set an apiKey. A plaintext string would sit in the config file. This copy does not set primaryEnv, and Tote does not read skills.entries.tote.apiKey. The checkout .env is the file tote-mcp reads (packages/mcp/README.md: current directory, then the repo root; a variable already set in the process environment wins).

Approval, registry page: "The default full-permission posture does not prompt, including for tools without MCP safety annotations." openclaw mcp configure <server> --approval approve|prompt|auto "writes codex.defaultToolsApprovalMode". "prompt asks for every call", "approve bypasses per-call approval", and "auto uses the tool's safety annotations." "The optional codex block is OpenClaw projection metadata for Codex app-server threads only". The transports page says "Codex can additionally run tools with a readOnlyHint annotation in parallel."

packages/mcp/README.md: start_request, search, get_product, and compare are readOnlyHint: true. build_cart and start_checkout are readOnlyHint: false. For a Codex app-server thread, set approval to prompt so those calls ask. The registry page limits that block to Codex app-server threads.

Stdio. /path/to/tote is the checkout path. node is Node.js 22.19 or later. --cwd is the registry flag. The transports table also lists workingDirectory beside cwd. Not verified: which of those two spellings a hand-edited config object stores. The command below uses the flag.

openclaw mcp add tote \
  --command node \
  --arg /path/to/tote/packages/mcp/bin/tote-mcp.js \
  --cwd /path/to/tote \
  --approval prompt

For a server that is already saved: openclaw mcp configure tote --approval prompt.

The JSON5 shape from the config-extensions page, with Tote's command and the ${VAR} form in env. Names only.

{
  mcp: {
    servers: {
      tote: {
        command: "node",
        args: ["/path/to/tote/packages/mcp/bin/tote-mcp.js"],
        env: {
          TOTE_AGENT_PROFILE_URL: "${TOTE_AGENT_PROFILE_URL}",
          SHOPIFY_CLIENT_ID: "${SHOPIFY_CLIENT_ID}",
          SHOPIFY_CLIENT_SECRET: "${SHOPIFY_CLIENT_SECRET}",
          TOTE_BUYER_IP: "${TOTE_BUYER_IP}",
        },
        codex: {
          defaultToolsApprovalMode: "prompt",
        },
      },
    },
  },
}

The transports page says OpenClaw rejects interpreter-startup env keys before spawning a stdio server. The named examples include NODE_OPTIONS. It also names an allowlist (GITHUB_TOKEN, GH_TOKEN, and others) "along with ordinary proxy and server-specific env vars (HTTP_PROXY, custom *_API_KEY, etc.)." SHOPIFY_CLIENT_ID, SHOPIFY_CLIENT_SECRET, TOTE_AGENT_PROFILE_URL, and TOTE_BUYER_IP are not in that sentence. Not verified: that those four names pass the filter. --cwd /path/to/tote lets tote-mcp read the checkout .env without an env entry.

Loopback HTTP. Start the server yourself, then register it. Tote's HTTP server is Streamable HTTP (packages/mcp/README.md), so transport is set. Omitting it selects sse on the transports page.

node /path/to/tote/packages/mcp/bin/tote-mcp.js --http --port 8765
openclaw mcp add tote \
  --url http://127.0.0.1:8765/mcp \
  --transport streamable-http \
  --approval prompt

--host on tote-mcp accepts only 127.0.0.1 and ::1. The URL path is /mcp.

{
  mcp: {
    servers: {
      tote: {
        url: "http://127.0.0.1:8765/mcp",
        transport: "streamable-http",
        codex: {
          defaultToolsApprovalMode: "prompt",
        },
      },
    },
  },
}

Start tote-mcp from the checkout so it reads the checkout .env. This entry has no headers. The config-extensions sample shows Bearer ${MCP_REMOTE_TOKEN} for a server that wants a header. Tote's loopback server does not read an Authorization header.

Not verified

  • That the embedded OpenClaw agent, other than a Codex app-server thread, prompts before each MCP call. The approval quotes above are the Codex projection.
  • The numeric default of skills.limits.maxSkillFileBytes. The config-extensions page names the key and gives no number.
  • OPENCLAW_HOME and OPENCLAW_CONFIG_PATH on the skills page fetched on 2026-11-20.
  • Which JSON key a hand-edited config stores for the working directory, cwd or workingDirectory.
  • Whether one server entry that sets both command and url is rejected. add takes stdio flags or HTTP flags, and the transports page documents those shapes in separate sections.
  • That SHOPIFY_CLIENT_ID, SHOPIFY_CLIENT_SECRET, TOTE_AGENT_PROFILE_URL, and TOTE_BUYER_IP pass the stdio env filter.
  • OpenClaw terms on shopping or payment. This note does not invent a prohibition.