forge wallet
Operator CLI for workspace wallets — balance, transactions, debits, credits, and auto-refill.
Command
forge wallet <subcommand> <workspaceId> [flags]
Arguments
None. Use a
<subcommand> — run forge --help for per-subcommand arguments.
Flags
None.
Subcommands
| Subcommand | Usage |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
Examples
Check balance:
forge wallet balance ws_xxxxx
# → Balance: 4500 credits ($45.00)
Debit a wallet:
forge wallet debit ws_xxxxx --amount 500 --source compute --description "GPU job #42"
Credit a wallet (admin only):
forge wallet credit ws_xxxxx --amount 1000
Set up auto-refill:
forge wallet auto-refill ws_xxxxx --threshold 1000 --amount 5000 --enabled
Errors
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | Insufficient funds (debit) |
| 2 | Wallet frozen (debit) |
| 3 | Missing required arguments |
Pitfalls
- Debit returns 422 for insufficient funds, 423 for frozen wallets.
- Credit is admin-only — only admin API keys can credit wallets.
- Refill amounts must be between 500 and 50000 cents.
- Idempotency key — use
to safely retry debit operations.--idempotency-key
See also
{auto-injected}
Tested against
{auto-injected}