March 2026
Canvas CLI
Canvas LMS in your terminal. Browse courses, open assignments, check grades, and ask questions an assistant answers from your own course material, with the page it came from.

Overview
Canvas CLI is a terminal interface for Canvas. It caches your course material locally and turns each assignment into a workspace with a brief, a plan, and its sources. The assistant answers from that material and checks its work. Everything stays in your project folder.
Install
The install script puts one self-contained binary in ~/.local/bin, with nothing else to set up. If you already use Node.js, the npm package works everywhere, Windows included.
curl -fsSL https://raw.githubusercontent.com/reyabsaluja/canvas-cli/main/install.sh | bashChecks the download against the release’s SHA-256 sums before installing. Run it again to update.
npm install -g @reyabsaluja/canvas-cliNeeds Node.js 20.10 or later. Works on Windows.
bun add -g @reyabsaluja/canvas-clinpx @reyabsaluja/canvas-cliRuns the latest version without installing it.
Then start it from the folder you want to keep your coursework in:
mkdir -p ~/school && cd ~/school
canvas-cliThe first run connects you to your school’s Canvas with a personal access token and, if you want the AI features, has you pick a provider. The Quickstart goes through it step by step.
What It Does
Canvas CLI opens into a chat shell. Type a question or a slash command: /courses moves you into a course, /assignments into an assignment, and /recent lists the courses and assignments you opened before. The header always says where you are, and /help lists only what works there.
The first time you open an assignment, it becomes a workspace. Canvas CLI reads the instructions, the attached files, the syllabus, and anything the course links to, then writes a brief, a step-by-step plan, and a record of which facts came from where. After that, it opens instantly.
A few commands run outside the shell: canvas-cli login to connect, canvas-cli status to check what’s configured, and canvas-cli ingest to download a course ahead of time.
01Ingest
A course is downloaded once into plain files: assignments, pages, modules, announcements, and the text of every document.
02Prepare
An assignment becomes a workspace: a brief, a plan, and the sources behind them, in a folder you can open.
03Ask
Questions are answered by reading the course material itself, with a citation for each claim.
04Check
Dates and figures in an answer are compared with what was read, and anything unconfirmed is flagged.
Grounded Answers
Ask what you need to submit, when a lab is really due, or what you lost marks on last time, and the assistant searches your course before answering. It reads the documents themselves, not just their titles, and in a workspace every answer names the section it came from, down to Lab4.pdf — Page 57.
Once a workspace answer is written, every date and figure in it is checked against what the assistant read. Anything it couldn’t confirm is flagged and lowers its confidence. When something isn’t in the course at all, it says so and lists where it looked.

Study Tools
The rest of Canvas is a command away. /timeline draws everything due in the next week, month, or semester as a Gantt chart. /grade shows where you stand in each course and what you need on the rest to reach a letter. /quiz writes a practice quiz from the course material, and /pdf turns a conversation into a typeset study sheet.

Local First
Course material is downloaded once into a .canvas-cli folder in your project, and answers draw on those files. That keeps them fast, repeatable, and grounded in what your instructors actually posted.
Canvas CLI has no telemetry. Your Canvas token only goes to Canvas, AI keys only to their provider, and on macOS both live in the Keychain. Privacy and security lists every place data goes.
How It Works
Three layers, each usable without the next. The Canvas client talks to your school’s REST API with your personal token, retrying politely when Canvas rate-limits. Ingestion turns a course into plain files: JSON indexes, extracted text for PDFs and modern Word, PowerPoint, and Excel files, and pages it writes itself for quizzes, the grading scheme, and the course calendar.
The assistant sits on top. It works in a loop of up to 30 steps with a set of tools: search the course, read a document or one page of it, list assignments, open a thread. In a workspace, a verifier then checks the answer against the evidence and flags anything it couldn’t confirm. It runs on Claude, GPT, or Gemini through their APIs, or on the GitHub Copilot or ChatGPT plan you already pay for.
Next Steps
- Quickstart: sign in, pick your courses, and ask your first question
- Assignment workspaces: what happens when you open an assignment
- Asking questions: how answers are found, cited, and checked
- Slash commands: everything you can type in the shell
- Troubleshooting: fixes for the common problems