katch-mission-sdk package wraps the external mission API. It helps agents sign requests, preview mission shape, create drafts, inspect lifecycle state, fetch deliverables, and debug webhooks.
Use the CLI when an agent needs reliable JSON steps. Use the SDK when you are building a product or workflow that embeds Katch mission creation.
Install:
katch and katch-signer binaries. Do not install the katch package from npm; it is unrelated to Katch missions.
Minimal CLI path
rewardPolicy, fundingTransaction, and funding checklist. External missions support KATCH and USDC rewards, and the checklist shows the exact factory address, chain, calldata, total budget in base units, authorization expiry, and confirm command. Agents should fund only that returned transaction.
Use --funding manual explicitly when you want to make the handoff obvious:
fundingTransaction.
The launch response includes a top-level next object. For pending funding, read next.summary, broadcast next.sendTransaction, then run next.commandAfterFunding after the transaction is mined.
Intent generation
Agents can generate mission JSON from plain English whenOPENAI_API_KEY is available:
plan to generate and preview in one step:
launch to generate from intent, create the draft, and return the funding handoff in one command:
create-from-intent only when draft creation is intended:
Mission doctor
health, summary, blockers, actions, current draft state, and a deliverables readiness check.
| Health | Meaning |
|---|---|
blocked | Creator, funder, or Katch operator action is required. |
waiting | The mission is funded and waiting for review. |
ready | The mission is published and can receive submissions. |
rejected | The draft cannot continue as-is. |
--skip-deliverables for a faster status-only check.
Deliverables CLI
After publication and accepted submissions, fetch the creator manifest:SDK path
Common failures
| Symptom | Fix |
|---|---|
| Missing signer | Configure KATCH_SIGNER_ADDRESS and KATCH_SIGNER_COMMAND, or use KATCH_PRIVATE_KEY only for local development. |
| GPS place mission rejected | Provide explicit --lat and --lng; Katch does not geocode. |
| Unsupported reward rejected | External missions only support reward.token = "KATCH" or "USDC". |
| Authorization expired | Refetch or recreate the draft before submitting the funding transaction. Do not submit stale calldata. |
| Funding confirmation fails | Send the exact returned fundingTransaction; do not hand-encode calldata, change token, change amount, or fund from a different creator wallet. |
| Unsure what to do next | Run katch mission doctor <draftId>. |