sign-in · safety · platforms
Frequently asked questions
upb-moodle FAQ: answers taken from the product documentation and the code. If the answer is not here, upb-moodle doctor and docs/TROUBLESHOOTING.md are the next step.
Sign-in and the token
Which account do I need?
An account on curs.upb.ro/2026, that is a UPB account. No separate account is created for upb-moodle: the package uses your Moodle account.
How do I sign in?
You run upb-moodle login. A dedicated browser profile opens on the Moodle Mobile login page. You sign in through UPB Login, with user, password and one-time code. The package catches the moodlemobile://token=… redirect and saves the token.
Does the package store my UPB password?
No. The password is typed only into the Keycloak window, which the package does not touch. The session stays in the dedicated browser profile, and the token goes into the system keychain.
Where is the token saved?
On Windows, in Credential Manager, under the upb-moodle service. On Linux, in Secret Service (GNOME Keyring or KWallet) when present; otherwise in ~/.upb-moodle/config.json, with restricted permissions. The token never appears in git and is not printed by commands.
How do I sign out?
upb-moodle logout deletes the token. upb-moodle logout --forget-browser also deletes the UPB session from the browser profile. The mobile token created through launch.php does not appear on the Security keys page in Moodle 5.3, so it cannot be revoked there; if you suspect it was exposed, change the password and ask the administrators to delete the token.
Safety and data
Can the agent submit something without my knowledge?
No. Writes need confirm=true in MCP or --yes in the CLI; without them, the action stops. Approval for one action does not cover the next. The UPB_MOODLE_AUTO_CONFIRM=1 variable disables the guard and is not recommended.
What happens with an assignment without drafts?
Saving would send the file immediately, as a final submission. The package checks drafts_enabled before the upload and refuses, with the DirectSubmissionBlocked error. Only allow_direct=true (--allow-direct) forces it, at your explicit request.
Does my data reach a third-party server?
No. The only connections are to the configured Moodle and, only during installation, to GitHub for the marketplace. The MCP server runs on your machine and keeps no copy of the data.
Are the downloaded materials safe?
Course materials are unverified data. The package does not execute them: an .exe from a course stays a file until you open it. Check before you do.
Platforms and installation
Which platforms does it work on?
Windows and Linux are tested: the test suite runs on both in CI, and Linux was verified on Ubuntu 24.04. macOS is not tested, apart from the server smoke test in the release workflow.
Do I need Node.js?
No, if you install with pipx. Node.js 18+ is needed only for the npm variant: the npm package is a launcher that installs the Python package through pipx.
Which Python version do I need?
Python 3.10 or newer. On Windows it was tested with 3.13, and on Linux with 3.12. requires-python in pyproject.toml says 3.10+.
Does it work with other Moodle instances?
The package is written for POLITEHNICA Bucharest, which runs Moodle 4.5 from October 2026; it works on Moodle 4.5 and on 4.1. Other instances might work, but are not tested.
What does upb-moodle doctor do?
It checks without changing anything: each platform, the project installs, the token source, .env, the running MCP processes and the package version. The last line compares the Moodle functions the package uses with the ones on the site. The exit code is 3 if it finds a problem.
Why are VPL activities not downloaded?
VPL activities (Virtual Programming Lab) have no Web Service functions. They appear in the course structure, but cannot be opened, read or submitted through the API. Use the website for them.
Usage
Can I use upb-moodle on several computers?
Yes. Install the package and run upb-moodle login on each computer, because the token lives in the system keychain, not in a synced folder. The client configuration is done separately on each.
What happens if Moodle changes?
upb-moodle doctor compares the Web Service functions the package uses with the ones on the site and reports required missing or optional missing. If a module disappears, the package skips it during download and adds a warning to _rezumat.json.
Can I use a token obtained elsewhere?
Yes. upb-moodle login --token-stdin reads a 32-character token from a pipe, and --token takes it as an argument (it does appear in the shell history). The browser method stays the normal path, because the mobile token is not visible on the Security keys page in Moodle 5.3.
Can I run several commands at once?
Yes. Each command writes JSON on stdout and keeps no local state beyond the token, so two reads can run in parallel. Downloading uses four worker threads for materials. Avoid two writes to the same account at the same time, so you do not mix up submissions.
How do I report a problem?
Open an issue on GitHub, in the public repository. Attach the output of upb-moodle doctor; it does not contain the token. For security issues, use the security advisories link in security.txt.