FlockTab

Docs

Swap the base URL. Set a cap.

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

  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"],
    )
  4. 4. Handle 402

    error: tab_closed. Header x-flocktab-reason: cap.day. Do not retry that tab until it reopens.