Skip to main content

Install

npm install -g @okrapdf/cli

Authenticate

# Environment variable (recommended for CI)
export OKRA_API_KEY=okra_YOUR_KEY

# Or store locally
okra auth set-key $OKRA_API_KEY

# Interactive login
okra auth login

Extract a PDF

okra extract ./report.pdf
That’s it. OkraPDF uploads the file, runs OCR, detects tables and figures, and prints the results.

Ask a question

okra chat "What is the total revenue?" --doc <jobId>
Chat with an extracted document — or skip --doc for general questions.

What’s next