Skip to content

[Claude Code Usage (ccusage)] No output received from ccusage daily command #21272

Closed

Description

@zzyfisher

Extension

https://raycast.com/nyatinte/ccusage

Raycast Version

v1.102.6

macOS Version

15.3.1

Description

when I invoke ccusage extension then choose any command, it dosn't display usage information. The error message is

Error:

Error: No output received from ccusage daily command
    at Object.parseOutput [as current] (/Users/ME/.config/raycast/extensions/f3d9667a-c814-4126-b0a2-a2b402608c91/ccusage.js:31:98154)
    at /Users/ME/.config/raycast/extensions/f3d9667a-c814-4126-b0a2-a2b402608c91/ccusage.js:11:1774
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Image
which npx
/Users/ME/.nvm/versions/node/v21.7.3/bin/npx

npx ccusage@latest --json

{
  "daily": [
    {
      "date": "2025-08-23",
      "inputTokens": 9637006,
      "outputTokens": 43494,
      "cacheCreationTokens": 0,
....}

I've checked #20056 but can't solve this problem.

Steps To Reproduce

After I invoke ccusage extension then choose any command, it dosn't display usage information.

Current Behaviour

No response

Expected Behaviour

No response

Activity

  1. added
    bug
    extension
    on Sep 1, 2025
  2. added
    extension: ccusage
    on Sep 1, 2025
  3. raycastbot commented on Sep 1, 2025

    @raycastbot
    Collaborator

    Thank you for opening this issue!

    🔔 @nyatinte @zhuravel you might want to have a look.

    💡 Author and Contributors commands

    The author and contributors of nyatinte/ccusage can trigger bot actions by commenting:

    • @raycastbot close this issue Closes the issue.
    • @raycastbot close as not planned Closes the issue as not planned.
    • @raycastbot rename this issue to "Awesome new title" Renames the issue.
    • @raycastbot reopen this issue Reopens the issue.
    • @raycastbot assign me Assigns yourself to the issue.
    • @raycastbot good first issue Adds the "Good first issue" label to the issue.
    • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.
  4. zzyfisher commented on Sep 1, 2025

    @zzyfisher
    ContributorAuthor

    I attempted to resolve this issue with the help of Claude Code. From my analysis, the root cause is that npx attempts to access certain resources via the internet, which fails under specific network environments.

    My solution is to invoke ccusage directly to address this problem. Naturally, this requires installing ccusage globally via npm beforehand, like npm install -g ccusage

    The solution is:

    Add support for direct ccusage command execution

    • Add new preference option to use direct 'ccusage' command instead of 'npx ccusage@latest'
    • Update all CLI hooks (daily, monthly, session, total) to support direct command execution
    • Implement conditional command building based on user preference
    • Maintain backward compatibility with npx-based execution as default

    This change allows users who have ccusage globally installed to bypass npx and use the command directly,
    improving performance when ccusage is available globally.

    Image

    But I’m not sure whether my approach is correct. However, I believe you would be able to resolve this issue properly. So the above information is provided for your reference.

  5. raycastbot commented on Oct 21, 2025

    @raycastbot
    Collaborator

    This issue has been automatically marked as stale because it did not have any recent activity.

    It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

  6. added
    status: stalled
    on Oct 21, 2025
  7. raycastbot commented on Oct 31, 2025

    @raycastbot
    Collaborator

    This issue has been automatically closed due to inactivity.

    Feel free to comment in the thread when you're ready to continue working on it 🙂

    You can also catch us in Slack if you want to discuss this.

  8. nyatinte commented on Nov 7, 2025

    @nyatinte
    Contributor

    @raycastbot reopen this issue

  9. removed
    status: stalled
    on Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionextension: ccusage

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions