Skip to content

Commit 93bb05e

Browse files
committed
Add browser OAuth login and CLI updater
1 parent a7506ca commit 93bb05e

9 files changed

Lines changed: 1367 additions & 17 deletions

File tree

README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,32 @@ Download the latest binary for your platform from [GitHub Releases](https://gith
5151
| Linux | ARM64 | `modelslab_linux_arm64.tar.gz` |
5252
| Windows | x86_64 | `modelslab_windows_amd64.zip` |
5353

54+
### Update
55+
56+
```bash
57+
# Check whether a newer release is available
58+
modelslab update --check
59+
60+
# Download, verify, and install the latest GitHub release
61+
modelslab update
62+
```
63+
64+
The CLI also checks for updates periodically during normal human-readable commands and prints a short notice when a newer release is available. It stays silent for `--output json`, `--jq`, shell completions, and MCP server mode. Disable the startup check for one command with `--no-update-check`, or persistently with:
65+
66+
```bash
67+
modelslab config set updates.auto_check false
68+
```
69+
5470
## Quick Start
5571

5672
```bash
5773
# New user? Sign up first
5874
modelslab auth signup --name "Your Name" --email you@example.com --password "..." --confirm-password "..."
5975

60-
# Login to your account
76+
# Login to your account in the browser
77+
modelslab auth login --browser
78+
79+
# Or login with email/password
6180
modelslab auth login --email you@example.com --password "..."
6281

6382
# Check your profile
@@ -96,6 +115,7 @@ modelslab config Manage CLI configuration (set, get, profiles)
96115
modelslab mcp MCP server mode (serve, tools)
97116
modelslab docs Access API documentation (openapi, changelog)
98117
modelslab completion Generate shell completions (bash, zsh, fish, powershell)
118+
modelslab update Update the ModelsLab CLI
99119
```
100120

101121
## Authentication
@@ -116,7 +136,10 @@ modelslab auth signup --name "Your Name" --email you@example.com --password "...
116136
# 2. Verify email (token from verification email)
117137
modelslab auth verify-email --token <verification-token>
118138

119-
# 3. Login (auto-stores bearer token + API key in OS keychain)
139+
# 3. Login in the browser (auto-stores bearer token + API key in OS keychain)
140+
modelslab auth login --browser
141+
142+
# Or use email/password
120143
modelslab auth login --email you@example.com --password "..."
121144

122145
# 4. Check status
@@ -134,7 +157,10 @@ modelslab auth tokens create --name "ci-token"
134157
### Existing Users
135158

136159
```bash
137-
# Login gets both token and API key
160+
# Browser login opens Chrome, asks you to grant CLI access, and stores both credentials
161+
modelslab auth login --browser
162+
163+
# Email/password login also gets both token and API key
138164
modelslab auth login --email you@example.com --password "..."
139165

140166
# Or set API key manually

0 commit comments

Comments
 (0)