feat: add Claude Code Pro CLI integration with full image support #518
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Claude Code Pro CLI Integration
Summary
This PR adds comprehensive Claude Code Pro CLI integration to screenshot-to-code, enabling users to generate code from screenshots using their Claude Code Pro subscription without requiring separate API keys.
Key Features
NUM_VARIANTS
env varTechnical Implementation
New Claude CLI Wrapper (
backend/models/claude_cli.py
)Modified Route Handler (
backend/routes/generate_code.py
)Enhanced Configuration (
backend/config.py
)NUM_VARIANTS
environment variable supportDevelopment Experience Improvements
start.sh
,stop.sh
,restart.sh
,dev.sh
,start-separate.sh
Files Changed
Benefits
Setup Instructions
For Claude Code Pro Users (No API Keys Needed)
For API Key Users (Existing Workflow)
Test Plan
Breaking Changes
None - this is fully backward compatible.
Migration Notes
Existing users can continue using API keys as before. New users with Claude Code Pro can skip API key setup entirely.
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]