Skip to main content
All policy commands read and write ~/.glosso/policy.json. Changes take effect on the next agent action — no restart required. For the full CLI reference, see glosso policy CLI.

Common Workflows

Set up limits before running an agent

glosso policy set MAX_SOL_PER_TX 0.5
glosso policy set MAX_SOL_PER_DAY 3.0
glosso policy set MAX_TX_PER_HOUR 10

glosso policy allow-program 11111111111111111111111111111111
glosso policy allow-program dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH
glosso policy allow-program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4

glosso policy status

Emergency stop

glosso policy pause
# The agent's next sign attempt will throw PolicyViolationError("PAUSED")
glosso policy resume
# Back to normal

Inspect what the agent spent

glosso policy status
# Shows rolling counters: txs in last hour, SOL spent in last 24h, etc.

After a test session — clear the counters

glosso policy reset-counters

Direct File Editing

For more complex configs (e.g. multiple recipients, exact program lists), editing ~/.glosso/policy.json directly is often faster:
{
  "maxSolPerTx": 0.5,
  "maxSolPerDay": 3.0,
  "maxTxPerHour": 10,
  "allowedPrograms": [
    "11111111111111111111111111111111",
    "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH",
    "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
    "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  ],
  "allowedRecipients": [
    "7nYfs5EkxcfKwTUK9PcKjjQvifP45sWVT1p6KMeKxKi"
  ],
  "activeHours": { "from": 8, "to": 22, "timezone": "UTC" },
  "activeDays": ["mon", "tue", "wed", "thu", "fri"],
  "expiresAt": "2025-12-31T23:59:59Z",
  "paused": false
}
The engine re-reads this file on every sign call, so edits apply immediately.