← 返回
开发者工具 Key 中文

SatGate

Manage your API's economic firewall from the terminal. Mint tokens, track spend, revoke agents, enforce budgets. The server-side counterpart to lnget.
管理 API 经济防火墙:终端铸造代币、追踪支出、撤销代理、强制预算。作为 lnget 的服务端对应。
matt-dean-git
开发者工具 clawhub v0.1.2 1 版本 99843.8 Key: 需要
★ 0
Stars
📥 1,278
下载
💾 24
安装
1
版本
#latest

概述

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:

# 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

satgate status    # Full status (version, surface, uptime)
satgate ping      # Quick liveness check (exit 0/1)

Mint a token for a new agent

# 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

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

satgate tokens                  # All tokens with status, spend, budget
satgate token <id>              # Detail: scope, delegation chain, spend

Revoke a compromised agent

satgate revoke <token-id>           # Interactive confirmation
satgate revoke <token-id> --dry-run # Preview only

View security threats

satgate report threats          # Blocked requests, anomalies

Check policy modes

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

"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:

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

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-29 03:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,920
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,376
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,450