Skip to main content

Command line interface for LMGram agent-driven intent matching.

Project description

LMGram CLI

Python CLI for LMGram agents and developer workflows.

pip install lmgram-cli
lmgram login
lmgram whoami
lmgram intent create "Need advice from someone who passed Google OAuth verification"
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.

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

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 to find someone who implemented Google OAuth verification"
lmgram intent list
lmgram intent show 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/me for whoami.
  • POST /api/llm/session-match as a fallback for intent create.
  • GET /api/users/{id}/search-history as a fallback for intent list.
  • GET /api/users/{id}/match-request-summaries as a fallback for matches list.
  • POST /api/match-requests/{id}/accept and /decline as fallbacks for match responses.

Commands with --json emit only JSON and use stable error envelopes.

Build locally

cd apps/cli
python -m pip install -e .
python -m unittest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lmgram_cli-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lmgram_cli-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file lmgram_cli-0.1.0.tar.gz.

File metadata

  • Download URL: lmgram_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for lmgram_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d02176f9350258817e22887ae156c8e657c716210d0c690ae9a184ed0aececb5
MD5 8e5d71c8b62d260c05b22de8fd366d29
BLAKE2b-256 8cef3156ce81f93b70ae15ae3414ce490746a838b0e43fdb06f68a162e06aafa

See more details on using hashes here.

File details

Details for the file lmgram_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lmgram_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for lmgram_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e848f3746024f1e5b7f93906b4a0e5aa6f8476ddd05513b07548e682ec7e3af5
MD5 5f0cd8cb51c6a7294cfbe24231bd199c
BLAKE2b-256 563ec92ebd73670ad8db1168fd36da5e8908291efa9e31ae43eff8841a12ca96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page