🦞
Resources

openclaw_skill

Manages an OpenClaw skill entry.

Manages a skill entry under skills.entries.<name>. Skills are executable capabilities that agents can invoke.

Changing skill_name forces resource replacement.

Example Usage

resource "openclaw_skill" "calculator" {
  skill_name = "calculator"
  enabled    = true
  api_key    = var.calculator_api_key
  env_json = jsonencode({
    PRECISION = "high"
    MAX_DEPTH = "10"
  })
}

Argument Reference

ArgumentTypeRequiredDescription
skill_nameStringYesUnique skill name. Used as the key under skills.entries. Changing this forces replacement.
enabledBoolNoEnable or disable this skill.
api_keyStringNoAPI key for the skill. Sensitive.
env_jsonStringNoJSON object of environment variables to inject into the skill.

Attribute Reference

AttributeTypeDescription
idStringSame as skill_name.

Import

terraform import openclaw_skill.calculator calculator

On this page