Install Grantex Agent Skills in an OpenClaw workspace and use the JSON CLI for delegated authorization.
OpenClaw can load the same portable Grantex skills used by other Agent Skills-compatible hosts. No OpenClaw-specific Grantex SDK is required.Published @grantex/cli@0.4.2 includes the one-command OpenClaw skill installer.
Expose credentials to the OpenClaw host with its secret or environment configuration:
export GRANTEX_URL=https://api.grantex.devexport GRANTEX_KEY=YOUR_API_KEYgrantex --json me
$env:GRANTEX_URL = "https://api.grantex.dev"$env:GRANTEX_KEY = "YOUR_API_KEY"grantex --json me
Never embed API keys or grant tokens in SKILL.md, workspace instructions, prompts, or logs.
Use
Ask OpenClaw to use use-grantex-cli for operational tasks or integrate-grantex for code changes. The skills instruct it to:
request least-privilege scopes;
preserve the human consent step;
consume JSON instead of human tables;
keep tokens out of process arguments; and
distinguish a CLI preflight from protected-service enforcement.
Example shell calls:
grantex --json grants list --status activegrantex verify --env GRANTEX_GRANT_TOKEN --jsongrantex --json enforce test --token-env GRANTEX_GRANT_TOKEN --connector salesforce --tool create_lead
Trust boundary
An autonomous OpenClaw process must not be its own final authorization boundary. Verify the grant token, exact scope, and required current state inside the service, connector, or gateway before the side effect occurs.See Agent CLIs & Skills for the full shell contract and Scope Enforcement for production enforcement.