memoryai-team-pair
v0.2.0
Published
Pair an IDE/CLI/agent with memoryai-team via OAuth 2.1 device flow.
Maintainers
Readme
memoryai-team-pair
Pair an IDE/CLI agent (Kiro, Cursor, Claude Code, OpenClaw, etc.) with a memoryai-team tenant via OAuth 2.1 device authorization (RFC 8628).
Usage
npx -y memoryai-team-pairAuto-detects host (Kiro/Cursor/OpenClaw/Claude). Opens browser to approve. Writes MCP config. Done.
Options
npx -y memoryai-team-pair \
--endpoint https://api.memoryai-team.vn \
--host kiro \
--name "My Mac"What it does
- POSTs
/v1/oauth/deviceto your tenant — gets a 6-charuser_code. - Opens browser to
<tenant-url>/pair?code=<user_code>. - You click Approve while signed in.
- CLI receives
{access_token, refresh_token, bot_id}. - Writes config to your IDE's MCP file with
TM_REFRESH_TOKEN. - Restart your IDE —
memoryai-team-mcpauto-spawns and refreshes tokens.
Security
- Refresh tokens rotate on every use.
- Reuse of an already-rotated token revokes the entire chain.
- Access tokens expire after 15 minutes.
- Revoke a device any time from the dashboard.
Links
- Dashboard: https://app.memoryai-team.vn
- MCP server: memoryai-team-mcp
- Source: https://github.com/memoryai-team/cli
License
MIT
