Skip to content

delega-dev/delega-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delega Integration Examples

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.

Examples

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

Quick Start

  1. 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"}'
  2. Set your key:

    export DELEGA_API_KEY="dlg_..."
  3. 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"
  4. Pick an example and run it — each directory has its own README with setup instructions.

API Reference

Auth

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

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.

License

MIT

About

Integration examples for Delega — Python, Node.js, CrewAI, LangChain, OpenAI Agents SDK

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors