返回顶部
s

satgate

Manage your API's economic firewall from the terminal. Mint tokens, track spend, revoke agents, enforce budgets. The server-side counterpart to lnget.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.2
安全检测
已通过
761
下载量
0
收藏
概述
安装方式
版本历史

satgate

# SatGate CLI SatGate 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. ## Setup Run `scripts/configure.sh` if no `~/.satgate/config.yaml` exists. Or set environment variables: ```bash # 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. ## Safety Rules 1. **Check target first** — run `satgate status` before any operation to verify gateway URL and surface. 2. **Use `--dry-run`** on destructive operations (`revoke`, `mint` with large budgets). 3. **Never use `--yes`** without explicit user approval. 4. **Revocation is irreversible** — always confirm token name before revoking. ## Commands ### Check gateway health ```bash satgate status # Full status (version, surface, uptime) satgate ping # Quick liveness check (exit 0/1) ``` ### Mint a token for a new agent ```bash # 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 ``` ### Check agent spend ```bash satgate spend # Org-wide cost center rollups satgate spend --agent "cs-bot" # Per-agent breakdown satgate spend --period 7d # Time-scoped ``` ### List and inspect tokens ```bash satgate tokens # All tokens with status, spend, budget satgate token <id> # Detail: scope, delegation chain, spend ``` ### Revoke a compromised agent ```bash satgate revoke <token-id> # Interactive confirmation satgate revoke <token-id> --dry-run # Preview only ``` ### View security threats ```bash satgate report threats # Blocked requests, anomalies ``` ### Check policy modes ```bash satgate mode # Current mode per route (read-only) ``` ## Common Workflows **"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` ## Output Formats All commands support `--json` for machine-readable output: ```bash satgate tokens --json | jq '.[] | select(.status == "active")' satgate spend --json > monthly-report.json ``` ## Pairing with lnget SatGate (server-side) + lnget (client-side) = complete agent commerce stack. - **lnget**: Agents pay for L402-gated APIs automatically - **SatGate CLI**: Operators mint tokens, set budgets, revoke access, view spend 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`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 satgate-1776187202 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 satgate-1776187202 技能

通过命令行安装

skillhub install satgate-1776187202

下载 Zip 包

⬇ 下载 satgate v0.1.2

文件大小: 5.3 KB | 发布时间: 2026-4-17 15:59

v0.1.2 最新 2026-4-17 15:59
- Added project homepage URL (https://satgate.io) to metadata.
- Updated SatGate Cloud setup instructions: changed gateway endpoint, environment variable names, and included tenant slug.
- Improved clarity in environment variable configuration for both self-hosted and cloud setups.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部