프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Saifuban

제작자: ut181749ut버전 0.4.1i★ 1i클라우드에서 실행공식 사이트 ↗
레지스트리 이름io.github.ut181749ut/saifuban

설치 방법

What it does

Hard daily caps on AI agents' API spend, plus phone approval before any other payment.

  • Connects 클라우드에서 실행
  • Account or key Needs Authorization
  • Category 온라인 쇼핑몰 및 결제

이 순위인 이유

목록은 사용 점수(100점 만점)로 정렬되며 구성은 다음과 같습니다

인기4/80GitHub 별 또는 주간 다운로드: 큰 쪽 60, 작은 쪽 20
최신성12/1230일 안에 릴리스나 코드 변경이 있으면 만점
응답 중8/8마지막 점검 때 클라우드 엔드포인트가 응답
사용 점수24/100

품질: 기본 점검 4/5개 통과(표시만, 정렬에는 안 씀) · 상승세: 데이터 없음 (급상승 탭에서만 사용)

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

한 문장으로 AI에게 설치 맡기기

Saifuban 설치해 줘. https://mcp.popnx.com/i/ut181749ut-saifuban.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.

내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기

검사 4/5 통과 · 내가 묻는 내용은 제작자 서버(zrphnuvrsldcycxtdftv.supabase.co)를 거쳐요 · ✓ 명령 확인 2026년 11월 13일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있어요 · 약 5분

Saifuban 키가 필요해요 (제작자 사이트에서 만들기) · claude.ai나 데스크톱 앱에서 한 번 설정하면 채팅에서 쓸 수 있어요 · 무료 계정은 1개까지 · Team/Enterprise는 소유자(Owner)가 추가

  1. Saifuban에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Saifuban 사이트 열기 ↗

  2. Claude의 Connectors 페이지 열기

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. “Add” → “Custom” → “Web”를 누르고 이 2칸 채우기

    여기서 복사해 Claude의 같은 이름 칸에 붙여 넣고 Continue를 누르세요

    Name · 이름Saifuban
    Remote MCP server URL · 주소https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp

    Request headers에 이 이름과 값을 추가

    헤더 이름Authorization
    값Bearer <여기에 키 붙여 넣기>

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

    Claude가 찾은 로그인 설정 화면에서 Continue를 누르고 · Authentication은 제작자 안내대로(Sign in now, Sign in when needed, No sign in) 고른 뒤 Add를 누르세요

  4. 채팅에서 켜기

    +ConnectorsSaifuban

  5. 해 보기

    Saifuban을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 Saifuban을 쓰고 있다고 하거나 답에 Saifuban 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT는 아직 Saifuban에 연결할 수 없어요

Saifuban는 연결할 때 내 키가 필요한데, OpenAI 도움말은 OAuth 로그인만 설명하고 우리가 확인한 키 입력 방법이 없어요

대신 이렇게 할 수 있어요

A · Saifuban에 연결되는 앱 쓰기

  • Saifuban 키가 필요해요 (제작자 사이트에서 만들기) · claude.ai나 데스크톱 앱에서 한 번 설정하면 채팅에서 쓸 수 있어요 · 무료 계정은 1개까지 · Team/Enterprise는 소유자(Owner)가 추가
  • Saifuban 키가 필요해요 (제작자 사이트에서 만들기)
  • Saifuban 키가 필요해요 (제작자 사이트에서 만들기)
  • Saifuban 키가 필요해요 (제작자 사이트에서 만들기)

B · 온라인 쇼핑몰 및 결제에서 ChatGPT에 연결되는 다른 서버

같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요

Claude Code에 연결할 수 있어요 · 약 5분

Saifuban 키가 필요해요 (제작자 사이트에서 만들기)

  1. Saifuban에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Saifuban 사이트 열기 ↗

  2. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  3. 이 명령을 붙여 넣고 Enter

    claude mcp add --transport http --scope user saifuban https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp --header 'Authorization: Bearer your-value'

    Enter 전에 “your-value”를 내 키로 바꾸세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  4. Claude Code에서 /mcp 입력

    Saifuban이 목록에 있고 연결됨으로 보이면 돼요

  5. 해 보기

    Saifuban을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 Saifuban을 쓰고 있다고 하거나 답에 Saifuban 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있어요 · 약 5분

Saifuban 키가 필요해요 (제작자 사이트에서 만들기)

  1. Saifuban에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Saifuban 사이트 열기 ↗

  2. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  3. 키 입력

    Saifuban 설정에서 Authorization가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  4. Cursor에서 AI 채팅을 Agent 모드로 열기

  5. 해 보기

    Saifuban을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 Saifuban을 쓰고 있다고 하거나 답에 Saifuban 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있어요 · 약 5분

Saifuban 키가 필요해요 (제작자 사이트에서 만들기)

  1. Saifuban에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Saifuban 사이트 열기 ↗

  2. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  3. 키 입력

    Saifuban 설정에서 Authorization가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  4. VS Code에서 AI 채팅을 Agent 모드로 열기

  5. 해 보기

    Saifuban을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 Saifuban을 쓰고 있다고 하거나 답에 Saifuban 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

웹으로 연결하는 앱용 주소

주소https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? Saifuban을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

웹으로 연결

Claude Code

claude mcp add --transport http --scope user saifuban https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp --header 'Authorization: Bearer your-value'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "saifuban": {
      "url": "https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp",
      "headers": {
        "Authorization": "Bearer your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "saifuban": {
      "type": "http",
      "url": "https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp",
      "headers": {
        "Authorization": "Bearer your-value"
      }
    }
  }
}

직접 입력할 값

  • Authorization 비밀 필수 HTTP header
    https://ut181749ut.github.io/saifuban/ 의 Bearer sbk_... 에이전트 키
    영어 원문 보기Bearer sbk_... agent key from https://ut181749ut.github.io/saifuban/

설명은 자동 번역이며 변수 이름은 원문 그대로입니다. 확실하지 않으면 원문을 확인하세요.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

주간 다운로드i
npm/PyPI에 없음
라이선스i
라이선스 표시 없음
연결 방식
클라우드에서 실행
전송 방식
streamable-http
최신 버전i
0.4.1
레지스트리 공개i
2026년 11월 8일
코드 마지막 변경i
2026년 11월 18일
마지막 확인
2026년 11월 14일
제작자
ut181749ut
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

인터넷으로 연결하는 앱

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

모든 앱과 장단점 →

할 수 있는 일

도구 이름과 설명은 서버가 2026년 11월 14일에 알려 준 그대로예요. 우리가 아니라 제작자가 쓴 글이고, 일반 텍스트로만 보여 드려요.

  • request_payment

    お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner mu

  • check_payment_status

    以前の申請(request_id)が承認されたかを確認する。approved になってから支払うこと。 / Check whether an earlier request was approved. Pay only after it is approved.

  • list_payments

    このAI自身の過去の支払い申請を調べる(二重払い・二重契約を避けるため)。例: 今月すでにSpotifyを承認済みか。 / Look up this agent's own past payment requests, e.g. to check whether a Spotify charge was already approved this month, and avoid paying twice.

  • get_budget

    このAIが今日・今週・今月あといくら使えるか、1回の上限、自動承認ライン、使ってよい支払先を確認する。 / Check the remaining daily, weekly and monthly budget, per-payment limit, auto-approve amount and allowed merchants.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 19일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 ut181749ut 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 어제

  • ✕ 실패

    라이선스 있음

    저장소에서 라이선스 파일을 찾지 못했어요

  • ✓ 통과

    엔드포인트 응답

    248ms 만에 응답(HTTP 200)

  • – 해당 없음

    OAuth로 로그인

    로그인 필요 없음

  • ✓ 통과

    도구 설명에 숨겨진 지시 없음

    도구 설명 4개를 읽었고, AI에게 보내는 숨겨진 지시는 없었어요

우리가 확인하는 것 → · JSON

제작자: 재확인 요청 또는 잘못된 정보 신고
제작자용: README에 배지 달기

제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ut181749ut-saifuban.svg)](https://mcp.popnx.com/en/servers/ut181749ut-saifuban)

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

로그인하고 리뷰 쓰기

온라인 쇼핑몰 및 결제 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 2947개 중 89%보다 스타가 많아요
  • 이 카테고리의 다른 서버 2947개 중 73%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 2947개 중 63%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Saifuban, 안전한가요?

해당하는 기본 점검 5개 중 4개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: Authorization

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

제작자의 클라우드에서 실행돼요. 설치 없이 인터넷으로 연결하지만, 보내는 내용은 제작자의 서버를 거쳐요.

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 어제 변경됐고, 최신 버전(0.4.1)은 11일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되므로 원격 MCP를 받는 앱에서도 쓸 수 있어요. 예: 웹 ChatGPT(Business 이상은 전체 MCP, Pro는 읽기 전용).

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Stripe MCP, flightclaw, Trade It, Marketplace Ad Pros: Amazon Ads & Seller Central, idealo MCP Server

비슷하게 동작하는 다른 것

같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Stripe MCP

MCP server integrating with Stripe - tools for customers, products, payments, and more.

제작자: stripe널리 사용됨★ 2.1천13개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · stripe.com

flightclaw

Search ~300 airlines and book flights with a checkout link. OAuth sign-in by email code.

제작자: flightclaw성장 중★ 862개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · flightclaw.com

Trade It

Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.

제작자: trade-it-inc초기★ 6234일 전 업데이트

클라우드에서 실행✓ 서비스 회사 · tradeit.app

idealo MCP Server

Search products, compare prices and discover deals across 6 European markets with your AI assistant.

제작자: idealo초기★ 286개월 전 업데이트

클라우드에서 실행✓ 서비스 회사 · mcp.idealo.com
비슷한 항목과 비교
이 항목
Saifuban
Stripe MCPflightclawTrade ItMarketplace Ad Pros: Amazon Ads & Seller Centralidealo MCP Server
실행 위치클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요
키 필요예아니요아니요아니요아니요아니요
Claude에서 +로 추가아니요예아니요아니요아니요아니요
기본 점검4/54/44/45/54/44/4
라이선스–MITMITCC0-1.0MITMIT
가격등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

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

  • 少額(例: 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」)
  • 日本語・円で使える。メール登録なし・無料

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

APIキーを他人のサーバーに預けたくない場合は、全部を自分のSupabaseとCloudflare(どちらも無料枠で足ります)で動かせます。手順は SELF_HOST.md。

使い方

ターミナルからなら1行で始められます(登録・AI作成・APIキー預けまで): npx https://github.com/ut181749ut/saifuban/archive/refs/heads/main.tar.gz(WindowsのPowerShellでは npx.cmd https://github.com/ut181749ut/saifuban/archive/refs/heads/main.tar.gz)

  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.

  • Keep your real Anthropic / OpenAI / Google key. No reseller in between, no markup, new API features work on day one. The agent gets a proxy key; your key stays encrypted on the server.
  • Parallel calls can't go over. Every call reserves its worst-case cost before it's sent, so ten calls started at once still stop at the cap.
  • Per agent, per day, in your time zone. Each agent gets its own daily (and optional weekly/monthly) budget that resets at your midnight. Budgets can be shown in USD (Settings → currency).
  • Open source and self-hostable. Don't want to hand your key to someone else's server? Run the whole thing on your own Supabase and Cloudflare free tiers: SELF_HOST.md.
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 settles to the actual usage when the call ends. Reservations count against the caps together with spend, so parallel calls can't all slip under the line. If a stream is cut before the usage arrives, the reserved amount is recorded instead of zero. Each reservation is settled exactly once: a retried or late settle can't charge twice, and a reservation whose settle never arrives is charged at its reserved amount after 10 minutes (and corrected if the real usage shows up later). See the reserve → settle → release test. Days reset at midnight in the owner's own time zone (taken from their device, changeable in Settings), and a call is charged to the day it started, so a call from 23:59 to 00:01 stays on the earlier day (day boundary test). If a request doesn't set an output limit, the proxy sets one (the model's maximum, up to 32k tokens) and reserves for it, so a call can't write past its reservation; asking for several answers at once (n) reserves for each. Web searches and other per-call tool fees are counted too, prices and the exchange rate update daily, and a model missing from the price list is charged at that provider's highest price. If a call doesn't fit only because other calls still hold reservations, the proxy answers 429 (retry shortly), so a retry goes through once they finish. If the rest of the day's budget can't cover the requested max_tokens but can cover at least 4,096 tokens, the proxy lowers max_tokens to what's left instead of refusing (the response carries x-saifuban-output-capped). When the budget is really used up, it answers 429 with billing_error, x-should-retry: false and Retry-After set to the reset time, the same shape Claude Code expects from a spend-limit gateway, so clients stop instead of retrying. Token-counting calls (count_tokens, input_tokens) pass through free. Endpoints whose cost can't be metered per call (batches, images, audio, video, fine-tuning, realtime) are refused, so they can't go around the cap. The proxy runs on Cloudflare, so responses that take several minutes stream to the end (the older https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-proxy/... address still works, but cuts responses at 150 seconds).

Each agent can also have at most a few API requests in flight at once (8 by default, adjustable). Extra requests get a 429 and the official SDKs retry them automatically, so a runaway loop can't fire hundreds of calls before the budget check catches up.

Use it from your agent framework

Or set everything up from the terminal in one command (account, agent with a daily budget, API key):

npx https://github.com/ut181749ut/saifuban/archive/refs/heads/main.tar.gz

On Windows PowerShell use npx.cmd instead of npx. Git doesn't need to be installed. The command checks GitHub for a newer version on start and runs that one, so an old copy cached by npx is never used.

Point the client at the Saifuban proxy and give it the agent's proxy key. Nothing else changes.

Claude Code

export ANTHROPIC_BASE_URL="https://saifuban.saifuban-app.workers.dev/proxy/anthropic"

export ANTHROPIC_AUTH_TOKEN="sbk_..."

Use `ANTHROPIC_AUTH_TOKEN`, not `ANTHROPIC_API_KEY`: with `ANTHROPIC_API_KEY`, Claude Code asks once whether to use the key, the default answer is No, and a declined key is ignored silently after that. To keep it for every new terminal, put both in the `"env"` block of `~/.claude/settings.json` (`%USERPROFILE%\.claude\settings.json` on Windows). The setup command offers to do this for you.

OpenAI SDK / OpenAI Agents SDK (Python)

from openai import AsyncOpenAI

from agents import set_default_openai_client

set_default_openai_client(AsyncOpenAI( base_url="https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", api_key="sbk_...", ))

LangChain

from langchain_openai import ChatOpenAI

from langchain_anthropic import ChatAnthropic

gpt = ChatOpenAI(model="gpt-4o-mini", base_url="https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", api_key="sbk_...") claude = ChatAnthropic(model="claude-sonnet-4-5", base_url="https://saifuban.saifuban-app.workers.dev/proxy/anthropic", api_key="sbk_...")

CrewAI

from crewai import LLM

llm = LLM(model="openai/gpt-4o-mini", base_url="https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", api_key="sbk_...")

Vercel AI SDK

import { createOpenAI } from "@ai-sdk/openai";

const openai = createOpenAI({ baseURL: "https://saifuban.saifuban-app.workers.dev/proxy/openai/v1", apiKey: "sbk_..." });

OpenRouter (hundreds of models, actual cost reported per call): base URL https://saifuban.saifuban-app.workers.dev/proxy/openrouter/v1. Gemini: https://saifuban.saifuban-app.workers.dev/proxy/google/v1beta/openai (OpenAI-compatible).

Phone approval for everything else

Your AI agent asks Saifuban before every payment. Saifuban answers using your rules.

  • Auto-approve small amounts (e.g. under ¥300)
  • Anything above goes to your phone as a push notification — approve or reject in one tap
  • Daily, weekly and monthly budgets, per-transaction limit, allowed merchants
  • Optional: auto-approve only merchants you've paid before; new merchants always go to your phone
  • Kill switch
  • Separate rules per agent

Saifuban never moves money and never stores card or bank details. It only decides whether a payment is allowed.

Setup
  1. Open the site, press "はじめる" (Start), pick a budget — you get a personal MCP URL
  2. Add the URL to your AI as a remote MCP server (Streamable HTTP, no auth — the key is in the URL). With Muse, just send the URL in a chat message and ask it to connect

Or skip the copy-paste and connect with OAuth: add https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp as a connector in Claude or ChatGPT. A Saifuban consent page opens; pick (or create) the agent and press Allow. Dynamic Client Registration and PKCE (S256) are supported.

  1. Ask your AI: "Check my remaining budget with Saifuban"

MCP tools

ToolWhat it does
request_paymentAsk whether a payment (merchant, amount, currency JPY/USD, reason, recurring none/week/month/year) is allowed. Waits up to 45 s for phone approval. Returns a single-use payment_token when approved. Subscriptions always need your approval, whatever the amount, and the notification shows the yearly cost. Retrying a request that is still pending returns the same request instead of creating a new one (or pass idempotency_key).
check_payment_statusCheck whether a pending request was approved.
list_paymentsThe agent's own past requests (filter by merchant / days), so it can check e.g. whether a Spotify charge was already approved this month and avoid paying twice.
get_budgetRemaining budget today, this week and this month, per-transaction limit, auto-approve threshold, allowed merchants.

Endpoint: https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban-mcp/ (get your key on the site)

Hard enforcement: single-use payment tokens

Calling request_payment is voluntary, so a prompt-injected agent could simply skip it. To make the guard enforceable, every approved request comes with a payment_token (sbt_...):

  • single-use, valid for 24 hours
  • bound to the approved merchant and amount
  • invalid if the AI is stopped or the kill switch is on

Whatever actually moves the money (your payment tool, wrapper, or merchant backend) should require this token and redeem it before paying:

curl -X POST https://zrphnuvrsldcycxtdftv.supabase.co/functions/v1/saifuban/redeem \

-H "content-type: application/json" \ -d '{"token":"sbt_...","merchant":"OpenAI","amount":12.5,"currency":"USD"}'

=> {"valid":true,"consumed":true,...} or {"valid":false,"error":"already_used" | "merchant_mismatch" | "amount_exceeds_approval" | ...}

/verify takes the same body and checks without consuming. No agent key is needed to redeem, so the payment side doesn't have to share secrets with the agent.

API spend is already hard-enforced: when you store your provider API key in Saifuban, the agent only ever gets a proxy key.

Challenge

Think you can make Saifuban approve more than the budget? A live agent with a ¥100/day budget is open to everyone: https://ut181749ut.github.io/saifuban/challenge.html

Thanks
  • u/organic-humanoid pointed out that metered API calls were checked before the call but counted after, so calls already in flight could slip past the cap. That led to reserve-then-settle in the proxy. Thank you!

Links

  • 利用規約 / Terms
  • [プライバシーポリシー / Privacy](https://ut181749ut.github.io/saifuban/p

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요