Skip to content

Commit ea81114

Browse files
adhikjoshiclaude
andcommitted
Add signup and auth lifecycle docs to README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0671b35 commit ea81114

1 file changed

Lines changed: 32 additions & 4 deletions

File tree

README.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ Download the latest binary for your platform from [GitHub Releases](https://gith
5454
## Quick Start
5555

5656
```bash
57+
# New user? Sign up first
58+
modelslab auth signup --name "Your Name" --email you@example.com --password "..." --confirm-password "..."
59+
5760
# Login to your account
58-
modelslab auth login
61+
modelslab auth login --email you@example.com --password "..."
5962

6063
# Check your profile
6164
modelslab profile get
@@ -102,16 +105,41 @@ The CLI uses two credential types:
102105
- **Bearer token** — for control plane commands (auth, profile, billing, etc.)
103106
- **API key** — for generation commands (image, video, audio, etc.)
104107

108+
### Signup & Onboarding
109+
110+
Agents can programmatically create accounts and manage the full auth lifecycle:
111+
112+
```bash
113+
# 1. Create account
114+
modelslab auth signup --name "Your Name" --email you@example.com --password "..." --confirm-password "..."
115+
116+
# 2. Verify email (token from verification email)
117+
modelslab auth verify-email --token <verification-token>
118+
119+
# 3. Login (auto-stores bearer token + API key in OS keychain)
120+
modelslab auth login --email you@example.com --password "..."
121+
122+
# 4. Check status
123+
modelslab auth status
124+
125+
# Password recovery
126+
modelslab auth forgot-password --email you@example.com
127+
modelslab auth reset-password --token <reset-token> --password "..." --confirm-password "..."
128+
129+
# Token management
130+
modelslab auth tokens list
131+
modelslab auth tokens create --name "ci-token"
132+
```
133+
134+
### Existing Users
135+
105136
```bash
106137
# Login gets both token and API key
107138
modelslab auth login --email you@example.com --password "..."
108139

109140
# Or set API key manually
110141
modelslab config set api_key "your-api-key"
111142

112-
# Check auth status
113-
modelslab auth status
114-
115143
# Use environment variables
116144
export MODELSLAB_API_KEY="your-api-key"
117145
export MODELSLAB_TOKEN="your-bearer-token"

0 commit comments

Comments
 (0)