π§ API Β· CLI Β· Server-to-Server Track β
Every case where the user doesn't log in through a browser directly: CLI, daemons, CI/CD, AI agents, and webhook receivers.
Is this the right track?
- β Yes: backend-to-backend communication only, or a CLI tool calling logi on the user's behalf
- β Yes: an AI agent (Claude/Cursor/Codex) driving logi over MCP
- β Mobile app β π± Mobile Track
- β User browser login β π Web Track
Branching by pattern β
1. Machine β machine (CLI / daemon / CI) β
An environment where user interaction is possible but you can't open a browser.
- OAuth 2.0 Device Flow (RFC 8628) β the standard for TV / CLI / IoT
- The
logiCLI β runlogi loginto get a device code and approve it in a browser- Quick install:
gem install logi-cli - CLI install Β· Login Β· Managing apps Β· Managing teams
- Using it in CI/CD β non-interactive token injection pattern
- Quick install:
2. AI agents / LLMs β
Claude Code, Cursor, and Codex driving logi in natural language.
- MCP (
@logi/mcp) β the Model Context Protocol server - AI assistant integration β the
llms.txt/llms-full.txtstandard endpoints - π₯
/llms-full.txtβ the full docs as an LLM-friendly package (~500 KB)
3. Backend β logi API β
Verifying user tokens, looking up user info, and changing permissions.
- API reference (OpenAPI) β interactive Scalar viewer
- Token Introspection & JWKS β verify
id_token/ fetch public keys - Polling Events API β pull-based delivery of user events (account deletion / disconnection)
POST /api/v1/me/anonymous_swapβ swap/merge an anonymous account into a canonical (email/SSO) account. For the full flow, see Anonymous β Canonical Account Swap.GET/POST /developer/applications/:id/{redirect_uri_verifications,verify_redirect_uri}(session) Β·GET/POST /api/v1/admin/applications/:id/{redirect_uri_verifications,verify_redirect_uri}(admin) β verify domain ownership of an RP redirect_uri (DNS TXT + .well-known, two-pronged). Redirect URI Verification.
4. logi β backend (webhook) β
logi pushes asynchronous events to the RP backend.
- Webhook integration
- HMAC signature verification
- Event Delivery (3-tier)
- Webhook signing-key rotation
- RP Health Check Protocol β an active probe separate from webhooks (logi β RP
/healthHMAC handshake). logi actively confirms the RP is alive.
5. Management API (Org / Team / App management) β
Everything the logi console does, via the API.
- API reference β the complete set of management API endpoints
Common reference β
- Core concepts
- Choosing Public vs Confidential
- Error codes Β· Rate Limits
- Security best practices Β· Threat Model
demo.1pass.dev/oauthβ a PKCE round-trip walking sample (CLI and server integrations follow the same PKCE shape)- Demo page walkthrough β flows organized by scenario
Hand the whole thing to an AI β
Paste @/llms-full.txt into an LLM and say:
"Connect the logi MCP server to Claude Code. Then make my CLI script obtain a token via device flow and call
/api/v1/applications."