Query courses, announcements, assignments, grades, files, and calendars across Canvas, Blackboard, and Moodle from a single terminal interface — or expose them safely to AI agents via read-only Model Context Protocol (MCP) tools.
Installation, school discovery, profile setup, and updates all happen directly in the terminal. A local sign-in window opens only when your university SSO or MFA requires interactive authentication.
Highlights
- CLI-first & harness-agnostic (zero plugin required): Any shell-capable third-party agent harness (OpenCode, Cline, Roo Code, Windsurf, Goose, Aider, Claude Code, Codex, Cursor, or custom loops) can self-discover and drive
lms natively via lms capabilities --compact, lms guide --mode cli, cross-platform verbs (lms courses, lms announcements, lms grades, lms calendar, lms todo, lms files), single-process lms batch, and --compact JSON — with optional stdio lms mcp and Codex / Claude Code plugins when desired.
- Multi-school & multi-platform: Search official Canvas school directories, paste any school/course URL (
lms setup --url / lms detect), extend the data-driven school catalog (src/data/schools.json or $LMS_HOME/schools.json), or connect Moodle subpath deployments like /moodle.
- Bilingual sign-in GUI (EN / 中文): The isolated local sign-in window auto-detects OS locale and includes a live
EN / 中文 toggle while keeping all CLI/code strictly English.
- Read-only by default, opt-in tiered writes: Every profile starts strictly
readonly. Opt in locally per profile (lms profiles writes <id> --mode draft|standard --yes) to unlock audited file uploads, drafts, assignment submissions, and discussion replies with --dry-run SHA-256 preflight and mandatory --confirm / confirm: true. Quizzes, exams, and raw HTTP remain permanently disabled. See docs/EVOLUTION.md.
- Local-first security: Sessions and local todos are encrypted on disk with keys managed by your OS keychain (
@napi-rs/keyring); SHA-256 verified standalone releases with resumable updates.
- Deadline tracking & ICS export: Track schedule/deadline changes spotted in announcements and export local todos to
.ics calendars.
Architecture
Terminal / Codex / Claude Code / MCP Client
│
▼
cli.ts / mcp.ts ◄── config · auth · local todos
│
▼
backend.ts + policy.ts (read-only allowlist · schema validation · cache)
│
▼
worker.ts (isolated per profile × platform) ──► vault.ts (OS keychain)
│
▼
platforms/{canvas,blackboard,moodle}/runtime.ts ──► University HTTPS API
Every LMS platform is registered once in src/platforms/registry.ts — CLI flags, MCP schemas, login policies, and overview planners are all derived from it. See docs/ARCHITECTURE.md.
Quick Start
1. Install
macOS / Linux:
curl -fsSL --proto '=https' https://raw.githubusercontent.com/zs-andy/lms-cli/main/install.sh | sh
Windows (PowerShell):
& ([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/zs-andy/lms-cli/main/install.ps1).Content))
The installer downloads the matching self-contained archive from GitHub Releases, verifies SHA256SUMS.txt, and installs into your user directory with bundled Node.js — no admin rights, Node, npm, or Git required. Verified Homebrew, Scoop, and Winget manifests are also generated from SHA256SUMS.txt for each release (see packaging/README.md). For unsupported targets, see building from source.
2. Connect Any University (0 → 1)