Your OpenClaw agent can't reason over raw PDFs. BlazeDocs converts them into clean, structured Markdown before they hit memory — so your agent actually understands what it's reading. Connect in one click, no manual API key setup.
Traditional setup: sign up → find dashboard → generate API key → paste into config. BlazeDocs Connect: agent initiates, human approves, done.
Your OpenClaw agent requests a BlazeDocs Connect session. It sends the provider name and a success URL back to itself.
A hosted approval page opens. You sign in (or create an account), review what the agent is asking for, and click Approve. The agent does nothing until you say yes.
Behind the scenes, BlazeDocs mints a standard API key on your behalf and returns it to the agent. From then on, your agent converts PDFs to Markdown on demand.
// In your OpenClaw skill or agent script:
const BlazeDocs = require("@blazedocs/js");
const client = new BlazeDocs({
apiKey: process.env.BLAZEDOCS_API_KEY
});
// Convert a PDF before feeding to memory
const result = await client.convert({
file: Buffer.from(pdfBuffer),
fileName: "contract.pdf",
outputFormat: "markdown"
});
// result.data.markdown is now clean,
// structured, ready for memory ingestion
await saveToMemory({
source: "contract.pdf",
content: result.data.markdown
});// No API key? Start a Connect session:
const session = await BlazeDocs.connect
.createSession({
provider: "openclaw",
successUrl: "http://localhost:3000"
});
// session.approvalUrl opens in browser
// Human approves → exchange for API key:
const { apiKey } = await BlazeDocs.connect
.exchange(session.sessionId);
// Now use it:
const client = new BlazeDocs({ apiKey });
const result = await client.convert({
file: pdfBuffer,
fileName: "report.pdf"
});Clean Markdown, page counts, token estimates — everything your agent needs.
POST /api/v1/convert
{
"success": true,
"data": {
"markdown": "# Contract Agreement\n\n## Parties\n...",
"page_count": 12,
"token_count": 8420,
"processing_time_ms": 2800,
"file_name": "contract.pdf"
}
}Connect BlazeDocs in one click. Your OpenClaw agent will thank you.