Skip to content

Commit 109287d

Browse files
authored
Merge pull request #167 from MiniMax-AI/chore/bump-v1.0.16
bump version to v1.0.16
2 parents 57c09c7 + 51ea715 commit 109287d

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,17 @@ mmx auth logout
144144
```
145145

146146
`mmx auth status` is the canonical way to verify active authentication.
147-
Both OAuth and API-key credentials live in `~/.mmx/config.json` (the two are
148-
mutually exclusive — logging in with one method clears the other). API keys
149-
can also be passed per command via `--api-key`. With an API key, the region
150-
is auto-detected by probing both Global and CN.
147+
148+
**OAuth** uses the [Device Authorization Grant (RFC 8628)](https://tools.ietf.org/html/rfc8628) with PKCE —
149+
the CLI opens your browser, you enter a code, and `access_token` + `refresh_token`
150+
are saved to `~/.mmx/config.json`. Tokens refresh automatically (5-min buffer);
151+
manual refresh via `mmx auth refresh`.
152+
153+
**API key** auth auto-detects the correct region by probing both Global and CN.
154+
Useful for CI/CD (`mmx auth login --api-key sk-xxxxx`), or pass per-command via `--api-key`.
155+
156+
OAuth and API key are mutually exclusive — logging in with one clears the other.
157+
Credential priority: `--api-key` flag > OAuth (config) > `api_key` (config).
151158

152159
### `mmx config` · `mmx quota`
153160

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mmx-cli",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "CLI for the MiniMax AI Platform",
55
"type": "module",
66
"engines": {

0 commit comments

Comments
 (0)