#!/bin/bash
# Start Claude Code DIRECT to Anthropic, bypassing the Bikoret gate — the
# fallback for when bikoret.ch / the pod is down (KOHEN "Claude Code behind
# the gate — fallback").
#
# Why --settings and not `env -u`: an `env` entry in ~/.claude/settings.json
# overrides the shell environment (verified 2026-10-15), so unsetting the
# variables in the shell does nothing while the gate is armed there. A
# `--settings` JSON on the command line outranks every settings file, so it
# wins without touching settings.json. OAuth login is used as normal.
unset ANTHROPIC_BASE_URL ANTHROPIC_CUSTOM_HEADERS
exec claude --settings '{"env":{"ANTHROPIC_BASE_URL":"https://api.anthropic.com","ANTHROPIC_CUSTOM_HEADERS":""}}' "$@"
