Xpersona
G

GLM-OCR-SDK

CLAWHUB · Unverified

Trigger when: (1) User wants to extract text, tables, formulas, or structured data from images/PDFs/scanned documents, (2) User mentions "OCR", "文字识别", "文档解析... Skill: GLM-OCR-SDK Owner: jaredforreal Summary: Trigger when: (1) User wants to extract text, tables, formulas, or structured data from images/PDFs/scanned documents, (2) User mentions "OCR", "文字识别", "文档解析... Tags: latest:1.0.4 Version history: v1.0.4 | 2026-04-15T12:27:24.024Z | user glmocr-sdk 1.0.4 - Updated environment requirements: the python binary is no longer explicitly required in the metadata. - No function

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175c2hb1p5qwxh8z279000h0s83j2tt:glmocr-sdk
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jaredforreal-glmocr-sdk/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

59,178 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: glmocr-sdk
description: |
  Trigger when: (1) User wants to extract text, tables, formulas, or structured data from images/PDFs/scanned documents, (2) User mentions "OCR", "文字识别", "文档解析", (3) User has a document (screenshot, scanned page, invoice, paper, whiteboard photo) and needs its content in structured form, (4) User asks to parse, digitize, or extract content from a visual document.

  Invokes the GLM-OCR SDK (pip install glmocr) to parse documents via Zhipu's cloud API. No GPU required. Returns structured JSON (regions with labels + bounding boxes) and Markdown. Agent can operate entirely via CLI — no YAML files needed.

  NOT for: real-time camera feeds, audio transcription, or non-document images (photos, illustrations).
metadata:
  openclaw:
    requires:
      env:
        - ZHIPU_API_KEY
    primaryEnv: ZHIPU_API_KEY
    emoji: "📄"
    homepage: https://github.com/zai-org/GLM-OCR/tree/main/skills/sdk
---

# OpenClaw Skill: glmocr

Parses documents (images, PDFs, scans) via the GLM-OCR SDK.

> **📌 On-demand**: This skill requires only `ZHIPU_API_KEY` in the environment. No YAML config files or GPU needed.

## ⚡ Quick Start

```bash
# Install
pip install glmocr

# Set API key (once)
export ZHIPU_API_KEY=sk-xxx
# or add to .env file in working directory:
echo "ZHIPU_API_KEY=sk-xxx" >> .env
```

```python
# One-liner
import glmocr
result = glmocr.parse("document.pdf")
print(result.markdown_result)
print(result.to_dict())
```

```bash
# CLI — pass API key directly (no env setup needed)
glmocr parse image.png --api-key sk-xxx

# Or load from a specific .env file
glmocr parse image.png --env-file /path/to/.env

# Or rely on env var / auto-discovered .env (set once, then omit)
glmocr parse image.png
glmocr parse ./scans/ --output ./output/ --stdout
```

---

## Configuration Priority

```
Constructor kwargs  >  os.environ  >  .env file  >  config.yaml  >  built-in defaults
```

Agents override everything via constructor kwargs or env vars — no YAML editing needed.

### Key Environment Variables

| Variable               | Description                            | Example     |
| ---------------------- | -------------------------------------- | ----------- |
| `ZHIPU_API_KEY`        | API key (required for MaaS)            | `sk-abc123` |
| `GLMOCR_MODEL`         | Model name                             | `glm-ocr`   |
| `GLMOCR_TIMEOUT`       | Request timeout (seconds)              | `600`       |
| `GLMOCR_ENABLE_LAYOUT` | Layout detection on/off                | `true`      |
| `GLMOCR_LOG_LEVEL`     | `DEBUG` / `INFO` / `WARNING` / `ERROR` | `INFO`      |

---

## Python API

### Convenience function (single call)

```python
import glmocr

# Single file → PipelineResult
result = glmocr.parse("invoice.png")

# Multiple files → list[PipelineResult]
results = glmocr.parse(["page1.png", "page2.png", "report.pdf"])
```

### Class-based (multiple calls / resource reuse)

```python
from glmocr import GlmOcr

parser = GlmOcr(api_key="s

_meta.json

{
  "ownerId": "kn77dpbnmmgb7k1emww674jjy1827an4",
  "slug": "glmocr-sdk",
  "version": "1.0.4",
  "publishedAt": 1776256044024
}

skill-card.md

## Description:

GLM-OCR-SDK helps agents parse document images, PDFs, scans, and screenshots with the GLM-OCR SDK, returning Markdown plus structured JSON regions with labels and bounding boxes.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jaredforreal](https://clawhub.ai/user/jaredforreal)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent builders use this skill when an agent needs to extract text, tables, formulas, or structured content from visual documents. It is intended for document OCR workflows, not real-time camera feeds, audio transcription, or non-document images.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: API keys may be exposed if passed on the command line or stored in a repository .env file.

Mitigation: Use protected environment variables or a secret manager, and avoid committing .env files.

Risk: Cloud OCR mode sends submitted documents to Zhipu, which may be inappropriate for confidential material.

Mitigation: Use self-hosted mode or avoid processing sensitive documents unless cloud processing is approved.

Risk: OCR output can be incomplete or malformed, including model-returned JSON that remains a raw string.

Mitigation: Check results for an error key and validate extracted JSON or Markdown before downstream use.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jaredforreal/skills/glmocr-sdk)
- [GLM-OCR SDK homepage](https://github.com/zai-org/GLM-OCR/tree/main/skills/sdk)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown, JSON, and CLI/Python usage guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires ZHIPU_API_KEY for cloud MaaS mode; saved results may include JSON, Markdown, cropped images, and optional layout visualizations.]

## Skill Version(s):

1.0.4 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to GLM-OCR-SDK and adjacent AI workflows.