Running Claude Code in banks: gateway API keys vs enterprise seats, hooks can block but not rewrite
Pleasant-Whole-3220 · reddit · 2026-11-30
A developer behind BaseLLM, a self-hosted LLM gateway for banks in Turkey, shares two real setups for letting devs use Claude Code in regulated companies.
Setup 1: API keys via gateway
- Claude Code points at the gateway (ANTHROPICBASEURL pinned with managed settings)
- Per-project budgets, model allowlists, masking and logs handled at the gateway
Setup 2: team/enterprise seats, direct to Anthropic
- Gateway not in the path; checks run on laptops via Claude Code hooks
- Key limitation: a hook can stop a prompt but can't rewrite it — prompts get only block/warn, while file and command output can still be masked before the model reads it
Open questions to the community: which setup did your security team pick, is block/warn enough, and do you scan or block images/PDFs?
More from coding & agent
- Inbound Email ships an MCP server for managing email, domains and webhooks via AI assistants — modelcontextprotocol · 2026-12-01
- x711 launches a pay-per-use tool API 'gas station' for AI agents with x402 USDC micropayments — modelcontextprotocol · 2026-12-01
- Stop overnight agent runs stalling on approvals: preload your permission policy — minhnguyen · 2026-12-01
- exe.dev pitches 'a private computer for your agents': real VMs with root via SSH — davidcrawshaw · 2026-12-01
- Check crawl logs: ChatGPT-User agent may be hunting /black-friday/ pages at the wrong slug — gaganghotra_ · 2026-12-01
- 'RIP Cursor, long live Grok Build': a user's verdict on xAI's coding tool — alexmacgregor__ · 2026-12-01