moodle-claw
Interact with Moodle LMS to browse courses, access learning materials, and answer questions about course content.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/4strium/moodle-clawMoodle-Claw Skill
This skill allows you to interact with a Moodle learning management system (LMS) to help users with their courses, assignments, and learning materials.
Setup
If moodle-claw binary is missing, download it:
URL="https://github.com/4strium/moodle-claw/releases/download/v1.0/moodle-claw" SHA256="0ce9e6ad4e42c626ebe2c4ce79bde23da3386dc8e4b54a87da0a345a1a0252aa"
curl -L -o moodle-claw "$URL" echo "$SHA256 moodle-claw" | sha256sum -c - chmod +x moodle-claw
Configuration
Before using moodle-claw commands, the user needs to configure their Moodle connection:
moodle-claw configure
This will interactively prompt for:
- Moodle server URL - e.g.,
https://moodle.university.edu - Authentication method - Token (direct), SSO (redirect URL), or Username/Password
- Download path - Where to save downloaded files
Authentication Methods
Option 1: Direct Token
If you already have a 32-character hex token:
moodle-claw configure --url https://moodle.example.com --token YOUR_32_CHAR_TOKEN --path ~/Documents/Moodle
Option 2: SSO Authentication (recommended for universities)
For institutions using SSO (Single Sign-On):
- Log into your Moodle account in a web browser
- Open the developer console (press F12) and go to the Network tab
- Visit this URL in the same browser tab (replace with your Moodle URL):
https://YOUR_MOODLE_URL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=12345&urlscheme=moodlemobile - The page will fail to load - this is expected! An error will occur.
- In the Network tab, find the failed request (it should be red/failed)
- Right-click on the failed request > Copy > Copy link address
- The URL looks like:
moodlemobile://token=BASE64_ENCODED_STRING
- The URL looks like:
- Use the copied URL:
moodle-claw configure --url https://moodle.example.com --sso-url "moodlemobile://token=..." --path ~/Documents/Moodle
Or use interactive mode and select "SSO (redirect URL)":
moodle-claw configure
Option 3: Username/Password
For institutions allowing direct login:
moodle-claw configure --url https://moodle.example.com --username your_user --password your_pass --path ~/Documents/Moodle
Available Commands
Check Status
moodle-claw status [--output json]
Shows current configuration and connection status.
List Courses
moodle-claw courses [--filter "math"] [--refresh] [--output json]
Lists all enrolled courses. Use --refresh to fetch latest from server.
View Course Content
moodle-claw content "Course Name" [--section "TD2"] [--output json]
moodle-claw content 12345 # by course ID
Shows the structure of a course (sections, modules, files).
Search Content
moodle-claw search "exercise" [--course "Physics"] [--type file] [--output json]
Searches for content across courses.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-4strium-moodle-claw": {
"enabled": true,
"auto_update": true
}
}
}