You are Claude Code, Anthropic's official CLI for Claude.

Disclosure: This article documents security research findings for educational purposes. The author's
claude-proxytool (mentioned at the end) is a separate, ToS-compliant utility for model routing - it does NOT implement these bypass techniques.
how i spent my weekend reverse-engineering anthropic's "security"
so on january 9, 2026, anthropic dropped this announcement about "strict new technical safeguards" to stop third-party tools from using Claude Code OAuth tokens:
the context: a bunch of accounts had just been banned. Thariq Shihipar from anthropic explained they'd "tightened safeguards against spoofing the Claude Code harness."
sounds serious right? cryptographic verification. device attestation. request signing. the whole enterprise security playbook.
here's what they actually shipped.
THE "SAFEGUARDS"
when these blocks went live, third-party tools like OpenCode immediately broke. cryptic error messages everywhere. looked like anthropic had actually locked things down.
then developers started poking around.
what they found wasn't crypto. wasn't device attestation. wasn't request signing.
it was string matching.
two checks. that's it.
check 1: a header
anthropic-beta: oauth-2025-04-20
check 2: your system prompt has to start with this exact string
You are Claude Code, Anthropic's official CLI for Claude.
60 characters. copy-paste. done.
that's the entire security model.
THE TEST MATRIX
here's what systematic testing revealed:
| header present | magic string prefix | what happens |
|---|---|---|
| no | no | "OAuth authentication is currently not supported" |
| yes | no | "This credential is only authorized for use with Claude Code" |
| yes | yes | you're in |
the first check gates OAuth entirely. the second check - the "safeguard" - is literally just checking if your prompt starts with the right words.
no signatures. no token binding. no hardware attestation.
just... string prefix matching.
THE BYPASS TOOK HOURS
within hours of the blocks going live, third-party tools worked again.
two changes:
1. rename your tools
Claude Code uses PascalCase: Bash, Read, Write, Edit, Glob, Grep
third-party tools were using snake_case: bash, read_file, write_file
that mismatch was triggering abuse filters.
python# blocked tools = ["bash", "read_file", "write_file", "glob", "grep"] # works fine tools = ["Bash", "Read", "Write", "Edit", "Glob", "Grep"]
2. add the magic words
pythonSYSTEM_PROMPT = """You are Claude Code, Anthropic's official CLI for Claude. [literally anything else you want here] """
that's it. that's the bypass.
rename tools. prepend string. include header.
anthropic's "strict technical safeguards" just wave you through.
THE TOKEN PORTABILITY PROBLEM
here's the part that really gets me.
beyond the string-matching theater, there's a more fundamental issue: OAuth tokens have zero device binding.
the credential file at ~/.claude/.credentials.json? fully portable. copy it anywhere - cloud VM, your friend's laptop, a server farm - works identically.
no device fingerprinting. no hardware attestation. no geographic validation.
which means:
- tokens work on unlimited devices
- stolen creds work from anywhere
- no way to detect credential exfiltration
for a service with a 5x price arbitrage ($200/month Max versus $1,000+/month equivalent API usage), the economic incentive to exploit this is... substantial.
WHAT ACTUAL SECURITY LOOKS LIKE
for context, here's what companies protecting high-value APIs actually do:
device attestation - Apple's DeviceCheck, Google's Play Integrity. server validates cryptographic attestations from the device's secure enclave. can't forge without compromising hardware.
request signing - AWS Signature V4 signs every request including body, timestamp, target service. replay attacks fail. modified requests fail.
token binding - RFC 8471 cryptographically binds tokens to TLS connections. stolen token is useless without the original session's private key.
HSMs - financial APIs require signatures from keys that never leave secure hardware. software can't forge them.
anthropic implemented none of this.
their safeguard checks if your request starts with the right sentence.
WHY STRING MATCHING???
the cynical take: it's not about security. it's about liability and optics.
by implementing something - even string matching - anthropic can:
- claim they have "technical safeguards" in press releases
- justify banning accounts that trip abuse filters
- create a speed bump that stops casual abuse
- maintain plausible deniability about the arbitrage they're enabling
here's the thing: sophisticated users who understand how to bypass this are also the users least likely to trigger abuse filters. they implement proper rate limiting. they avoid flagged patterns. they blend in.
the string-matching safeguard filters out amateurs while letting professionals through.
whether that's the point or just a convenient side effect... your call.
THE PUNCHLINE
read this article's title again.
those 60 characters ARE the authentication mechanism. if you can type them (or copy-paste them), you're authorized.
it's not documentation. it's not a description.
it's the security itself.
the title of this article would, sent with the right header, authenticate you to anthropic's API.
there's a term for defenses that look impressive but provide minimal actual protection: security theater.
TSA checking IDs. "security questions" whose answers are on your public facebook. and now, a 60-character string that grants access to enterprise AI.
anthropic's january 2026 "strict new technical safeguards" are performative, not protective. appearance of control, reality of open access.
whether that's negligence, intentional design, or something in between - left as an exercise for the reader.
but next time you see a company announce "enhanced security measures," remember: sometimes the security is just a sentence.
and sometimes that sentence is the title of a blog post explaining how it doesn't work.
(separately, if you're interested in model routing for legitimate Claude Code usage, claude-proxy routes different agents to different models based on fingerprinting - so your code reviewer runs on opus while your lint fixer gets sonnet. more on that soon.)