ut181749ut

Saifuban — AI skill for Claude Code

AI community

AIの財布番 — AIエージェントのAPI代に1日の上限、支払いはスマホで承認 / Hard daily caps on AI agents’ API spend, plus phone approval for payments.

How to install Saifuban

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ut181749ut/saifuban and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Saifuban does

AIの財布番 — AIエージェントのAPI代に1日の上限、支払いはスマホで承認 / Hard daily caps on AI agents’ API spend, plus phone approval for payments.

Alternatives in AI

  • CliRelay — Self-hosted AI gateway for coding CLIs — one OpenAI/Claude/Gemini/Codex-compatible endpoint, with a multi-tena 1k ★
  • Ataru — High-performance AI memory retrieval for local agent history — a Rust search core (SDK / API / JSON CLI) plus 351 ★
  • LumaBrowser — Local AI desktop app: a Chromium browser with a GPU-aware llama.cpp runtime, OpenAI-compatible API, AI chat an 125 ★

README

AIの財布番 (Saifuban) — a spending guard for AI agents

**AIがお金を使う前に、あなたのスマホに承認を聞きにくる。AIエージェントのAPI代も1日の予算で止める。Claude・ChatGPT・Museで使えて、Museならチャットに1通送るだけ。日本語・円対応。** **Hard daily caps on your AI agents' API spend, plus phone approval before any other payment.**

👉 https://ut181749ut.github.io/saifuban/

デモ: AIが無断で支払おうとして、スマホで却下する

日本語

AIエージェントは支払いの前に財布番に「払っていいか」を聞きます。財布番はあなたが決めたルールで答えます。

  • 少額(例: 300円以下)は自動で許可
  • それを超えるとスマホに通知 → 承認 / 却下をワンタップ
  • 1日・1週間・1か月の予算、1回の上限、支払先の制限
  • 「聞かずに払う」のを、前に払ったことがある支払先だけにする設定(初めての支払先はスマホで確認)
  • 緊急停止ボタン
  • AIごとに別々のルール
  • サブスク(定期購入)は金額に関係なく必ずスマホで確認。通知に年額を表示。AIが申告し忘れても、理由や支払先の文言から定期購入らしいものを見つけて確認に回す
  • AIが自分の過去の申請を調べられる(同じ支払いを二重にしないため)
  • APIキーを預ければ、AIエージェントのAPI代も1日・週・月の予算で強制停止(AIには代理のキーだけを渡す)
  • LangChain・CrewAI・OpenAI Agents SDK・Vercel AI SDK・Claude Codeでは、接続先と鍵を差し替えるだけ(コード例は英語版の「Use it from your agent framework」)
  • 日本語・円で使える。メール登録なし・無料

財布番はお金を動かしません。カード情報や口座は預かりません。

使い方

  1. サイトで「はじめる」→ 予算を選ぶ → AI用のURLが出る
  2. そのURLをAIに登録(Claude: コネクタ / ChatGPT: 開発者モードのアプリ / Muse: チャットでURLを送る / Cursor・VS Code: MCP設定)

URLをコピーせずにつなぐこともできます(OAuth)。ClaudeやChatGPTのコネクタに次のURLを登録すると財布番の許可画面が開くので、つなぐAIを選んで「許可する」を押すだけです。

https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp
  1. AIに「財布番で今日の残り予算を見て」と聞いて確認

English

**Stop your AI agents from overspending.** Saifuban puts a hard daily cap on your agents' API bills and makes them ask your phone before any other payment.

Demo: an agent loops overnight and Saifuban stops its API calls at the daily budget

Hard cap on API bills

Store your OpenAI, Anthropic, Google or OpenRouter key in Saifuban. Your agent only gets a proxy key (`sbk_...`), every call is metered, and requests are refused once the agent's daily (or optional weekly/monthly) budget is reached. Your real key never reaches the agent.

Before each call, the proxy reserves the most it could cost (input size + `max_tokens` × the model's price) and s