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.
Release files for openclaw-agentlock 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openclaw_agentlock-0.1.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openclaw_agentlock-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.1 kB
Release files / openclaw_agentlock-0.1.0.tar.gz
| Download URL | openclaw_agentlock-0.1.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74ea4930a929fc1c4f6ffa22170a1ff65b8011369f06fb44c66c975cb0e6b092
|
|
BLAKE2b-256 checksum How to use checksums |
bb83fd55759ebd0aedb9725c59c2419316d56c1a16f444d555b8cdbf5e5e350e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / openclaw_agentlock-0.1.0-py3-none-any.whl
| Download URL | openclaw_agentlock-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
801179ad8cf54738f3de705871658848f1ddf88c598c7853f577ebb5a5172997
|
|
BLAKE2b-256 checksum How to use checksums |
06c8908f98a129dfac4785e8c1ea0e1e9dcb0f35a2a2717d32ffdda9502a6caa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|