openclaw-usos-pw-plugin
v0.1.0
Published
OpenClaw plugin for authenticated USOSWeb PW access
Readme
OpenClaw USOS PW Plugin
OpenClaw plugin for authenticated USOSWeb PW automation.
Features
- CAS login to USOSWeb PW (
usos_login) - Generic authenticated HTTP requests (
usos_request) - Requests by
_actiononly (usos_action_request) - Endpoint discovery from page HTML (
usos_discover_endpoints) - Cached page state inspection (
usos_get_page_state) - Link navigation from cached state (
usos_click_link) - Form submission with hidden fields/tokens (
usos_submit_form) - In-memory session cleanup (
usos_logout)
Requirements
- OpenClaw with plugin support
- Node.js 22+
Install From Source
cd openclaw-usos-pw-plugin
npm install
npm run build
openclaw plugins install .
openclaw gateway restartInstall Latest (npm)
If the package is published to npm, users can install the latest version without specifying a version number:
openclaw plugins install openclaw-usos-pw-plugin
openclaw gateway restartUpdate later to the newest published release:
openclaw plugins update openclaw-usos-pw-plugin
openclaw gateway restartInstall From CI Package
The GitHub Actions workflow builds a ready-to-install .tgz package.
openclaw plugins install ./openclaw-usos-pw-plugin-<version>.tgz
openclaw gateway restartCI Packaging
Workflow file: .github/workflows/build-package.yml
What it does:
- installs dependencies
- builds
dist/index.js - creates an npm package archive (
.tgz) - uploads the archive as a workflow artifact
- on
v*tags, publishes the package to npm (ifNPM_TOKENsecret is set) - on
v*tags, attaches the archive to the GitHub Release
Example Usage
- Login with
usos_loginand storesession_id. - Fetch a page with
usos_requestorusos_action_request. - Inspect available links/forms via
usos_get_page_state. - Navigate with
usos_click_linkor submit forms withusos_submit_form. - Repeat state inspection and navigation as needed.
Security Notes
- Sessions are stored only in plugin process memory.
- Do not log credentials.
- Host is restricted to
usosweb.usos.pw.edu.pl.
