local-approvals
Local approval system for managing agent permissions. Use CLI to approve/deny requests, view history, and manage auto-approved categories.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/shaiss/local-approvalsLocal Approvals Skill
A local approval system that manages agent permissions with auto-approve lists and approval history tracking.
Quick Start
# List pending requests
python C:\Users\Shai\.openclaw\skills\local-approvals\cli.py list
# Approve a request
python C:\Users\Shai\.openclaw\skills\local-approvals\cli.py approve abc123
# Deny a request
python C:\Users\Shai\.openclaw\skills\local-approvals\cli.py deny abc123
# Show approval history
python C:\Users\Shai\.openclaw\skills\local-approvals\cli.py history
# Reset an agent's categories
python C:\Users\Shai\.openclaw\skills\local-approvals\cli.py reset assistant
Commands
approve(id)
Approve a pending request by ID.
python cli.py approve <request_id> [--learn] [--reviewer <name>]
Options:
--learn: Add the category to the agent's auto-approve list--reviewer: Who is approving (default: "user")
Example:
python cli.py approve abc123 --learn
deny(id)
Deny a pending request by ID.
python cli.py deny <request_id> [--reviewer <name>]
Options:
--reviewer: Who is denying (default: "user")
Example:
python cli.py deny abc123
list_pending()
List all pending requests, optionally filtered by agent.
python cli.py list [--agent <agent_id>]
Options:
--agent: Filter requests by agent ID
Example:
python cli.py list --agent assistant
show_history()
Show approval history from state.json.
python cli.py history [--limit <number>]
Options:
--limit: Maximum number of entries to show (default: 20)
Example:
python cli.py history --limit 50
reset_categories(agent)
Reset an agent's auto-approved categories list.
python cli.py reset <agent_id>
Example:
python cli.py reset assistant
Additional Commands
categories
Show auto-approved categories for one or all agents.
python cli.py categories [--agent <agent_id>]
Options:
--agent: Show categories for specific agent
Example:
python cli.py categories --agent planner
State Files
The skill maintains two JSON files in the state directory:
- state.json: Auto-approve lists and approval history
- pending.json: Pending approval requests
Location: ~/.openclaw/skills/local-approvals/
Core Functions
The core.py module provides the underlying functionality:
check_auto_approve(agent, category)- Check if a category is auto-approvedsubmit_request(agent, category, operation, reasoning)- Submit a pending requestlearn_category(agent, category)- Add category to auto-approve listget_request(request_id)- Retrieve a request by IDupdate_request(request_id, decision, reviewer)- Update request with decisionlist_pending(agent)- List pending requestsget_agent_approvals(agent)- Get agent's auto-approved categories
Best Practices
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-shaiss-local-approvals": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
near-multi-account
Secure multi-account management for NEAR Protocol with encrypted credential storage, account switching, and balance aggregation.
near-best-practices
Comprehensive NEAR best practices guide with 100+ terms covering wallet security, smart contracts, and DeFi safety.
near-subaccount
Create, list, delete, and manage NEAR subaccounts with bulk distribution operations.
near-airdrop-hunter
Discover NEAR airdrops, check eligibility, claim rewards, and track claimed airdrops across multiple platforms.
near-name-service
Manage NEAR Name Service (.near domains) - check availability, register, resolve, and manage names.