Skip to content

Credit balance error despite having Claude Code CLI subscription #359

@psh667

Description

@psh667

Issue Description

When launching the built opcode application, users encounter a "Credit balance is too low" error despite having an active Claude Code CLI subscription.

Expected Behavior

opcode should work seamlessly with Claude Code CLI subscription, as mentioned in the README:

  • opcode is described as "A powerful GUI app and Toolkit for Claude Code"
  • Prerequisites clearly state "Claude Code CLI: Install from Claude's official site"
  • Should leverage existing Claude Code CLI authentication

Actual Behavior

Credit balance is too low

Tokens: 0 in, 0 out
Execution Failed

Credit balance is too low

Cost: $0.0000 USD
Duration: 0.88s
Turns: 1
Total tokens: 0(0 in, 0 out)

Environment

  • Platform: macOS (Apple Silicon)
  • Claude Code CLI: Installed and working with active subscription
  • opcode version: v0.2.1 (built from source)
  • Build method: bun run tauri build

Steps to Reproduce

  1. Have an active Claude Code CLI subscription (confirmed working in terminal)
  2. Build opcode from source using bun run tauri build
  3. Launch the built application: open /path/to/opcode.app
  4. Attempt to use any Claude functionality
  5. Error appears immediately

Additional Context

  • Claude Code CLI works perfectly in terminal with the same subscription
  • No API key should be required according to the project description
  • This appears to be an authentication/integration issue between opcode and Claude Code CLI

Possible Causes

  1. opcode might not be properly detecting/using Claude Code CLI authentication
  2. The application might be attempting direct API calls instead of using Claude Code CLI
  3. Authentication token/session sharing between CLI and GUI might be broken

Request

Please investigate the authentication flow between opcode and Claude Code CLI to ensure subscription users can use the GUI without requiring separate API credits.

Metadata

Metadata

Assignees

No one assigned

    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