> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobster.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# mobster login

> Save your Claude or OpenAI key, or a plan's or provider's.

Save your Claude or OpenAI key for Mobster's agent, on this Mac. Mobster tests the key with one tiny request first, then saves it in Mobster's settings file, which only you can read. Mobster for Mac and every `mobster` command use it. The key is never shown: only its first characters and last four.

`mobster login <plan or provider>` saves a plan's key or sign-in (Kimi Code, Grok ...) or another provider's key. A ChatGPT, Claude or Google plan runs through your own Codex, Claude Code or Gemini CLI, which signs in itself: `mobster login codex` says how.

`mobster login status` shows which keys, plans and providers are saved.

## Usage

```text theme={"theme":"css-variables"}
mobster login [options] [status|PLAN|PROVIDER]
```

## Arguments and options

| Name | Default | Description |
| - | - | - |
| `[status\|PLAN\|PROVIDER]` | none | status: show what is saved, masked; a plan or provider: kimi, zai, grok, openrouter, xai, custom ...; codex, claude or gemini: how that CLI signs in |
| `--provider {anthropic,openai}` | see description | anthropic (Claude, the default) or openai |
| `--with-key` | off | read the key from standard input (a pipe or a file, never a terminal) |
| `--skip-check` | off | save it without testing it (no network) |
| `--json` | off | print the result as JSON |
| `--model ID` | none | a plan or provider: the model Mobster's agent uses there |
| `--base-url URL` | none | custom, ollama or lmstudio: the endpoint's base URL, such as [http://127.0.0.1:11434/v1](http://127.0.0.1:11434/v1) |

```text theme={"theme":"css-variables"}
exit codes: 0 saved (or status shown), 1 the key or the sign-in didn't work, 2 usage,
            130 ctrl+c

examples:
  mobster login
  mobster login --provider openai
  mobster login --provider anthropic --with-key < key.txt
  mobster login kimi
  mobster login status
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.