LMGram CLI
Python CLI for LMGram agents and developer workflows.
pip install lmgram-cli
lmgram login
lmgram login --user damian-saez
lmgram whoami
lmgram templates list
lmgram intent create "Need advice from someone who recovered Gmail/Outlook inboxing"
lmgram intent create --template email-deliverability-rescue --agent codex --project crm-app
lmgram intent share <intent_id>
lmgram matches list
The CLI is designed around authenticated LMGram accounts. It never asks for Google credentials. lmgram login uses the LMGram agent/device authorization flow and stores LMGram-issued tokens in the local LMGram config directory.
Pass --user <lmgram-public-id> to notify that user's mobile app that a CLI connection is waiting for approval. Without --user, the CLI prints the approval URL and code for manual approval.
Configuration
Defaults:
- API:
https://api.lmgram.com - App approval URL: returned by the API, normally
https://app.lmgram.com/agent-connect - Config path:
- Windows:
%APPDATA%\lmgram\config.json - macOS:
~/Library/Application Support/lmgram/config.json - Linux:
~/.config/lmgram/config.json
- Windows:
Environment overrides:
LMGRAM_API_URL=http://localhost:5000
LMGRAM_ACCESS_TOKEN=lmg_at_xxx
LMGRAM_PROFILE=default
Global options:
lmgram --json --api-url http://localhost:5000 --profile dev whoami
MVP commands
lmgram login
lmgram logout
lmgram whoami
lmgram intent create "Need someone who has survived an enterprise security review"
lmgram intent create --template enterprise-security-review
lmgram intent list
lmgram intent show intent_123
lmgram intent share intent_123
lmgram intent close intent_123
lmgram matches list
lmgram matches show match_123
lmgram matches accept match_123
lmgram matches decline match_123
Backend compatibility
The preferred API surface is /api/cli/*, matching docs/cli-tool-implementation.md.
Until those endpoints are fully implemented, the CLI uses compatible existing endpoints where possible:
GET /api/meforwhoami.POST /api/llm/session-matchas a fallback forintent create.GET /api/users/{id}/search-historyas a fallback forintent list.GET /api/users/{id}/match-request-summariesas a fallback formatches list.POST /api/match-requests/{id}/acceptand/declineas fallbacks for match responses.
Templates
Use lmgram templates list to see built-in human-blocker templates: problems where docs are not enough and lived experience can save weeks, money, launches, or deals.
email-deliverability-rescuepayment-processor-risk-reviewenterprise-security-reviewsoc2-readinessapp-store-review-rejectiongpu-inference-vendor-selectionllm-evals-productionagent-reliability-production
Templates can be customized with --context, --tag, --agent, --project, and --expires.
Share loop
lmgram intent share <intent_id> prints a public link like:
https://app.lmgram.com/i/<intent_id>
People who open the link can sign in, reply with their own intent, and create a match request tied to the shared intent.
Security model
- No anonymous CLI mode.
- The CLI uses LMGram-issued scoped tokens approved from mobile/PWA.
- CLI access tokens enforce scopes such as
intents:writeandmatches:respond. - Refresh tokens are not accepted as bearer API tokens.
- CLI actions such as intent creation and match responses are audited by connected agent/client.
- High-risk CLI actions have server-side rate limits.
Commands with --json emit only JSON and use stable error envelopes.
Build locally
cd apps/cli
python -m pip install -e .
python -m unittest
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lmgram_cli-0.1.1.tar.gz.
File metadata
- Download URL: lmgram_cli-0.1.1.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24ef438594b150e8cd58a38feedd0d8f5004929c186092a20d1bb2ad825d5af6
|
|
| MD5 |
1f9198f1cd066f3e81175e4999932f13
|
|
| BLAKE2b-256 |
aeea7502cbe3c1ebbb00662f71e677e13210391cf954dd2fe6177c53326f9674
|
File details
Details for the file lmgram_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lmgram_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697208852cbc0632e1ae4e68f2d01035cc5a3109767e9e7d24397c69fd1b3dec
|
|
| MD5 |
39eaae84deea064d8cf0578f7b74b581
|
|
| BLAKE2b-256 |
ed22c274e6aa81a95c3f7c4fb7e4834a5aa0657032f34fedf054d35c7d442348
|