Skip to content

feat(cli): add email verification code login to mem0 init#4623

Merged
whysosaket merged 5 commits intomainfrom
feat/cli-email-login
Mar 31, 2026
Merged

feat(cli): add email verification code login to mem0 init#4623
whysosaket merged 5 commits intomainfrom
feat/cli-email-login

Conversation

@kk2211
Copy link
Copy Markdown
Contributor

@kk2211 kk2211 commented Mar 30, 2026

Add --email and --code flags to mem0 init for browserless authentication. Users can now get an API key directly from the CLI without visiting the dashboard.

  • mem0 init --email [email protected] (sends code, prompts for it)
  • mem0 init --email [email protected] --code 482901 (fully non-interactive)
  • Update CLI_SPECIFICATION.md, README.md, and cli-spec.json

Linked Issue

Closes #

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactor (no functional changes)
  • Documentation update

Breaking Changes

N/A

Test Coverage

  • I added/updated unit tests
  • I added/updated integration tests
  • I tested manually (describe below)
  • No tests needed (explain why)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix/feature works
  • New and existing tests pass locally
  • I have updated documentation if needed

kk2211 and others added 5 commits March 30, 2026 12:03
Add --email and --code flags to mem0 init for browserless authentication.
Users can now get an API key directly from the CLI without visiting the
dashboard.

- mem0 init --email [email protected] (sends code, prompts for it)
- mem0 init --email [email protected] --code 482901 (fully non-interactive)
- Update CLI_SPECIFICATION.md, README.md, and cli-spec.json
- Add --code requires --email validation
- Handle non-JSON error responses gracefully
- Move os import to module top level
@whysosaket whysosaket merged commit af19495 into main Mar 31, 2026
2 checks passed
@whysosaket whysosaket deleted the feat/cli-email-login branch March 31, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants