Agent Workbench Integration
Connect Textbookly Teacher and Student workspaces to OpenClaw, Claude Code, Codex, and WorkBuddy across IGCSE, A Level, IB, AP, DSE, and US-CCSS curricula.
Use the official @keyouji/teacher-mcp to manage classes and groups, review desensitized learning analytics, plan syllabus-aligned lessons, attach resources, and run async AI teaching tools.
Step 1: Install Official Skill (Dual-Channel)
One-Line Install via ClawHub (OpenClaw)
Best for OpenClaw and ClawHub-compatible agent workbenches—installs the latest bilingual Skill automatically.
clawhub install keyouji-teacherDirect .zip Download for Any Workbench
Direct download with a clean top-level skill directory ready to import into Claude Code, Codex, WorkBuddy, and similar hosts.
Step 2: Create a Personal API Key & Configure Your Host
Create a Least-Privilege Key
Open Textbookly Settings → API Key, select only needed scopes (read / write / generate), and copy your one-time key (kyj_hgs_… / kyj_tch_…)
Add to Local Host Config
Paste the snippet below into OpenClaw, Claude Code, or local HTTP loopback mode. Your market and curriculum access are resolved automatically.
Run Self-Check
Reload MCP tools in your host and ask a question—the Skill verifies your identity, scopes, and available curricula first.
# 1. Install Skill
clawhub install keyouji-teacher
# 2. Register MCP Server
openclaw mcp set keyouji-teacher '{"command":"npx","args":["-y","@keyouji/teacher-mcp@1"],"env":{"KEYOUJI_API_URL":"https://www.keyouji.com","KEYOUJI_API_KEY":"<YOUR_TEACHER_API_KEY>","KEYOUJI_LOCALE":"en-US"}}'Both International and China editions use the unified origin https://www.keyouji.com (do not append subpaths). Curriculum scope is enforced server-side by your account or school contract.
Security rule: Never paste KEYOUJI_API_KEY into any AI chat prompt. Store it only in your local host config or environment variables, and revoke anytime in Settings.
Textbookly Teacher Capabilities
Syllabus-Aligned Prep & Resources
Browse server-authorized curricula and chapters, plan periods, attach repository resources, and push to classes after explicit confirmation.
Class Management & Classroom Engagement
Manage classes, groups, points, random roll call, companions, and rewards. Destructive actions enforce confirm: true.
Desensitized Learning Analytics
Inspect class subjects, assessment summaries, and individual metric reports to pinpoint class-wide weak spots without exposing raw PII.
Async AI Toolbox Generation
Sparse polling with graceful (tool, id) handoff on timeout—never duplicates generation charges—and outputs raw URLs on their own line for IM apps.
Education Privacy & Safety Commitments
Role-Isolated Keys & Minimal Scopes
Teacher (kyj_hgs_/kyj_tch_) and Student (kyj_stu_) keys are strictly isolated, scoped by read / write / generate / destructive, and revocable in one click.
Desensitized Views & Private Asset Protection
No student phone numbers, emails, guardian info, private storage URLs, or cross-account records are exposed to external hosts.
Explicit Confirmation Guards
Destructive actions, batch writes, quota-consuming generations, and local file uploads require explicit user confirmation.
Loopback Isolation & Automated Leak Gate
MCP packages enforce origin/no-proxy guards and localhost-only HTTP; all public Skills and .zip artifacts pass automated leak scanning.