Guide

OpenClaw Skill Dependencies: What They Are and How to Manage Them

2026-11-19

OpenClaw Skill Dependencies: What They Are and How to Manage Them

An OpenClaw skill dependency is anything a skill needs before it can run: an API key, a command-line program, a config path or an installable package. The skill declares these needs in the header of its SKILL.md file. OpenClaw reads that header, compares it with your machine and marks the skill ready or not ready. Understanding that one mechanism explains almost every "my skill is installed but does nothing" problem. On a managed server such as ClawBase, the machine side of the equation is handled for you, so you spend your time choosing skills rather than debugging hosts.

This guide explains the mechanism in plain language, shows how to read a skill's requirements before you install it, covers the security side of dependencies, and gives a short troubleshooting ladder.

TL;DR

  • Skill dependencies are declared in the YAML header of SKILL.md under metadata.openclaw: environment variables, binaries, config paths and an install list.
  • A skill with no metadata.openclaw block is always eligible unless you disable it. Skills with declared needs only become ready when those needs are met.
  • Inspect a skill on ClawHub (the public skills registry) before installing, and run openclaw skills check afterwards to see what is missing.
  • Dependencies are also an attack surface: read the skill, keep API keys narrowly scoped and pin versions.
  • ClawBase runs OpenClaw on a dedicated, encrypted server with automated updates, so you do not maintain the host the dependencies live on.

Table of Contents

What a skill dependency actually is

A skill is a folder with a SKILL.md file that teaches your agent how to do one job, such as reading your email, searching the web or posting to a chat channel. Many jobs need outside help. A skill that talks to a to-do app needs that app's API key. A skill that converts video needs a program like ffmpeg on the machine. Those outside needs are the dependencies.

According to the ClawHub skill format documentation, dependencies are declared in the YAML frontmatter (the block between two --- lines at the top of the file) under metadata.openclaw. The fields fall into four groups:

FieldWhat it declaresPlain-language meaning
`requires.env`Environment variablesSecrets or settings, such as an API key, that must exist
`requires.bins` / `requires.anyBins`Command-line programsEvery listed program, or at least one of the listed programs, must be installed
`requires.config`Config pathsSettings in your OpenClaw configuration that must be present
`primaryEnv`, `envVars`The main credential and other variablesTells you and the scanner which keys the skill uses
`install`Installer specs using brew, node, go or uvHow OpenClaw can fetch a missing program

A small example of what the header can look like:

---
name: todo-helper
metadata:
  openclaw:
    requires:
      env:
        - TODOIST_API_KEY
      bins:
        - curl
    primaryEnv: TODOIST_API_KEY
---

Read it as a shopping list: this skill wants one secret key and one program. If either is missing, the skill is not ready.

Do all skills need extra setup?

No. The OpenClaw skills documentation explains that OpenClaw loads bundled skills plus local overrides and filters them when it loads. A skill with no metadata.openclaw block is always eligible unless you explicitly disable it. A skill whose declared requirements are satisfied is eligible without any extra install. When a prerequisite is unmet, the skill can show as not ready or may not be visible at all.

This is useful for beginners: the simplest skills, instruction-only ones, just work. The ones that connect to outside services are the ones that ask for keys and programs.

Check what a skill needs before you install it

The cheapest moment to find a dependency problem is before installation. The ClawHub quickstart describes two routes: the skill's ClawHub web page, or the command line. For example:

clawhub inspect @openclaw/demo
clawhub package inspect <package>

Both show the skill's metadata, source links, versions, changelog and scan status. Public listings also show the latest scan state. Use this checklist when you look at a listing:

  1. Which keys does it want? Every requires.env entry is a credential you will have to create and paste in. Ask whether you are comfortable giving that service access.
  2. Which programs does it want? Each requires.bins entry must exist on the machine where OpenClaw runs, not on your laptop.
  3. Does it ship an install list? If so, note whether it uses brew, node, go or uv, because that decides what gets installed and by which tool.
  4. Is the version recent, and what does the changelog say? A skill that has not changed in a long time may rely on outdated packages.
  5. What is the scan status? More on that below.

If you want a broader view of what skills can do before you pick one, our overview of OpenClaw skillsets covers the categories.

How OpenClaw installs what a skill needs

When a skill carries an install list, the Gateway (the background service that runs your agent) can fetch missing programs itself. The skills documentation gives the installer preference order as Homebrew first, then uv, then your configured Node package manager, then go, then a direct download.

Most of the controls live in one file. The skills configuration reference shows that settings sit under skills in ~/.openclaw/openclaw.json:

  • skills.install.preferBrew makes OpenClaw prefer Homebrew installers when brew is available.
  • skills.install.nodeManager chooses the Node package manager. The default is npm, with pnpm, yarn or bun as options.
  • Per-skill entries can set enabled, an apiKey source and env values such as GEMINI_API_KEY.
  • skills.install.allowUploadedArchives lets trusted operator.admin Gateway clients install private zip archives. Normal ClawHub installs do not need it.

A worked example: you install a skill that needs a Node-based tool. If your configuration says nodeManager: pnpm, the Gateway uses pnpm rather than npm. If you never set it, npm is used. Nothing mysterious, but if your machine has no Node at all, the install cannot succeed, and the skill stays not ready until it does.

Verify after installing

The openclaw skills command reference lists the commands that separate three questions people often confuse:

  • Inventory: is the skill present on disk?
  • Readiness: are its requirements met?
  • Visibility: can the agent actually see and use it?

Run openclaw skills check and it reports missing prerequisites. Run openclaw skills info to inspect a single skill. After you fix something, run the check again until the skill shows as eligible.

Dependencies are also a security question

Every key you paste in and every program a skill pulls is something you now trust. OpenClaw has built-in guards. According to the macOS skills documentation, the Gateway runs a security check before download. A ClawHub Review audit lets the install proceed with the audit text shown as a warning, while a blocked or unavailable check stops the install. An operator-owned security.installPolicy runs before installer metadata, and block results or policy failures stop the install.

ClawHub's analysis also compares what a skill declares with what it does. Per the skill format documentation, if the code references a key such as TODOIST_API_KEY but the frontmatter does not declare it under requires.env, primaryEnv or envVars, the scan flags a metadata mismatch. That is why complete, honest dependency declarations matter: they are how you and the scanner see what a skill really touches.

Security researchers add habits worth adopting:

  • Read the source first. Repello AI's teardown of malicious skills advises reading SKILL.md and its scripts before installing and checking the VirusTotal report. It also advises pinning external dependencies to specific versions, because a skill can look clean and fetch a harmful payload later.
  • Look for red flags. Penligent's analysis of malicious ClawHub skills recommends scanning the raw SKILL.md for curl | sh patterns and long base64 strings, and giving API keys strict scopes (least privilege).
  • Keep experiments off your main machine. Both sources suggest running new skills in a container or throwaway virtual machine instead of the computer that holds your personal files.

The same idea applies to what the agent is allowed to do once a skill is running. This piece on how to enforce guardrails at the tool call explains why limits belong on the action itself rather than in a prompt, and for the injection side of the problem, this layered prompt injection defense guide is a good companion.

A practical rule of thumb for non-developers: create a separate, narrowly scoped API key for each skill, so that one compromised skill cannot reach everything else you own.

A troubleshooting ladder for broken dependencies

When a skill does not work, resist the urge to reinstall it. Work down this ladder instead. The steps follow the guidance in an OpenClaw GitHub issue on skills not being discovered, and they must run on the same machine and user account that runs the Gateway.

  1. Confirm the version. Run openclaw --version.
  2. List everything. Run openclaw skills list, then openclaw skills list --eligible to see only the skills that are ready.
  3. Find the gap. Run openclaw skills check. If the skill shows up but is not eligible, this points to the missing requirement: a binary, an environment variable or a permission.
  4. Inspect the skill. Run openclaw skills info and compare its declared needs with your machine.
  5. Fix the single missing thing. Install the program or set the key, then run the check again.
  6. If the skill does not show at all, it is a discovery problem, not a dependency problem. Add an explicit scan path under skills.load.extraDirs in ~/.openclaw/openclaw.json, restart the Gateway, and confirm the Gateway runs under the same $HOME as the account you are testing from.

Why the same skill name can behave differently

OpenClaw loads skills from several places and the highest one wins. The skills documentation lists seven precedence levels, highest first: workspace skills, project agent skills (.agents/skills), personal agent skills (~/.agents/skills), managed or local skills, workshop skills, bundled skills, and finally extra directories from skills.load.extraDirs plus plugin skills. If you copied a skill into your workspace months ago, that old copy beats the newer one you just installed, and its older dependency list applies. When behavior looks inconsistent, search these locations for a duplicate name.

For more command-by-command fixes, see our command ladder for OpenClaw setup errors and the 10-minute troubleshooting checks.

What changes when you do not run the server yourself

What changes when you do not run the server yourself

Everything above assumes a machine you maintain: its programs, its package managers, its home directory, its updates. That is where most dependency pain comes from, because "missing binary" almost always means "something about the host." The people who most want a working assistant, such as busy professionals, students and teams, are the people least interested in being a sysadmin.

ClawBase's one-click deployment puts OpenClaw on a dedicated, encrypted cloud server with automated updates and daily encrypted backups, with no sysadmin skills required. Skillsets can be installed with one click from the marketplace, and our post on the skill marketplace and command-driven safety describes how that fits with the safety habits above.

> ## Our view on skills and dependencies

>

> We think about skills the way we think about any software supply chain: the capability is only as trustworthy as what it pulls in. A skill that wants three keys and two programs is making three promises and two requests on your behalf, and you should see them plainly.

>

> That is why we like the way OpenClaw declares requirements in one place, and why we think the right place to resolve them is a dedicated, private server rather than the laptop that holds your documents. Each agent on ClawBase has its own encrypted server, persistent memory and access to more than 50 AI models, so the skills you add extend a private assistant instead of a shared environment.

>

> Our advice to newcomers is simple. Start with skills that need no keys, add one credentialed skill at a time, give each its own narrowly scoped key, and check readiness after every change. Most people who try this approach spend far less time on setup and far more time on the workflows they wanted in the first place.

>

> *Iosif Peterfi*

Start with a managed OpenClaw server

If you would rather spend your time on the skills than on the host, ClawBase gives you a private, always-on OpenClaw agent with 99.9% uptime and connections to Telegram, Discord, Slack and WhatsApp. Plans are listed on our pricing page: LITE is $16 per month or $199 per year, PRO is $33 per month or $399 per year, and MAX is $66 per month or $799 per year. The entry plan includes a 7-day free trial, and you can pay by credit card or cryptocurrency.

Clawbase

New to the product? The ClawBase tutorial walks through setting up and getting the most from your agent, and the use cases page shows what people automate with it.

FAQ

Where do I find a skill's dependencies?

Open the SKILL.md file and look at the YAML header under metadata.openclaw. You can see the same information on the skill's ClawHub page or with clawhub inspect, along with versions, changelog and scan status, before you install anything.

Why is my installed skill not working?

Usually a declared requirement is not met: a missing program, an unset environment variable or a permission. Run openclaw skills check on the same machine and user account that runs the Gateway, and it will point at what is missing. If the skill does not appear at all, it is a discovery problem and needs a skills.load.extraDirs entry.

Can OpenClaw install a skill's programs automatically?

Yes, when the skill ships an install list. The Gateway tries Homebrew first, then uv, then your configured Node package manager, then go, then a direct download. You can steer this with skills.install.preferBrew and skills.install.nodeManager in ~/.openclaw/openclaw.json.

Are skill dependencies safe?

OpenClaw checks installs before download and ClawHub flags mismatches between what a skill declares and what it does. You can add to that by reading the skill's source, using narrowly scoped keys and pinning versions. Treat every key a skill asks for as access you are granting.

Do I need to manage dependencies on ClawBase?

The server itself is managed for you, with automated updates and no sysadmin skills needed. You still choose which skills to add and which keys to give them, so the habits in this guide still apply.

Sources

Recommended