Skip to main content

AgentLock authorization middleware for OpenClaw skill execution.

Project description

openclaw-agentlock

AgentLock authorization middleware for OpenClaw skill execution. Apache 2.0.

Install

pip install openclaw-agentlock

Quickstart

from agentlock import AuthorizationGate
from openclaw_agentlock import load_skills, register_skills, SkillExecutor

gate = AuthorizationGate()
skills = load_skills("./skills")
register_skills(gate, skills)

executor = SkillExecutor(gate)
result = executor.execute(
    "github",
    lambda **p: run_github(**p),
    parameters={"action": "list_prs"},
    user_id="alice",
    role="developer",
)

Frontmatter permissions convention

Attach an agentlock block under metadata.openclaw in any SKILL.md:

---
name: github
description: GitHub operations via gh CLI.
metadata:
  openclaw:
    emoji: "🐙"
    requires: { bins: ["gh"] }
    agentlock:
      risk_level: high
      requires_auth: true
      allowed_roles: [developer, admin]
      rate_limit: { max_calls: 20, window_seconds: 3600 }
---

Skills without an agentlock block stay unregistered and are denied by default.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openclaw_agentlock-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openclaw_agentlock-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file openclaw_agentlock-0.1.0.tar.gz.

File metadata

  • Download URL: openclaw_agentlock-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for openclaw_agentlock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74ea4930a929fc1c4f6ffa22170a1ff65b8011369f06fb44c66c975cb0e6b092
MD5 5fdb31425d41f8429dfd8d1938dd4f66
BLAKE2b-256 bb83fd55759ebd0aedb9725c59c2419316d56c1a16f444d555b8cdbf5e5e350e

See more details on using hashes here.

File details

Details for the file openclaw_agentlock-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openclaw_agentlock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 801179ad8cf54738f3de705871658848f1ddf88c598c7853f577ebb5a5172997
MD5 ccafae3f002141d8d230459fc7f5fa39
BLAKE2b-256 06c8908f98a129dfac4785e8c1ea0e1e9dcb0f35a2a2717d32ffdda9502a6caa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page