Skip to content

Running on windows fails - claude not found #29

@prodigy

Description

@prodigy

Thank you for this great proxy!

Running this on windows fails because it cannot find the claude code CLI. Running in WSL works without issues.

(venv) PS E:\AI\ClaudeCodeOpenAiWrapper> poetry run uvicorn src.main:app --reload --port 8000
INFO:     Will watch for changes in these directories: ['E:\\AI\\ClaudeCodeOpenAiWrapper']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [23324] using WatchFiles
2025-12-18 07:38:14,244 - src.claude_cli - INFO - Using temporary isolated workspace: C:\Users\sgrun\AppData\Local\Temp\claude_code_workspace_3j22uob4
2025-12-18 07:38:14,244 - src.auth - INFO - Claude Code authentication validated: claude_cli
2025-12-18 07:38:14,245 - src.claude_cli - INFO - Claude Code authentication method: claude_cli
INFO:     Started server process [22008]
INFO:     Waiting for application startup.
2025-12-18 07:38:14,252 - src.main - INFO - Verifying Claude Code authentication and CLI...
2025-12-18 07:38:14,252 - src.auth - INFO - Claude Code authentication validated: claude_cli
2025-12-18 07:38:14,252 - src.main - INFO - ✅ Claude Code authentication validated: claude_cli
2025-12-18 07:38:14,252 - src.main - INFO - Testing Claude Agent SDK connection...
2025-12-18 07:38:14,252 - src.claude_cli - INFO - Testing Claude Agent SDK...
2025-12-18 07:38:14,291 - src.claude_cli - ERROR - Claude Agent SDK verification failed: Failed to start Claude Code:
2025-12-18 07:38:14,291 - src.claude_cli - WARNING - Please ensure Claude Code is installed and authenticated:
2025-12-18 07:38:14,291 - src.claude_cli - WARNING -   1. Install: npm install -g @anthropic-ai/claude-code
2025-12-18 07:38:14,291 - src.claude_cli - WARNING -   2. Set ANTHROPIC_API_KEY environment variable
2025-12-18 07:38:14,292 - src.claude_cli - WARNING -   3. Test: claude --print 'Hello'
2025-12-18 07:38:14,292 - src.main - WARNING - ⚠️  Claude Agent SDK verification returned False
2025-12-18 07:38:14,292 - src.main - WARNING - The server will start, but requests may fail.
2025-12-18 07:38:14,292 - src.session_manager - INFO - Started session cleanup task (interval: 5 minutes)
INFO:     Application startup complete.
INFO:     Shutting down
INFO:     Waiting for application shutdown.
2025-12-18 07:38:36,628 - src.main - INFO - Shutting down session manager...
2025-12-18 07:38:36,629 - src.session_manager - INFO - Session manager shutdown complete
2025-12-18 07:38:36,630 - src.session_manager - INFO - Session cleanup task cancelled
INFO:     Application shutdown complete.
INFO:     Finished server process [22008]
2025-12-18 07:38:36,635 - src.claude_cli - INFO - Cleaned up temporary workspace: C:\Users\sgrun\AppData\Local\Temp\claude_code_workspace_3j22uob4
INFO:     Stopping reloader process [23324]
Terminate batch job (Y/N)? y
(venv) PS E:\AI\ClaudeCodeOpenAiWrapper> claude --print "Hello"
Hello! I'm Claude Code, an AI assistant that can help you with software engineering tasks. I can help you write code, debug issues, refactor existing code, explore codebases, and much more.

I can see you're in the `ClaudeCodeOpenAiWrapper` project directory. How can I help you today?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions