OpenCode free-tier 403 bug: restricted custom subagents rejected as non-OpenCode calls
w3struk · ghdev · 2026-10-12
GitHub issue #54744 in anomalyco/opencode (v2.0.27) reports a reproducible bug: on free-tier models, custom subagents with restricted tool allowlists under deny-by-default permissions fail with a 403 'OpenCode's free tier can only be used from within OpenCode', while built-in agents with full toolsets work in the same session.
Key details:
- A second custom subagent with bash allowed fails identically, so the missing bash tool isn't the cause — the restricted tool shape itself correlates with failure.
- Server logs show AI.Error.Authentication on the child sessions; failure is consistent, not intermittent.
- Only workaround is granting the full toolset, which defeats the purpose of restricted permissions.
The issue is still in triaging, suggesting free-tier auth may be misclassifying restricted subagent sessions as external client calls.
More from coding & agent
- Spawn founder: naming each agent stops Claudes from rubber-stamping each other's bad work — TAbrodi · 2026-12-02
- Nano 2.1 vs GPT Img 2.6 compared: Fable + Three.js + Seedream pipeline for controllable renders — Ror_Fly · 2026-12-02
- One prompt, full autonomous run: agent finds a trend, makes song and video in 2h41m — tetsuoai · 2026-12-02
- YouTube explainer breaks down how MCP actually works — S20091981 · 2026-12-02
- ty 1.0 demo: satisfies_all infers length-plus-integer constraints across predicates — charliermarsh · 2026-12-02
- Ruff author contrasts type inference: ty vs Mypy vs Pyright vs Pyrefly on one example — charliermarsh · 2026-12-02