mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-03-27 15:53:08 +00:00
Add prominent warnings about Anthropic's Agent SDK policy regarding subscription-based authentication for third-party agents. Users are now advised to use API keys instead of `claude login` to avoid potential account suspension. Changes: - README: Add WARNING and NOTE admonition boxes at top (auth policy + repo no longer actively maintained) - README: Flip auth recommendation to API key first, subscription second - SettingsModal: Add amber warning Alert when Claude provider is selected - auth.py: Update CLI/server help messages to recommend API key as Option 1 - Start scripts (start.sh, start.bat, start_ui.sh): Mention ANTHROPIC_API_KEY alongside claude login in all auth hints - start.py, autonomous_agent_demo.py: Update help text references No functionality removed — subscription auth still works, warnings are informational only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
70 lines
1.8 KiB
Batchfile
70 lines
1.8 KiB
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo AutoForge - Autonomous Coding Agent
|
|
echo ========================================
|
|
echo.
|
|
|
|
REM Check if Claude CLI is installed
|
|
where claude >nul 2>nul
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Claude CLI not found
|
|
echo.
|
|
echo Please install Claude CLI first:
|
|
echo https://claude.ai/download
|
|
echo.
|
|
echo Then run this script again.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo [OK] Claude CLI found
|
|
|
|
REM Note: Claude CLI no longer stores credentials in ~/.claude/.credentials.json
|
|
REM We can't reliably check auth status without making an API call, so we just
|
|
REM verify the CLI is installed and remind the user to login if needed
|
|
set "CLAUDE_DIR=%USERPROFILE%\.claude"
|
|
if exist "%CLAUDE_DIR%\" (
|
|
echo [OK] Claude CLI directory found
|
|
echo ^(Set ANTHROPIC_API_KEY or run: claude login^)
|
|
) else (
|
|
echo [!] Claude CLI not configured
|
|
echo.
|
|
echo Please set ANTHROPIC_API_KEY or run 'claude login' to authenticate.
|
|
echo Note: API key auth is recommended. See README for details.
|
|
echo.
|
|
pause
|
|
)
|
|
|
|
:setup_venv
|
|
echo.
|
|
|
|
REM Check if venv exists, create if not
|
|
if not exist "venv\Scripts\activate.bat" (
|
|
echo Creating virtual environment...
|
|
python -m venv venv
|
|
)
|
|
|
|
REM Activate the virtual environment
|
|
call venv\Scripts\activate.bat
|
|
|
|
REM Install dependencies
|
|
echo Installing dependencies...
|
|
pip install -r requirements.txt --quiet
|
|
|
|
REM Ensure playwright-cli is available for browser automation
|
|
where playwright-cli >nul 2>&1
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo Installing playwright-cli for browser automation...
|
|
call npm install -g @playwright/cli >nul 2>&1
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo Note: Could not install playwright-cli. Install manually: npm install -g @playwright/cli
|
|
)
|
|
)
|
|
|
|
REM Run the app
|
|
python start.py
|