You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: delegate_task lets an agent run a pay-per-token OpenRouter model with no cost signal — spent ~$150 of user credits unasked #40712
What happened orchestrator_capabilities listed the OpenCode provider with one model, openrouter/google/gemini-4-neon, labelled only "Gemini 4 Neon". Nothing in the catalog said it bills OpenRouter credits per token. A Claude agent in a T3 thread used it as one of three review judges (via delegate_task, provider opencode) for about 23 long reviews over one day. Each review read a large document and browsed the web, and together they used up the whole OpenRouter balance (about $150). The user expected judges to run on their subscriptions (Claude Hub, Codex Hub, Antigravity) and never approved OpenRouter spend. The first sign was the child failing with:
Enable the OpenCode provider with an OpenRouter API key in OpenCode's auth.
Call orchestrator_capabilities: the OpenCode entry shows openrouter/... models with labels only, no billing source or cost.
Call delegate_task with providerInstanceId: "opencode" and an openrouter/... model.
The child runs and bills OpenRouter with no prompt, cap or warning to the user.
Expected behavior
Pay-per-token routes are clearly marked in orchestrator_capabilities (for example a billing: "metered" field), and delegate_task on a metered route asks the user (or needs a per-provider opt-in / spend cap) before starting, at least the first time per thread.
Actual behavior
Metered and subscription routes look identical to the agent and to the delegation API. The only signal was the provider failing once the credits ran out.
Impact
Real money lost (~$150) with no user approval. Any agent that picks a model by name can do this.
Workaround
Disable the OpenCode provider in T3, and a user-level PreToolUse hook in Claude Code that denies any mcp__t3-code__* call whose input mentions openrouter.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
Activity
juliusmarminge commentedon Nov 22, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.