Skip to content

ResultMessage shows total_usd_cost even though anthropic api key was never set #579

@082T

Description

@082T

I am planning to use Claude max plan tokens for my sdk usage. Neither ANTHROPIC_API_KEY nor ANTHROPIC_AUTH_TOKEN environment variables are set. When my claude agent test finishes, in the ResultMessage I get something like:
total_cost_usd=0.62177325

The documentation is not clear. Am I using tokens or am I not? Why would the total_cost_usd be anything other than 0 if I was using my Max plan to do it?

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