FlockTab

Docs

Swap the base URL. Set a cap.

Five minutes. Python shown. Same idea in Node, Go, or anything that speaks OpenAI. Denies are the contract.

  1. 1. Create a tab

    Console, New tab. Name the agent. Cap in dollars. Window: day is the default.

  2. 2. Copy the key

    Shown once. Prefix ft_live_. Hash stored. Rotate by issuing a new one.

  3. 3. Point the client

    from openai import OpenAI
    import os
    
    client = OpenAI(
        base_url="https://proxy.flocktab.com/v1",
        api_key=os.environ["FLOCKTAB_KEY"],
        default_headers={
            "x-flocktab-unlock": os.environ["FLOCKTAB_UNLOCK"],
        },
    )
  4. 4. Handle denials

    Body error.code. Header x-flocktab-reason. BLOCKED never reaches the provider.

    HTTPerror.codex-flocktab-reasonWhen
    402tab_closedcap.dayCap or closed tab. Do not retry until it reopens.
    402tool_cappolicy.toolNamed tool hit its cap.
    403risk_blockedpolicy.riskIrreversible. Empty allowlist denies. Remaining floor $25.00.
    429velocityvelocityToo many calls this minute.
    403model_blockedpolicy.modelsModel not on the allowlist.
    401key_revoked-Unknown or rotated key.
    503ledger_unavailableledgerFail closed. Matching in-flight replay is not a green light.

    Do not retry a closed tab until it reopens. 503 is fail closed: do not retry as a green light on a matching in-flight idempotency replay.

    Unknown tools are write, not read.