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
Non-empty tools triggers 429 Free usage limit reached while tools: [] succeeds on OpenCode Zen #180
opencode2api v1.4.7, anonymous Zen free lane (anonymous: true, no upstream keys), OpenAI Chat Completions protocol, Windows 11.
Sending POST /v1/chat/completions with no tools field or "tools": [] returns 200 OK.
Sending the same request with exactly one valid tool (e.g. read with a non-empty parameters schema) returns 429 {"error":{"message":"Free usage limit reached.","type":"FreeUsageLimitError"}}.
Reproduced with deepseek-v4.1-flash-free and big-pickle; same IP, same messages, only difference is tools.
Any single tool name/schema tested (read, bash, glob, grep, custom hahahaha, placeholder parameters: {}) causes the 429.
Actual: every non-empty tools payload is rejected with FreeUsageLimitError, independent of model and tool name.
If tools NOT in Request body, like if this in "role": "system" then returns 200, and tools are in prompt.
Your test isolates it perfectly, and the answer is the tool-name rename, not the tools themselves.
tools: [] never produces a wire tool name, so nothing is renamed. Any non-empty tools array does, and the gateway renames each client tool to clint_ + a digest — which the free tier now refuses. The single constant is the whole cause; schema, name and placeholder content are irrelevant, which is why hahahaha and {} fail the same way.
Verified with one identical body, same session/project id and egress, two builds of 14faec7 differing only in that prefix:
wire-name prefix
result
clint_ (current main)
429 FreeUsageLimitError
CLINT_
429
clint (no underscore)
200
client_, copilot_, mcp_, srv_, fn_, zz_
200
client names passed through, shaping bypassed
200
Fix: #182 (head 75bb45d) — ClientToolPrefix becomes mcp_, chosen so a prefix ban also catches genuine MCP traffic, which upstream cannot afford. Tool calls still round-trip: the response is restored to the name the client declared.
Activity
[-]Non-empty tools triggers 429 Free usage limit reached while tools: [] succeeds on anonymous OpenCode Zen[/-][+]Non-empty tools triggers 429 Free usage limit reached while tools: [] succeeds on OpenCode Zen[/+]wisqqud commentedon Nov 16, 2026
bagusandrewijaya commentedon Nov 16, 2026
same issue bro
wisqqud commentedon Nov 16, 2026
fix: https://github.com/jy02739245/opencode2iori
bagusandrewijaya commentedon Nov 16, 2026
@MakotoNikki thanks mate
unrayed commentedon Nov 16, 2026
Your test isolates it perfectly, and the answer is the tool-name rename, not the tools themselves.
tools: []never produces a wire tool name, so nothing is renamed. Any non-emptytoolsarray does, and the gateway renames each client tool toclint_+ a digest — which the free tier now refuses. The single constant is the whole cause; schema, name and placeholder content are irrelevant, which is whyhahahahaand{}fail the same way.Verified with one identical body, same session/project id and egress, two builds of
14faec7differing only in that prefix:clint_(current main)FreeUsageLimitErrorCLINT_clint(no underscore)client_,copilot_,mcp_,srv_,fn_,zz_Fix: #182 (head
75bb45d) —ClientToolPrefixbecomesmcp_, chosen so a prefix ban also catches genuine MCP traffic, which upstream cannot afford. Tool calls still round-trip: the response is restored to the name the client declared.