Claude Code 403 Error: Request Not Allowed (Forbidden) After Login

What API Error: 403 Request not allowed means, whether to wait, and what to check first.

Language: English · 日本語版

403 permission_error Fix a setting, login or environment Official documentation checked on

Wait or fix?

Fix it; the cause is access, not load. You logged in, but the request was refused. The official troubleshooting page points at three things: whether your subscription is active, whether your Console account has the right role, and whether a corporate proxy interferes. Waiting changes none of them. When the refusal comes from a gateway, signing in again does not change it either.

Messages you may see

  • API Error: 403 Request not allowed
  • Gateway refused the request · signing in again won't change this — check with your gateway administrator · API Error: 403 ...
  • 403 permission_error

The exact wording changes a little between Claude Code versions and providers.

What the message means

In the Claude API, 403 permission_error means the credential does not have permission to use the requested resource, and the documentation suggests checking your organization's access and workspace settings in the Claude Console. In Claude Code, "API Error: 403 Request not allowed" after logging in is covered on the installation and login troubleshooting page. Other 403 messages carry their own wording. When you sign in through a Claude apps gateway and the gateway or the upstream behind it refuses the request, the message begins with "Gateway refused the request" and points you to the gateway administrator. Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry show their own authentication messages for a 403.

Common causes

  • A Claude Pro, Max or Ultra subscription that is not active.
  • An Anthropic Console account without the "Claude Code" or "Developer" role.
  • A corporate proxy that interferes with API requests.
  • A Claude apps gateway, or the upstream behind it, that refuses the request.

Check in this order

  1. If you use a Pro, Max or Ultra plan, open claude.ai/settings and confirm the subscription is active.
  2. If you use the Anthropic Console, confirm your account has the "Claude Code" or "Developer" role. Admins assign the role on the Console's Members page.
  3. If you are behind a corporate proxy, check the proxy setup described in the network configuration page, such as HTTPS_PROXY.
  4. When the login itself seems broken, reset it: run /logout, close Claude Code, start it again with claude, and complete the sign-in.
  5. If the message starts with "Gateway refused the request", contact your gateway administrator instead of signing in again.

We took the fixes from the official pages below and put them in order, with the quickest and most likely ones first.

How it differs from similar errors

  • 401 means there is a problem with the credential itself; 403 means the credential does not have permission for the request.
  • 429 means a rate limit, not a permission problem.
  • "Unable to connect to API" means the request never reached the API, so neither 401 nor 403 applies.

Related errors

Official sources

Unofficial page. Not affiliated with, endorsed by, or sponsored by Anthropic, PBC. Claude and Claude Code are trademarks of Anthropic, PBC. Messages and fixes change with updates, so read the official pages as well.

Back to the error list (10 errors)