Skip to content

task() subagents unexpectedly require workspace billing even with fully external model providers #28362

@absolutegravitas

Description

@absolutegravitas

Summary

task() / delegated subagents appear to require OpenCode workspace billing/account APIs even when all configured models are fully external/local providers.

This is unexpected because the installation is fully local and model inference is configured against third-party providers only.

Environment

  • OpenCode installed locally
  • No OpenCode paid products intentionally configured
  • Models configured against external providers only
  • oh-my-openagent plugin enabled

Configured providers include:

  • Azure OpenAI-compatible endpoints
  • NVIDIA hosted endpoints
  • Bedrock
  • llama.cpp

No OpenCode-hosted model provider is configured.

Reproduction

  1. Install OpenCode locally
  2. Configure all models to external providers only
  3. Enable oh-my-openagent plugin
  4. Configure agents/categories in oh-my-openagent.json
  5. Invoke task() / delegated subagent execution

Example:

task({
  category: "quick",
  load_skills: [],
  run_in_background: false,
  prompt: "hello"
})

Actual Behavior

Instead of using configured providers directly, delegated task execution fails with a hosted billing/workspace error:

No payment method. Add a payment method here:
https://opencode.ai/workspace/<redacted>/billing

The failure occurs before local model/provider resolution.

Expected Behavior

If all configured providers are external/local:

  • delegated subagents should run locally against configured providers
  • OR OpenCode should clearly document that task() depends on hosted workspace infrastructure/billing
  • OR there should be a config flag to force fully local orchestration

Additional Findings

  • Regular model usage works correctly against external providers
  • The issue is specific to delegated task() orchestration/subagents
  • Invalid model mappings in oh-my-openagent.json were fixed separately and are unrelated
  • SDK/runtime references indicate task/session APIs use workspace identifiers internally
  • Error response explicitly references hosted workspace billing URLs

Why This Is Confusing

From the user perspective:

  • OpenCode is installed locally
  • providers are fully external
  • no OpenCode-hosted inference is configured

So it is not obvious that delegated task orchestration still depends on OpenCode account/workspace services.

Request

Please clarify:

  1. Is hosted workspace infrastructure required for task()?
  2. Is fully local subagent orchestration supported?
  3. Is this behavior intentional?
  4. Can delegation be decoupled from workspace billing/account APIs?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions