Skip to content

Prompt-Level Detection? github.com/anomalyco/opencode Causes Billing Path Switch in Claude Max #22333

@micro-xl

Description

@micro-xl

Question

(Not question. Just sharing)

Sharing a reproducible observation that may be relevant to this project.

When using Anthropic’s Messages API with a Claude Max plan, including the string github.com/anomalyco/opencode (or its previous name github.com/sst/opencode) in the system prompt consistently correlates with requests being routed to “Extra Usage” billing—even when Max plan credits are still available.

Details

In my testing, prompt content alone appears sufficient to influence how billing is applied. When the system prompt contains a reference to this repository(github.com/anomalyco/opencode or github.com/sst/opencode), requests that would normally be covered by the Max plan instead require Extra Usage credits.

Reproduction Context

  1. Clone the repository to:
    $HOME/github.com/anomalyco/opencode
  2. Run claude (CLI) to summarize recent changes
  3. Ensure Extra Usage is disabled (Max plan only)
  4. Observe: request fails with 400 (Extra Usage required)
  5. Remove or alter the repository string in the system prompt
  6. Observe: same request succeeds under Max plan

I also verified via a local proxy that the only meaningful difference between requests was the presence or absence of the repository string (including partial matches).

I was aware that opencode couldn’t use Anthropic’s subscription plans, but it was unexpected that I couldn’t even modify the project using Claude Code under a subscription.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

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