Install Deep Research
Pick your agent. Every command is ready to paste.
npx skills add davidondrej/skills --skill deep-researchThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads deep-research when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the deep-research skill”. In Codex, type $deep-research.
Deep Research
Use DeepAPI (POST /v1/research/deep) for all deep research.
API key
Read DEEPAPI_API_KEY from the environment, falling back to ~/.deepapi/env. Never source ~/.zshrc; it breaks the shell (exit 126).
[ -n "$DEEPAPI_API_KEY" ] || . ~/.deepapi/env
KEY=$DEEPAPI_API_KEY
BASE=${DEEPAPI_API_BASE_URL:-https://deepapi.co}
If the key is missing, stop and ask the user. Never print or log it. Get a key at deepapi.co.
1. Build the prompt
Follow the research-prompt skill. Write one self-contained paragraph:
- Lead with the main question and the decision it informs.
- Include all context and 3-6 numbered sub-questions. Keep one mission per prompt.
- State what to include or avoid. Prefer primary sources; separate fact from inference.
Field limits: query ≤ 4000 characters (the prompt), optional context ≤ 8000, optional instructions ≤ 2000. Do not send model or provider; the API rejects them.
2. Run it
One call returns a cited answer, targeting 700-1,120 words. The server allows up to ~5 minutes.
IDK=$(uuidgen) # keep this; retries must reuse the SAME Idempotency-Key
jq -n --rawfile p /tmp/dr_prompt.txt '{query:$p, maxCostUsd:"0.70"}' > /tmp/dr_body.json
curl -s --max-time 320 "$BASE/v1/research/deep" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDK" \
-d @/tmp/dr_body.json > /tmp/dr_result.json
Minimum maxCostUsd is "0.35". Default to "0.70"; ask the user before raising it.
3. Save the report
jq -r '.status' /tmp/dr_result.json # succeeded | failed
jq -r '.output.answer' /tmp/dr_result.json # the report
jq -r '.output.sources[]?.url' /tmp/dr_result.json # source URLs
Save a Markdown report with citation URLs beneath it. Only report costs if the user asks. If the answer has [n] citations but output.sources is empty, deliver it and tell the user.
For longer reports, run each numbered sub-question separately with its own Idempotency-Key, then combine the answers and sources into one Markdown file.
Failures and retries
- HTTP 402
insufficient_credits: stop for a top-up at deepapi.co/credits, then retry with the same Idempotency-Key. - HTTP 429
rate_limit_exceeded: waitRetry-Afterseconds, then retry once. status: failed/ HTTP 502: reportrequestIdanderror.message. Do not retry in a loop.- Reusing an Idempotency-Key returns HTTP 200 with
replayed: trueand no new charge. - See the
deepapiskill for envelope/auth details and other endpoints.
Tips for Deep Research
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Deep Research
What does the Deep Research skill do?
Run deep research through DeepAPI and save a report with sources. Use when asked for deep research, DeepAPI research, or Perplexity deep research.
How do I install Deep Research?
Run "npx skills add davidondrej/skills --skill deep-research" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Deep Research work in Cursor and Codex?
Yes. Deep Research uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Deep Research free?
Deep Research is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Deep Research?
Deep Research is published by davidondrej in the davidondrej/skills repository, together with 29 other skills.


