Skip to content

Add CLI mode for Claude Max/Pro subscription users (v1.13.6) #300

@dial481

Description

@dial481

As of v1.13.6, using Claude Code UI requires an API key. For those of us with Claude Max/Pro subscriptions, there's no way to use our existing subscription auth.

I put together a fix that spawns the actual claude CLI binary instead of the SDK.

Wanted to use this with my Claude Max subscription but couldn't find a way without API keys. Unless I missed something, it looks like the SDK integration requires an API key.

I put together a simple fix that spawns the actual claude CLI binary instead, which uses subscription auth. It works, but I should be upfront about the rough edges:

It's slower than the SDK path - probably the streaming JSON parsing overhead. There's a UI flash bug, the raw JSON stream (session metadata, mcp_servers, model info, etc.) briefly renders in the chat before being replaced by the actual response. Looks like the frontend is showing chunks before parsing them into content messages.

If this is useful to anyone, here's my fork: https://github.com/dial481/claude-code-ui

Key changes:

Added server/claude-cli.js (mirrors the cursor-cli pattern)
Toggle with USE_CLAUDE_CLI=true in .env

Related #181

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