Working integration examples for Delega — task infrastructure for AI agents.
Each example is self-contained and defaults to the hosted API at https://api.delega.dev/v1.
| Directory | Framework | Description |
|---|---|---|
python/ |
Python (requests) | Raw API usage — create tasks, add comments, complete workflows |
node/ |
Node.js / TypeScript | TypeScript API client with full task lifecycle |
webhooks/ |
Node.js / Python / Deno | Raw-body webhook verification examples with HMAC-SHA256 signature checks |
crewai/ |
CrewAI | Multi-agent research crew with task delegation |
langchain/ |
LangChain | Custom Delega tools for LangChain agents |
openai-agents/ |
OpenAI Agents SDK | Planning agent with function-calling tools |
-
Get an API key — sign up at delega.dev/agent or via API:
curl -X POST https://api.delega.dev/v1/agent/signup \ -H "Content-Type: application/json" \ -d '{"human_email":"you@example.com","agent_name":"my-agent"}'
-
Set your key:
export DELEGA_API_KEY="dlg_..."
-
If you're using self-hosted Delega, point the examples at
/api:export DELEGA_API_URL="http://localhost:18890/api" # or: export DELEGA_API_URL="https://delega.yourcompany.com/api"
-
Pick an example and run it — each directory has its own README with setup instructions.
- Docs: https://delega.dev/docs
- Skill file: https://delega.dev/skill.md
- Agent discovery: https://delega.dev/.well-known/agent.json
All API requests use the X-Agent-Key header:
X-Agent-Key: dlg_your_key_here
Examples expect DELEGA_API_URL to be the full API base, including the namespace prefix (/v1 for hosted, /api for self-hosted).
webhooks/ contains verification servers for Node.js, Python, and Deno. Each example validates X-Delega-Signature by recomputing HMAC-SHA256(secret, "{timestamp}.{raw_body}"), enforcing a 5 minute timestamp window, and using timing-safe comparison.
MIT