当前位置: 首页 > Skill >

DeepRead BYOK

DeepRead BYOK

DeepRead BYOK

将您的 API 密钥(OpenAI、Google 或 OpenRouter)接入 DeepRead,所有文档处理均通过您的账户完成,无需 DeepRead LLM 费用。

1.3.0 2026.11.27 644
获取Skill文件查看使用说明
作 者:叶安 许可证: 更新时间:2026.11.27
本文目录展开

DeepRead BYOK — Bring Your Own AI Key

Use your own OpenAI, Google, or OpenRouter API key for all DeepRead document processing. Your key, your billing, zero DeepRead LLM costs.

Without BYOK:  You → DeepRead API → DeepRead pays OpenRouter → You pay DeepRead
With BYOK:     You → DeepRead API → YOUR key pays provider   → DeepRead cost = $0

Page quota is skipped entirely for BYOK users. Process unlimited pages on any plan.

What this skill does and what it touches: This skill helps agents guide users through BYOK setup. The agent opens the DeepRead dashboard (https://www.deepread.tech/dashboard/byok) in the user's browser so the user can paste their provider key directly into DeepRead's UI. It does not collect, store, or transmit provider keys itself. The DEEPREAD_API_KEY is read from the user's environment — this skill does not modify any system files, shell profiles, or .env files.

What Changes With BYOK

  • LLM costs: You pay your provider directly instead of DeepRead
  • Page quota: Skipped entirely — no monthly limit when using your own key
  • API calls: Same endpoints, same headers — zero code changes
  • Processing quality: Equivalent models from your provider via tier-based swapping
  • Setup: One-time — add your provider key in the dashboard, then forget about it

Supported Providers

  • OpenRouter (sk-or-...) — Easiest setup. Same models DeepRead uses, just swaps billing to your account.
  • OpenAI (sk-proj-...) — Direct to api.openai.com. Best for enterprise agreements and negotiated rates.
  • Google (AI...) — Direct to Google AI API. Best for Google Cloud credits and existing billing.

Setup Guide

Step 1: Get Your DeepRead API Key

You need a DeepRead account first. Sign up at https://www.deepread.tech/dashboard/?utm_source=clawhub (free, no credit card, 2,000 pages/month).

For automated agent setup with OAuth device flow, install the dedicated skill:

clawhub install uday390/deepread-agent-setup

That skill handles authentication securely. Once you have your DeepRead API key, set it as an environment variable in your shell or a secrets manager:

export DEEPREAD_API_KEY="sk_live_your_key_here"

Step 2: Add Your Provider Key in the Dashboard

BYOK keys are managed through the DeepRead dashboard:

open "https://www.deepread.tech/dashboard/byok?utm_source=clawhub"

In the dashboard:

  1. Click Add Provider Key
  2. Select your provider — OpenRouter, OpenAI, or Google
  3. Paste your API key
  4. The key is validated against the provider's API before saving
  5. The key is encrypted at rest and stored securely

That's it. All subsequent API calls automatically route through your key.

Step 3: Process Documents (Same API as Before)

Nothing changes in your code. Same endpoints, same X-API-Key header:

DR_API_KEY=$(grep ^DEEPREAD_API_KEY .env | cut -d= -f2)

curl -X POST https://api.deepread.tech/v1/process 
  -H "X-API-Key: $DR_API_KEY" 
  -F "file=@document.pdf"

Under the hood, LLM calls now route through YOUR provider key. Page quota is NOT counted.

Managing Your Key

All key management is done in the dashboard at https://www.deepread.tech/dashboard/byok

  • Toggle on/off: Switch between your key and DeepRead processing without deleting the key
  • Replace: Add a new key to replace the existing one (one active key at a time)
  • Delete: Permanently removes the key, reverts to DeepRead processing

How Model Swapping Works

When you provide an OpenAI or Google key, DeepRead automatically swaps all pipeline models to equivalents from your provider at the same quality tier:

Top tier — GPT-5 (OpenAI) or Gemini 2.5 Flash (Google)

High tier — GPT-5 Mini (OpenAI) or Gemini 2.5 Flash (Google)

Mid tier — GPT-5 Nano (OpenAI) or Gemini 3 Flash (Google)

Lite tier — GPT-5 Nano (OpenAI) or Gemini 2.5 Flash Lite (Google)

OpenRouter users: No swapping needed — same models, your billing account.

Python Example

import requests
import time

# Once BYOK is enabled in the dashboard, your existing code just works.
# LLM costs go to YOUR provider account. Page quota is not counted.

API_KEY = "sk_live_YOUR_KEY"
BASE = "https://api.deepread.tech"
headers = {"X-API-Key": API_KEY}

# Submit document — same API call as always
with open("invoice.pdf", "rb") as f:
    job = requests.post(
        f"{BASE}/v1/process",
        headers=headers,
        files={"file": f},
        data={"schema": '{"type":"object","properties":{"vendor":{"type":"string"},"total":{"type":"number"}}}'}
    ).json()

job_id = job["id"]
print(f"Job {job_id} — LLM costs go to your provider account")

# Poll for results
delay = 3
while True:
    time.sleep(delay)
    result = requests.get(f"{BASE}/v1/jobs/{job_id}", headers=headers).json()
    if result["status"] == "completed":
        print(f"Extracted: {result['structured_data']}")
        break
    elif result["status"] == "failed":
        print(f"Failed: {result['error']}")
        break
    delay = min(delay * 1.5, 15)

JavaScript Example

// Once BYOK is enabled in the dashboard, your existing code just works.

const API_KEY = "sk_live_YOUR_KEY";
const BASE = "https://api.deepread.tech";

const form = new FormData();
form.append("file", fs.createReadStream("invoice.pdf"));

const { id: jobId } = await fetch(`${BASE}/v1/process`, {
  method: "POST",
  headers: { "X-API-Key": API_KEY },
  body: form,
}).then(r => r.json());

console.log(`Job ${jobId} — LLM costs go to your provider account`);

let delay = 3000;
let result;
do {
  await new Promise(r => setTimeout(r, delay));
  result = await fetch(`${BASE}/v1/jobs/${jobId}`, {
    headers: { "X-API-Key": API_KEY },
  }).then(r => r.json());
  delay = Math.min(delay * 1.5, 15000);
} while (!["completed", "failed"].includes(result.status));

Security

  • Encrypted at rest — Fernet symmetric encryption (AES-128-CBC + HMAC-SHA256)
  • Validated before storing — test API call to your provider confirms the key works
  • Key hints only — dashboard shows only the last 4 characters for identification
  • Separate encryption key — encryption key stored separately from the database
  • Soft-delete — removing a key clears the ciphertext from the database
  • One key at a time — simple billing, all processing routes through one provider

Key Storage Best Practices

  • Use scoped or test keys for development — most providers (OpenAI, Google) allow restricted-scope or short-lived keys
  • Use a secrets manager for production (1Password CLI, OS keychain, AWS Secrets Manager, HashiCorp Vault) over plaintext storage
  • Rotate keys regularly and revoke unused ones at https://www.deepread.tech/dashboard
  • Never commit API keys to version control or share them in chat, screenshots, or logs
  • Verify the provider — review DeepRead's privacy policy at https://www.deepread.tech before submitting your provider keys

DeepRead validates provider keys against the provider's API before encrypting and storing them. Keys are encrypted at rest and never logged.

When to Use BYOK

Use BYOK if:

  • You have an OpenAI enterprise agreement with negotiated rates
  • You have Google Cloud credits you want to apply to document processing
  • You want zero DeepRead LLM costs and unlimited page processing
  • You need all AI calls to go through your own provider account for compliance
  • You're on the free tier and want to skip the 2,000 page/month limit

Don't use BYOK if:

  • You're happy with DeepRead's default processing — it works great out of the box
  • You don't have an existing AI provider account
  • You want DeepRead to handle all billing in one invoice

Works With All DeepRead Skills

BYOK applies to every DeepRead API call — OCR, form fill, and PII redaction:

  • deepread-ocr — Extract text and structured JSON from documents — clawhub install uday390/deepread-ocr
  • deepread-form-fill — Fill any PDF form with AI vision — clawhub install uday390/deepread-form-fill
  • deepread-pii — Redact sensitive data from documents — clawhub install uday390/deepread-pii
  • deepread-agent-setup — Authenticate via OAuth device flow — clawhub install uday390/deepread-agent-setup
  • deepread-byok — Set up Bring Your Own Key (this skill) — clawhub install uday390/deepread-byok

Support

  • Dashboard: https://www.deepread.tech/dashboard
  • BYOK Settings: https://www.deepread.tech/dashboard/byok
  • Issues: https://github.com/deepread-tech/deep-read-service/issues
  • Email: hello@deepread.tech

Ready? Add your provider key at https://www.deepread.tech/dashboard/byok

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,035
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • DeepRead BYOK — Bring Your Own AI Key
    • What Changes With BYOK
    • Supported Providers
    • Setup Guide
      • Step 1: Get Your DeepRead API Key
      • Step 2: Add Your Provider Key in the Dashboard
      • Step 3: Process Documents (Same API as Before)
    • Managing Your Key
    • How Model Swapping Works
    • Python Example
    • JavaScript Example
    • Security
    • Key Storage Best Practices
    • When to Use BYOK
    • Works With All DeepRead Skills
    • Support
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期