Skip to content

Commit be963d1

Browse files
committed
docs: fix credential resolution order (#80)
Remove incorrect claim that $MINIMAX_API_KEY is part of the resolver chain. The env var is checked by ensureApiKey() in main.ts before command execution, and persisted to config.json — it is not directly resolved by resolveCredential().
1 parent 039e902 commit be963d1

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

docs/cli-design.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ mmx
5454
Credential resolution order:
5555
1. `--api-key` flag (highest priority)
5656
2. `~/.mmx/credentials.json` (OAuth token — only created by `mmx auth login` without `--api-key`)
57-
3. `fileApiKey` in `~/.mmx/config.json` (persisted API key)
58-
4. `$MINIMAX_API_KEY` env var
57+
3. `fileApiKey` in `~/.mmx/config.json` (persisted API key from a previous `mmx auth login --api-key`)
5958

60-
If none are found, the CLI returns `No credentials found`. The CLI can be fully authenticated
61-
using any single method — `~/.mmx/credentials.json` is **not required** if you use an API key
62-
instead.
59+
If none are found, the CLI returns `No credentials found`. The `~/.mmx/credentials.json` file
60+
is **not required** when using API key auth — it is only created during OAuth login.
6361

6462
## Configuration
6563

0 commit comments

Comments
 (0)