API Error: 403 The security token included in the request is invalid.
I am seeing following error on modal container.
SystemMessage(subtype='init', data={'type': 'system', 'subtype': 'init', 'cwd': '/tmp', 'session_id': '89c7a90a-b2b9-4a4e-a599-8bd29912d963', 'tools': ['Task', 'Bash', 'Glob', 'Grep', 'LS', 'ExitPlanMode', 'Read', 'Edit', 'MultiEdit', 'Write', 'NotebookRead', 'NotebookEdit', 'WebFetch', 'TodoWrite'], 'mcp_servers': [], 'model': 'claude-sonnet-4-20250514', 'permissionMode': 'default', 'apiKeySource': 'ANTHROPIC_API_KEY'})
| AssistantMessage(content=[TextBlock(text='API Error: 403 The security token included in the request is invalid.')]) ResultMessage(subtype='success', duration_ms=181053, duration_api_ms=0, is_error=True, num_turns=1, session_id='89c7a90a-b2b9-4a4e-a599-8bd29912d963', total_cost_usd=0, usage={'input_tokens': 0, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0, 'output_tokens': 0, 'server_tool_use': {'web_search_requests': 0}, 'service_tier': 'standard'}, result='API Error: 403 The security token included in the request is invalid.')
Under the hood the modal might be using different cloud services not under my control but in the past i have been able to deploy apps using ANTHROPIC APIs, so wondering if i am missing something specific in regard to permissions for claude-code?
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗