Skip to content

Error calling tool claude_code_async: Command failed with exit code 127 (exit code: 127) Error output: Check stderr output for details #256

@heshengtao

Description

@heshengtao

My backend is built with FastAPI and uses claude-agent-sdk-python to control Claude code. After packaging, it returns:
Error calling tool claude_code_async: Command failed with exit code 127 (exit code: 127) Error output: Check stderr output for details

How can I dynamically set the path to Claude code? After packaging, I may need to dynamically pass the Claude code path to claude-agent-sdk-python to avoid exit code 127.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions