feat: add auth policy disclaimer and repo maintenance notice

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>
This commit is contained in:
Auto
2026-03-26 11:45:45 +02:00
parent bcb771734e
commit e0cd0b721e
8 changed files with 50 additions and 23 deletions

22
auth.py
View File

@@ -53,11 +53,16 @@ AUTH_ERROR_HELP_CLI = """
Claude CLI requires authentication to work.
To fix this, run:
Option 1 (Recommended): Set an API key
export ANTHROPIC_API_KEY=your-key-here
Get a key at: https://console.anthropic.com/
Option 2: Use subscription login
claude login
This will open a browser window to sign in.
After logging in, try running this command again.
Note: Anthropic's policy may not permit using
subscription auth with third-party agents.
API key authentication is recommended.
==================================================
"""
@@ -69,11 +74,16 @@ AUTH_ERROR_HELP_SERVER = """
Claude CLI requires authentication to work.
To fix this, run:
Option 1 (Recommended): Set an API key
export ANTHROPIC_API_KEY=your-key-here
Get a key at: https://console.anthropic.com/
Option 2: Use subscription login
claude login
This will open a browser window to sign in.
After logging in, try starting the agent again.
Note: Anthropic's policy may not permit using
subscription auth with third-party agents.
API key authentication is recommended.
================================================================================
"""