Hubu

Agent spend control plane

Governed spend
for AI agents.

Hubu governs AI-agent spend. Gongbu executes only Hubu-authorized provider work. Agents get a budget, never your keys.

Marty, Hubu's cream-and-jade seal mascot on a cinnabar base
Meet Marty · drag me
Control plane + executors

CONTROL PLANE

Hubu

  • Policy + budgets
  • Authorizations
  • Ledger + reconciliation
versioned executor contract

DEFAULT EXECUTOR

Gongbu

  • Provider credentials
  • Temporal workflows
  • Artifacts + retries

Two supported modes: sandbox and live. Both start Gongbu by default. Decisions-only is a future advanced concept and is not supported. Advanced: custom executors →

Managed stack experience

From a policy file to a
governed agent call

Write the rules, give the agent a budget, and every call is checked before any provider work starts. All on your machine: install the binaries from an exact release tag (install guide), then follow the local stack guide for every flag.

Before you startprerequisites · once per machine
Create a live profile, connect provider keys, start the stack

Create a live profile

hubu stack init --mode live --profile "$HOME/hubu-live"
hubu stack select --profile "$HOME/hubu-live"
hubu stack profiles
SELECTED  DEFAULT  PATH
*                  /Users/you/hubu-live

One profile for Hubu, Gongbu and Temporal. Charges can happen only after the stack is started and an agent makes a governed request.

Connect provider keys

Keep your BFL and Google AI Studio keys in macOS Keychain. credentials.toml names them; providers.toml binds each model to a key and caps what any single request may cost.

# providers.toml
[[contract_bindings]]
contract   = "hubu.flux-2-pro.text-to-image/v1"
credential = "bfl_flux"
hubu stack doctor

Start, then register the agent

hubu stack start
Classification  running_ready
hubu yes  gongbu yes  worker yes
hubu register agent --name image-agent --version local-dev
agent      image-agent
agent_id   agt_…7KQ
account_id aga_…

The stack creates a default owner on start. The agt_ ID is what policies and budgets attach to.

No provider keys yet? The local stack guide starts in sandbox, which needs no keys and cannot spend. Full live setup: live configuration example.

Start from a policy fileStep 1

Rules in plain YAML

Command
hubu policy apply --path policies/creative-tiers.yaml --name "Creative tiers"
id: creative_tiers
version: 2026-10-19.1
default_effect: needs_approval
rules:
  - id: escalate_final_renders
    effect: needs_approval
    reason: high-resolution finals need human approval
    when:
      op: in
      field: image_size
      values:
        - string: 2k
        - string: 4k

  - id: allow_draft_renders
    effect: allow
    reason: 1k image drafts are pre-approved
    when:
      op: all
      conditions:
        - op: eq
          field: capability
          value:
            string: capability:image:generate
        - op: eq
          field: image_size
          value:
            string: 1k
        - op: lte
          field: amount
          value:
            money: "0.10"
  # excerpt: the full file has 4 rules
Give the agent a budgetStep 2
Command
hubu budget create --agent-id agt_IMAGE_AGENT_ID --amount 2
$2.00USD · cumulative

image-agent · bgt_…

Watch spend livelive
Command
hubu watch --events 10
 HUBU WATCH · 2 agents                                  USD · 14:02:58
 ────────────────────────────────────────────────────────────────────
 image-agent ████████████░░░░░░░░░░░░  $0.97 of $2.00  48%
 copy-agent  ████░░░░░░░░░░░░░░░░░░░░  $0.18 of $1.00  18%
             █ consumed  ▓ frozen  ░ free

 RECENT DECISIONS
 2026-11-24 14:02:58  ✓ image-agent FLUX   $0.40 → $0.32     escalate_final_renders
 2026-11-24 14:02:09  ✓ image-agent FLUX   $0.05 → $0.03     allow_draft_renders
 2026-11-24 14:01:12  ✓ image-agent FLUX   $0.05 → $0.03     allow_draft_renders
 2026-11-24 13:58:40  ✓ copy-agent  Gemini $0.04 → $0.02     allow_small_spend
 2026-11-24 13:57:03  ✗ image-agent FLUX   $1.20 blocked     deny_oversized_image_spend
 2026-11-24 13:55:31  ✓ image-agent FLUX   $0.05 → $0.03     allow_draft_renders
 2026-11-24 13:52:14  ○ copy-agent  Gemini $0.04 released    allow_small_spend
 2026-11-24 13:49:47  ✓ image-agent FLUX   $0.05 → $0.03     allow_draft_renders
 2026-11-24 13:46:20  ✗ image-agent FLUX   $0.08 blocked     deny_unapproved_image_model
 2026-11-24 13:44:02  ✓ copy-agent  Gemini $0.04 → $0.03     allow_small_spend
Plug into your harness

Hubu as MCP tools for your agent

Hubu ships a stdio MCP server, hubu-unified-mcp. The agent sees hubu_* and gongbu_* tools and never a provider key.

Remote, from ChatGPTexperimental

Secure MCP Tunnel: an outbound connection from your Mac, no inbound port. Works from ChatGPT on the web or your phone while the client runs.

ChatGPTOpenAI tunneltunnel-clienthubu-unified-mcp
caffeinate -i tunnel-client run --profile hubu-stdio
Tunnel runbook →
Local MCP clientCodex verified

Your harness starts hubu-unified-mcp from its MCP config. Codex has a setup helper. Other clients take manual config and aren't verified yet.

hubu init codex --stack-profile "$HOME/hubu-live"
MCP setup →
Agent harness · image-agentMCP · hubu-unified-mcp
you
Draft Marty holding a lantern, 1k.
tool
hubu_submit_governed_execution · flux-2-pro · image_size 1k
hubu
allow · allow_draft_renders · reserved $0.05
gongbu
Draft of Marty holding a lanternartifact ready · settled $0.03 · released $0.02
you
Now render the final at 4k.
tool
hubu_submit_governed_execution · flux-2-pro · image_size 4k
hubu
‖ escalate_final_renders · owner approval needed
hubu
approved by the owner in the admin portal · reserved $0.40
gongbu
Draft of Marty holding a lanternartifact ready · settled $0.32 · released $0.08
Run it from the admin portal

A local portal for the owner

hubu ui

Opens from a one-time login link. Everything the admin CLI does, in a browser. Changes that matter ask for Touch ID on your Mac. Admin UI guide →

127.0.0.1:8790/#/overview
OverviewAuto-refresh
People and agents
Users1
Agents3
Spend lifecycle
Pending approvals1
Automatic denials1
Unresolved reconciliations0
Policies and budgets
image-agent$0.97 of $2.00
copy-agent$0.18 of $1.00
Policiescreative_tiers · starter_spending_policy
Spend per day · 7 days
Total$1.50

Illustrative amounts, IDs, and times.Local stack guide →Policy guide →CLI reference →

Works today

  • macOS source install from a release tag
  • Codex setup helper; other MCP clients by manual config
  • Gemini and the FLUX suite live providers: FLUX.2 [pro], [max], [flex], [klein] and FLUX 3 Image, with edit
  • Live and sandbox modes live with approved real providers; sandbox with a non-billable fixture and no provider credentials
See what works today →