# Claude Code (/docs/proxy/integrations/claude-code)



Claude Code reads `ANTHROPIC_BASE_URL` at startup and appends the Messages path
itself, so the value is the bare Anthropic URL.

```bash
export ANTHROPIC_BASE_URL="https://proxy.tawaguard.com/<token>/anthropic"
export ANTHROPIC_API_KEY="<your Anthropic key>"
claude
```

Replace `<token>` with your [proxy token](/docs/proxy/quickstart). Keep the full
URL in an environment variable or a secrets manager, because it carries the
token. See [Proxy tokens](/docs/proxy/configure/tokens).

## What to know [#what-to-know]

* Use an Anthropic API key. Signing in to Claude Code with a Claude subscription was not checked against the proxy.
* The Anthropic provider must be on the app's [allowed providers](/docs/proxy/routing/allowed-providers). It is by default.
* Start in Monitoring. Check one request before you switch the app to Blocking.

<Callout type="warn">
  This setup was not run end to end against the hosted proxy. The variable name
  and URL shape come from the proxy's code and earlier tests of the same request
  path.
</Callout>
