Skip to content
BENIBIX Learn

forceLoginMethod

AI⌨️ Claude CodeConfiguration

Also known as forceLoginMethod setting

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

Think of it like

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

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.

Why it matters

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

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 code

json
{
  "forceLoginMethod": "claudeai"
}
Only claude.ai accounts may log in.

Common mistake

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

Key takeaways

  1. 1
    Kind of account. claudeai, console.
  2. 2
    Or a gateway. gateway.
  3. 3
    Pair with org ID. For one company.