setup

setup is a command for coding agents from club-cog/devin-handoff. It costs 15 tokens per session (510 once invoked), scanned B, original, MIT.

A readiness check for the Devin Handoff integration, which lets a coding agent hand work to Devin. It checks required command-line tools and verifies that the required API key is configured without printing the key.

In plain words
What is it for?
Use it to check for curl and jq, confirm that DEVIN_API_KEY is set, and validate the key with Devin’s API when the required settings are present.
Why use it?
It catches missing dependencies or credentials before you try to use the integration. This avoids confusing failures caused by an unavailable command or unset API key.

Command

Part of the devin-handoff plugin — 1 skill, 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/club-cog/devin-handoff/setup
Clone the repo
git clone --depth 1 https://github.com/club-cog/devin-handoff

Or install devin-handoff, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/club-cog/devin-handoff/setup.svg)](https://agentmods.dev/commands/club-cog/devin-handoff/setup)
Your own site
<a href="https://agentmods.dev/commands/club-cog/devin-handoff/setup"><img src="https://agentmods.dev/badge/commands/club-cog/devin-handoff/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 510 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00510
Opus 5 $0.00008 $0.00255
Sonnet 5 $0.00003 $0.00102
Haiku 4.5 $0.00002 $0.00051

Measured 5d ago against content hash 42ecbd9667e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

command for the user's platform (`brew install jq`, `sudo apt-get install jq`, etc.).

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Dependencies**: check that `curl` and `jq` are available
commands/setup.md · 33 lines

What it actually says

Verify the Devin Handoff plugin is ready to use. Work through these checks in order and report the results concisely. Never print the API key value.

  1. Dependencies: check that curl and jq are available (command -v curl jq). If jq is missing, offer the right install command for the user's platform (brew install jq, sudo apt-get install jq, etc.).

  2. API key: check that DEVIN_API_KEY is set ([ -n "$DEVIN_API_KEY" ]). If it's missing:

    • Tell the user to get a key at https://app.devin.ai/settings/api-keys
    • Offer to append export DEVIN_API_KEY="<their key>" to their shell profile (~/.zshrc, ~/.bashrc, ...)
    • Remind them that Claude Code inherits the environment from the shell it was launched from, so they need to restart Claude Code after setting it
    • Stop here and let them come back to /devin-handoff:setup afterward
  3. Validate the key with a cheap API call:

    • If the key starts with cog_ (service key), check that DEVIN_ORG_ID is also set — service keys require an org ID. Validate with: curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $DEVIN_API_KEY" "https://api.devin.ai/v3/organizations/$DEVIN_ORG_ID/sessions?limit=1"
    • Otherwise (personal apk_ key), validate with: curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $DEVIN_API_KEY" "https://api.devin.ai/v1/sessions?limit=1"
    • 200 means the key works. 401/403 means it's invalid or expired — point the user back to https://app.devin.ai/settings/api-keys
  4. Report: if everything passes, tell the user Devin Handoff is ready and they can ask things like "hand this off to Devin" or "have Devin fix the flaky CI test" from any repo.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 33 lines · 15 tokens per session scan B 42ecbd9667e5

Subscribe to this mod's changes

setup is a command published in the GitHub repository club-cog/devin-handoff (63 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 510 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.