Andrew Fribush
fig. 2.37.1 · the default path deletes three key names before the subscription session starts; the metered API is built only past four opt-ins in three places and a typed yes.
THE DEFAULT PATH HAS NO KEY TO BILL; THE API NEEDS FOUR OPT-INS IN THREE PLACESAND A TYPED YESONE BOX IS ONE STEP OF A MODEL CALL, TOP TO BOTTOM; ACCENT: A KEY DELETED FROM THECHILD, OR AN OPT-IN THE API NEEDSmake_runner(): THE ONLY PLACE A RUNNER IS BUILTNO --api: THE SUBSCRIPTIONWORKER CYCLE OR assessTHE WORKER BUILDS ITS RUNNER WITH NO--api, 1,800 S AFTER EACH CYCLE ENDSchild_env() DELETESANTHROPIC_API_KEYANTHROPIC_AUTH_TOKENPROJECT_ANTHROPIC_API_KEYAND THE 2 NESTED-SESSION MARKERSclaude -p --tools ""EMPTY MCP CONFIG, --setting-sources "",NO SESSION PERSISTENCETHE SUBSCRIPTIONTHE LOGGED-IN PLAN, ABOUT 1K TOKENS PERCALLCOST ROW: total_cost_usdNOTED "LIST-PRICE EQUIVALENT REPORTED BYCLAUDE CODE; BILLED TO THE PLAN, NOT PERCALL"--api: THE METERED APIapi.enabled is TrueTHE BOOLEAN, IN config.json; NOT "true",NOT 1--apiON THE COMMAND LINE OF THIS RUN--budget-usdFINITE AND ABOVE 0, ON THE SAME COMMANDLINEPROJECT_ANTHROPIC_API_KEYEXPORTED IN THIS SHELL; NO OTHER SECRETSTORE IS READANY ONE MISSING: RunnerError, NORUNNER IS BUILTESTIMATE <= BUDGETELSE: "RAISE THE BUDGET OR LOWER--limit"TYPE yesANYTHING ELSE: "CANCELLED; NOTHING WASSENT."EACH CALL RESERVES2,048 OUTPUT TOKENS + INPUT AT 3 CHARS ATOKEN + 512; REFUSED PAST THE BUDGETTHE ANTHROPIC APITHE PROJECT KEY IN x-api-key; SPENDTRACKED PER CALL

source: the pipeline repo named in outline 38: llm.py lines 22-47 (child_env), 61-103 (positive_budget, api_authorized), 231-270 (CLI runner argv and cost note), 281-324 (ApiRunner, reservation, x-api-key); __main__.py lines 78-95 (make_runner), 138-150 and 175-177 (worker), 368-375 (estimate and typed yes); README.md lines 90-92; config.json line 20 · apiTwoPaths.data.ts

View in context: Running LLM pipelines on a subscription, with the API physically off → · All figures

Andrew Fribush, software and computer engineer in Austin. I build consequential systems where software meets institutions: finance, healthcare, commerce, government data, and the mechanisms that govern AI agents. Taking new engagements: hello@andrewfribush.com.