A command-line client for USC's Brightspace, Web Registration, Handshake, the Student Directory, Leavey Library rooms, USC mobile ordering, and the public Schedule of Classes. It signs in with your NetID and Duo, then reuses its own Duo device so later commands need no prompts. Every command prints JSON, so Claude Code, Codex, Grok, or any agent with a terminal can run it for you.
Docs: usc.sh/docs
Ask your agent:
Set up the USC CLI for me: https://usc.sh/install.md
Or by hand, on macOS and Linux:
curl -fsSL https://usc.sh/install | shWith Go 1.24 or later, on any platform:
go install github.com/nsigel/usc-cli/cmd/usc@latestTo update usc and its skill, ask your agent again. By hand, rerun the install command and regenerate the skill (see Give your agent the skill).
usc auth login --webOpen the printed url and sign in with your NetID, password, and Duo. Later commands authenticate automatically. On remote machines, use usc auth login --remote; for scripts and CI, set USC_USERNAME, USC_PASSWORD, and USC_DUO_TOTP_SECRET or USC_DUO_BYPASS. Details: Sign in.
usc skill prints a SKILL.md with the commands and the rules an agent follows, such as asking before it registers, books, or orders. Ask your agent to "add the usc skill: save the output of usc skill as a skill named usc-cli", or for Claude Code:
mkdir -p ~/.claude/skills/usc-cli
usc skill > ~/.claude/skills/usc-cli/SKILL.mdusc brightspace courses
usc brightspace announcements --since 2026-11-09T00:00:00-08:00
usc webreg courses --term 20271 --course BUAD-306
usc handshake career-fairs --date next-30
usc libcal schedule --date tomorrow --category rooms --min-capacity 4
usc directory students --last-name smith --school Viterbi
usc classes 20271 CSCI-270Each page gives the commands, filters, and flows for one area:
- Sign in
- Brightspace
- WebReg
- Handshake
- Student Directory
- Leavey Library
- Mobile ordering
- Schedule of Classes
- Output and errors
- Go library, with
examples/
usc --help and usc skill also list the commands.
The site at usc.sh is in web/: npm install && npm run dev to work on it.
Issues and pull requests are welcome.
MIT. Not affiliated with USC.