@zeulewan/glueclaw-provider
v1.5.0
Published
GlueClaw - Claude CLI subprocess provider for Max subscription
Readme
GlueClaw
Glue Claude back into OpenClaw.
Uses the official Claude CLI and scrubs out Anthropic's detection triggers from the system prompt due to Anthropic not allowing its use. Tested with Telegram. As far as I can tell all functions work such as heartbeats.
Install
Requires OpenClaw 2026.4.10+, Claude Code logged in with Max, and Node.js 22+. Non-destructive, won't touch your existing config or sessions.
npm (recommended)
npm install @zeulewan/glueclaw-provider && bash node_modules/@zeulewan/glueclaw-provider/install.shgit
git clone https://github.com/zeulewan/glueclaw.git && cd glueclaw && bash install.shSee installation docs for uninstall and details.
How it works
Uses the official Claude CLI:
claude --dangerously-skip-permissions -p \
--output-format stream-json \
--verbose --include-partial-messages \
--system-prompt <scrubbed prompt> \
--model <model> \
--resume <session-id> \
"<user message>"The only way this breaks is if Anthropic changes how --system-prompt or --output-format stream-json work, which would affect all Claude Code integrations.
Models
| Model | Claude Model | Context |
| -------------------------- | ------------ | ------- |
| glueclaw/glueclaw-opus | Opus 4.6 | 1M |
| glueclaw/glueclaw-sonnet | Sonnet 4.6 | 1M |
| glueclaw/glueclaw-haiku | Haiku 4.5 | 200k |
Switch in TUI: /model glueclaw/glueclaw-opus
Configuration
| Env var | Default | Description |
| ----------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GLUECLAW_REQUEST_TIMEOUT_MS | 120000 | Maximum time (in milliseconds) to wait for the Claude CLI subprocess to complete a single request before it is terminated. Increase if long-running tool calls or extensive reasoning trip the default 120s limit. Invalid or non-positive values fall back to the default. |
Example (10 minute timeout):
export GLUECLAW_REQUEST_TIMEOUT_MS=600000Notes
- Tested with Telegram and OpenClaw TUI
- Switching between GlueClaw and other backends (e.g. Codex) works seamlessly via
/model - The installer does not patch OpenClaw's dist. GlueClaw starts the MCP loopback in-process when available.
Disclaimer
Uses only official, documented Claude Code CLI flags. No reverse engineering, no credential extraction, no API spoofing. Use at your own risk. Not affiliated with Anthropic. Compatible with OpenClaw's plugin allowlist system.
Docs
https://zeulewan.github.io/glueclaw/
