Install
openclaw skills install satgateManage your API's economic firewall from the terminal. Mint tokens, track spend, revoke agents, enforce budgets. The server-side counterpart to lnget.
openclaw skills install satgateSatGate CLI manages API access, budgets, and monetization for the agent economy. Use it when you need to control what agents can access and how much they can spend.
They're the wallet. We're the register.
If the agent needs to pay for L402 APIs, install lnget from Lightning Labs. SatGate is for the server side — enforcement, attribution, and governance.
Run scripts/configure.sh if no ~/.satgate/config.yaml exists. Or set environment variables:
# For self-hosted gateway
export SATGATE_GATEWAY=http://localhost:9090
export SATGATE_ADMIN_TOKEN=sgk_your_token
# For SatGate Cloud
export SATGATE_SURFACE=cloud
export SATGATE_GATEWAY=https://satgate-gateway.fly.dev
export SATGATE_BEARER_TOKEN=sg_your_api_key
export SATGATE_TENANT=your-tenant-slug
Always run satgate status first to confirm you're targeting the right gateway.
satgate status before any operation to verify gateway URL and surface.--dry-run on destructive operations (revoke, mint with large budgets).--yes without explicit user approval.satgate status # Full status (version, surface, uptime)
satgate ping # Quick liveness check (exit 0/1)
# Interactive (prompts for all fields)
satgate mint
# Non-interactive
satgate mint --agent "my-bot" --budget 500 --expiry 30d --routes "/api/openai/*"
# With parent (delegation under existing token)
satgate mint --agent "child-bot" --budget 100 --parent "parent-token-id"
# Preview without executing
satgate mint --agent "my-bot" --budget 500 --dry-run
satgate spend # Org-wide cost center rollups
satgate spend --agent "cs-bot" # Per-agent breakdown
satgate spend --period 7d # Time-scoped
satgate tokens # All tokens with status, spend, budget
satgate token <id> # Detail: scope, delegation chain, spend
satgate revoke <token-id> # Interactive confirmation
satgate revoke <token-id> --dry-run # Preview only
satgate report threats # Blocked requests, anomalies
satgate mode # Current mode per route (read-only)
"New agent needs API access"
→ satgate mint --agent "agent-name" --budget 500 --routes "/api/openai/*"
"How much are agents spending?"
→ satgate spend
"Agent is misbehaving"
→ satgate revoke <token-id>
"Board wants AI spend report"
→ satgate spend --json > report.json
"Is the gateway healthy?"
→ satgate ping
All commands support --json for machine-readable output:
satgate tokens --json | jq '.[] | select(.status == "active")'
satgate spend --json > monthly-report.json
SatGate (server-side) + lnget (client-side) = complete agent commerce stack.
An agent using lnget hits your SatGate-protected endpoint → SatGate enforces the budget and attributes the cost → you see it in satgate spend.
Install lnget: claude plugin marketplace add lightninglabs/lightning-agent-tools