# forceLoginMethod

> The key that picks which kind of account people log in with.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** forceLoginMethod setting

## Think of it like

It is like a club that lets you in with just one kind of card.

## Definition

forceLoginMethod is a settings key. It picks the kind of account people log in with. Set to claudeai, it wants a claude.ai account. Set to console, it wants a Claude Console account. Set to gateway, it sends people to a cloud gateway. IT sets it in managed settings, often with a key that keeps logins in one team.

## Example

Emma's work pays for claude.ai seats. IT sets this key to claudeai, so no one logs in with their own Console key.

## Example code

```json
{
  "forceLoginMethod": "claudeai"
}
```

Only claude.ai accounts may log in.

## Why it matters

The account decides who pays and which rules apply to the work.

## Common mistake

Thinking it keeps logins inside your work. It only picks the kind of account. A second key picks the team.

## Three principles

- **Kind of account.** claudeai, console.
- **Or a gateway.** gateway.
- **Pair with org ID.** For one company.

## Related terms

- [forceLoginOrgUUID](https://learn.benibix.com/term/ai/force-login-org-uuid-setting)
- [/login Command](https://learn.benibix.com/term/ai/login-command)
- [claude auth login Command](https://learn.benibix.com/term/ai/claude-auth-login-command)

---

Source: https://learn.benibix.com/term/ai/force-login-method-setting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
