GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — subagent: custom agent spawn fails with "free tier can only be used from within OpenCode" · Issue #50806 · anomalyco/opencode

subagent: custom agent spawn fails with "free tier can only be used from within OpenCode" #50806

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
subagent: custom agent spawn fails with "free tier can only be used from within OpenCode"#50806
Copy link
Assignees
kitlangton

Description

@moziyan
moziyan
opened on Sep 23, 2026
Issue body actions

Description

Summary

Spawning a subagent (a custom agent) from a session fails immediately with
Error from provider (Console): OpenCode's free tier can only be used from within OpenCode.
The child session never starts, so custom agents are unusable on the free tier.

Environment

  • opencode version: 2.0.14
  • OS: Linux 6.6.87.2-microsoft-standard-WSL2 (linux x64)
  • Terminal: TERM=xterm-256color (TERM_PROGRAM/COLORTERM unset)
  • Shell: /bin/bash
  • Install/channel: latest (release)
  • Active plugins: none found (no opencode.json, .opencode/plugin/, or .opencode/plugins/)

Reproduction

  1. Launch OpenCode and open a session with the default provider (free tier).
  2. Ask the agent to delegate a task to a subagent, e.g. call the subagent tool
    with agent: "architect" (a configured custom agent), a description and a prompt.
  3. The spawn returns an error instead of starting the child session.

Expected Behavior

The subagent session starts and the task runs, with the free-tier entitlement
applied the same way as the parent session.

Actual Behavior

The tool execution fails with:

{"error":{"type":"tool.execution","message":"Subagent failed (sessionID: ses_...):
Error from provider (Console): OpenCode's free tier can only be used from within OpenCode"}}

The provider is reported as Console. The parent session on the same provider works.

Additional Context

  • Reproducible: consistent (reproduced on the first attempt).
  • The failing call is a subagent spawn for a custom agent (agent: architect);
    unclear whether built-in agents are affected too.
  • Hypothesis: the child session's provider request does not carry the flag/context
    that marks it as "from within OpenCode", so the free-tier gate rejects it.
  • No recent config changes, plugins, or terminal changes prior to the error.
  • No workaround found yet.

Plugins

no plugins

OpenCode version

2.0.14

Steps to reproduce

  1. Launch OpenCode and open a session with the default provider (free tier).
  2. Ask the agent to delegate a task to a subagent, e.g. call the subagent tool
    with agent: "architect" (a configured custom agent), a description and a prompt.
  3. The spawn returns an error instead of starting the child session.

Screenshot and/or share link

No response

Operating System

Linux 6.6.87.2-microsoft-standard-WSL2 (linux x64)

Terminal

TERM=xterm-256color (TERM_PROGRAM/COLORTERM unset)

Reacted by DmitryShagurin

Activity

  1. github-actions
    assigned
    kitlangton
    on Sep 23, 2026
  2. github-actions commented on Sep 23, 2026

    @github-actions
    github-actionsBot
    on Sep 23, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Error from provider (Console): OpenCode's free tier can only be used from within OpenCode #49680: Same error message — "free tier can only be used from within OpenCode" in a subagent/provider context
    • subagents: explore agent denied free tier can only be used from within OpenCode while running inside the CLI — general works with identical models #49723: Subagent (explore agent) denied free tier while running inside the CLI — same symptom, same error
    • policy: deny shell * on custom agent breaks free tier with "can only be used from within OpenCode" #50627: Custom agent + policy deny shell breaks free tier with the identical error message

    If your issue is distinct from those, please add context explaining what differs.

  3. llamauser
    added a commit that references this issue on Sep 28, 2026

    Use the built-in build agent instead of a custom agent

    93e2d6b
  4. neriousy commented on Oct 20, 2026

    @neriousy
    neriousy
    on Oct 20, 2026
    Member
    More actions

    Thanks for the report. We're tracking this same free-tier rejection affecting subagents in #49723, so I'm closing this as a duplicate. Please follow that issue for updates.

  5. neriousy
    closed this as a duplicateof subagents: explore agent denied free tier can only be used from within OpenCode while running inside the CLI — general works with identical models #49723 on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.